/* ===== HANABITO — STYLE.CSS ===== */
:root {
  --plum: #3D1C4F;
  --plum-light: #5a2970;
  --rose: #B76E79;
  --cream: #FFF8F0;
  --pink: #FF2D7B;
  --pink-soft: rgba(255,45,123,0.15);
  --bg: #0d0810;
  --bg2: #130d1a;
  --bg3: #1a1024;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f0e8f8;
  --text-muted: rgba(240,232,248,0.55);
  --glow-pink: 0 0 40px rgba(255,45,123,0.35);
  --glow-plum: 0 0 60px rgba(61,28,79,0.8);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== CANVAS ===== */
#petalCanvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ===== UTILS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.text-gradient {
  background: linear-gradient(135deg, var(--pink), var(--rose), #c770f0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.text-accent { color: var(--pink); }

.section-tag {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid rgba(255,45,123,0.3);
  padding: 6px 14px; border-radius: 50px;
  margin-bottom: 16px;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #c040a0);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-glow { box-shadow: var(--glow-pink); }
.btn-glow:hover { box-shadow: 0 0 60px rgba(255,45,123,0.5); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--text); background: rgba(183,110,121,0.1); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(13,8,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
}
.logo-icon { font-size: 1.4rem; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; }
.logo-kanji { font-family: 'Noto Sans JP', sans-serif; font-size: 0.85rem; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 0.9rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--pink), #c040a0) !important;
  color: #fff !important;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 600 !important;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 60% 40%, rgba(61,28,79,0.6) 0%, transparent 70%),
              linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}
.hero > .container { display: contents; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.hero-content { position: relative; z-index: 1; padding: 120px 0 80px 24px; max-width: 600px; }
.hero-visual { position: relative; z-index: 1; padding: 120px 24px 80px 0; display: flex; justify-content: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 120px 24px 80px; max-width: 100%; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,45,123,0.1); border: 1px solid rgba(255,45,123,0.25);
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.8rem; color: var(--rose); margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 24px;
}
.title-gradient {
  background: linear-gradient(135deg, var(--pink) 0%, var(--rose) 50%, #c770f0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted); max-width: 480px;
  margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Phone mockup */
.phone-mockup {
  position: relative; width: 280px;
  filter: drop-shadow(0 0 60px rgba(255,45,123,0.3));
}
.phone-img { width: 100%; border-radius: 40px; }
.phone-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(255,45,123,0.15) 0%, transparent 70%);
  z-index: -1;
}

/* ===== PROBLEM ===== */
.problem { padding: 100px 0; }
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,45,123,0.05));
  opacity: 0; transition: var(--transition);
}
.problem-card:hover { border-color: rgba(255,45,123,0.3); transform: translateY(-4px); }
.problem-card:hover::before { opacity: 1; }
.problem-card-total { border-color: rgba(255,45,123,0.3); background: rgba(255,45,123,0.05); }
.problem-icon { font-size: 2rem; margin-bottom: 12px; }
.problem-card h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.problem-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.problem-price { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--rose); }
.problem-price-bad { color: var(--pink); font-size: 1.3rem; }

/* ===== SOLUTION ===== */
.solution {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(61,28,79,0.3) 0%, rgba(255,45,123,0.05) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.solution-reveal { text-align: center; }
.solution-reveal h2 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 700; margin-bottom: 16px; }
.solution-price-compare { font-size: 1.15rem; color: var(--text-muted); }
.solution-price-compare strong { color: var(--pink); }

/* ===== FEATURES ===== */
.features { padding: 100px 0; }
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-bottom: 120px;
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block-reverse { direction: rtl; }
.feature-block-reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; gap: 40px; }
  .feature-block-reverse { direction: ltr; }
}

.feature-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.15em; font-weight: 700;
  color: var(--pink); background: var(--pink-soft);
  border: 1px solid rgba(255,45,123,0.3);
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}
.feature-tag-icon { font-size: 1rem; }
.feature-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 16px;
}
.feature-info p { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }

/* Mini cards */
.feature-card-stack { position: relative; height: 260px; }
.mini-card {
  position: absolute; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mc-1 { top: 0; left: 0; right: 40px; }
.mc-2 { top: 80px; right: 0; left: 40px; flex-direction: row; align-items: center; justify-content: space-between; }
.mc-3 { top: 160px; left: 20px; right: 20px; }
.mc-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.mc-value { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 600; }
.mc-trend { color: #4ade80; font-size: 0.85rem; font-weight: 600; }
.mc-time { font-size: 0.8rem; color: var(--pink); }
.mc-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.mc-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--rose)); border-radius: 3px; }

.feature-showcase-img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 20px 80px rgba(255,45,123,0.2); }

/* Brain chat */
.brain-chat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.chat-msg { border-radius: 12px; padding: 14px 16px; font-size: 0.9rem; line-height: 1.6; }
.chat-user { background: rgba(255,45,123,0.12); border: 1px solid rgba(255,45,123,0.2); align-self: flex-end; max-width: 85%; }
.chat-ai { background: var(--surface); border: 1px solid var(--border); }
.chat-ai-label { display: block; font-size: 0.7rem; color: var(--pink); font-weight: 600; margin-bottom: 6px; }
.chat-input {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50px; padding: 12px 16px; font-size: 0.85rem; color: var(--text-muted);
}
.chat-send {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pink); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition);
}
.chat-send:hover { transform: scale(1.1); }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 100px 0; background: var(--bg2); }
.steps {
  display: flex; align-items: flex-start; gap: 0;
  justify-content: center;
}
.step {
  flex: 1; text-align: center; padding: 0 24px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.step.revealed { opacity: 1; transform: translateY(0); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #c040a0);
  font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800;
  color: #fff; margin-bottom: 20px;
  box-shadow: var(--glow-pink);
}
.step h3 { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.step-connector {
  width: 80px; height: 2px; align-self: 35px;
  background: linear-gradient(90deg, var(--pink), transparent);
  margin-top: 30px; flex-shrink: 0;
}
@media (max-width: 700px) {
  .steps { flex-direction: column; align-items: center; gap: 40px; }
  .step-connector { width: 2px; height: 40px; background: linear-gradient(180deg, var(--pink), transparent); margin-top: 0; }
}

/* ===== PRICING ===== */
.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  position: relative; transition: var(--transition);
  display: flex; flex-direction: column; gap: 20px;
}
.price-card:hover { border-color: var(--rose); transform: translateY(-4px); }
.price-card-featured {
  background: linear-gradient(135deg, rgba(61,28,79,0.8), rgba(255,45,123,0.1));
  border-color: var(--pink) !important;
  box-shadow: var(--glow-pink);
  transform: scale(1.04);
}
.price-card-featured:hover { transform: scale(1.04) translateY(-4px); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink), #c040a0);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 4px 16px; border-radius: 50px; white-space: nowrap;
}
.price-tier { font-family: 'Noto Sans JP', sans-serif; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.price-amount { display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--text-muted); }
.price-number { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }
.price-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-features li { font-size: 0.88rem; color: var(--text-muted); padding-left: 20px; position: relative; }
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--pink); font-weight: 700; }

/* ===== GALLERY ===== */
.gallery { padding: 100px 0; background: var(--bg2); }
.gallery-showcase { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 100px rgba(255,45,123,0.15); }
.gallery-img { width: 100%; display: block; }

/* ===== WAITLIST ===== */
.waitlist { padding: 100px 0; }
.waitlist-card {
  background: linear-gradient(135deg, rgba(61,28,79,0.7), rgba(255,45,123,0.08));
  border: 1px solid rgba(255,45,123,0.25);
  border-radius: var(--radius-lg); padding: 64px;
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.waitlist-card::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,123,0.12), transparent 70%);
  pointer-events: none;
}
@media (max-width: 800px) {
  .waitlist-card { grid-template-columns: 1fr; padding: 40px 24px; }
  .waitlist-visual { text-align: center; }
}
.waitlist-content h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.waitlist-content > p { color: var(--text-muted); margin-bottom: 32px; }
.waitlist-content strong { color: var(--pink); }

.waitlist-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 12px; }
@media (max-width: 600px) { .form-row { flex-direction: column; } }
.form-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 50px;
  padding: 14px 20px; color: var(--text); font-size: 0.9rem;
  font-family: 'Inter', sans-serif; transition: var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,45,123,0.15); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--bg2); color: var(--text); }
.waitlist-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }

.waitlist-counter { text-align: center; }
.counter-number {
  display: block; font-family: 'Outfit', sans-serif;
  font-size: 4rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.counter-label { font-size: 0.85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { text-decoration: none; font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--pink); }
.footer-copy { font-size: 0.75rem; color: rgba(240,232,248,0.3); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; gap: 20px;
    position: fixed; inset: 0; top: 64px;
    background: rgba(13,8,16,0.98); backdrop-filter: blur(20px);
    align-items: center; justify-content: center;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; }
  .nav-toggle { display: flex; }
}
