/* ═══════════════════════════════════════════
   CupidBot — Dark Romantic Glassmorphism
   v20260529
═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg:          #0d0810;
  --bg-2:        #140a1a;
  --surface:     rgba(30,12,40,0.75);
  --surface-2:   rgba(50,20,65,0.85);
  --border:      rgba(255,100,150,0.18);
  --border-2:    rgba(255,100,150,0.30);
  --red:         #e8336a;
  --pink:        #ff6fa8;
  --pink-soft:   #ff9dc5;
  --gold:        #d4a843;
  --gold-soft:   #f0cc7a;
  --text:        #f5e6f0;
  --text-mute:   #b89ab0;
  --text-dim:    #7a5a72;
  --radius:      18px;
  --radius-sm:   10px;
  --shadow:      0 8px 40px rgba(232,51,106,0.15);
  --shadow-lg:   0 20px 80px rgba(232,51,106,0.20);
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
}

/* ── Canvas particles ── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Glassmorphism ── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

@supports not (backdrop-filter: blur(24px)) {
  .glass { background: rgba(25, 10, 30, 0.88); }
}

/* ── Splash ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: radial-gradient(ellipse at center, #1a0525 0%, #0d0810 70%);
  animation: splashSafety .01s 4s forwards;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash.is-out { opacity: 0; pointer-events: none; transform: scale(1.04); }

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  animation: splashPop .8s var(--ease-out) .2s both;
}

@keyframes splashPop {
  from { opacity: 0; transform: scale(.8) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-heart {
  font-size: 4rem;
  filter: drop-shadow(0 0 30px rgba(232,51,106,.8));
  animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.splash-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  animation: splashPop .8s var(--ease-out) .5s both;
}

.splash-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 99px;
  animation: fillBar 2.8s var(--ease) .6s both;
}

@keyframes fillBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13,8,16,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,100,150,0.10);
  transition: background .3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-heart { -webkit-text-fill-color: initial; }

.nav-key-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--pink-soft);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.nav-key-btn:hover {
  background: rgba(255,111,168,0.15);
  border-color: var(--pink);
  transform: translateY(-1px);
}

.nav-tagline {
  font-size: .82rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 7rem 4rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fh {
  position: absolute;
  font-size: 1.5rem;
  opacity: .25;
  animation: floatHeart linear infinite;
}
.fh-1 { left: 8%;  animation-duration: 8s;  animation-delay: 0s;   font-size: 1.2rem; }
.fh-2 { left: 20%; animation-duration: 11s; animation-delay: -3s;  font-size: 2rem; }
.fh-3 { left: 45%; animation-duration: 9s;  animation-delay: -5s;  font-size: 1rem; }
.fh-4 { left: 65%; animation-duration: 13s; animation-delay: -1s;  font-size: 1.8rem; }
.fh-5 { left: 80%; animation-duration: 7s;  animation-delay: -4s;  font-size: 1rem; }
.fh-6 { left: 90%; animation-duration: 10s; animation-delay: -7s;  font-size: 2.2rem; }

@keyframes floatHeart {
  0%   { transform: translateY(110vh) rotate(-15deg); opacity: 0; }
  10%  { opacity: .3; }
  90%  { opacity: .2; }
  100% { transform: translateY(-10vh) rotate(15deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .7s var(--ease-out) .8s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(25px);
  animation: revealUp .8s var(--ease-out) 1s both;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--pink) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-mute);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: revealUp .7s var(--ease-out) 1.2s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2rem;
  background: linear-gradient(135deg, var(--red) 0%, #c02360 100%);
  border: none;
  border-radius: 99px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 4px 24px rgba(232,51,106,.5);
  opacity: 0;
  animation: revealUp .7s var(--ease-out) 1.4s both;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(232,51,106,.65);
}

/* Preview cards */
.hero-cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 0;
  animation: revealRight .9s var(--ease-out) 1.2s both;
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.pc-bubble {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-mute);
  position: relative;
}

.pc-bubble.out {
  background: rgba(232,51,106,.12);
  border-color: rgba(232,51,106,.25);
  color: var(--pink-soft);
}

.pc-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 500;
  margin-right: .4rem;
}

.pc-chip.romantic { background: rgba(232,51,106,.15); border: 1px solid rgba(232,51,106,.3); color: var(--pink); }
.pc-chip.flirty   { background: rgba(212,168,67,.12); border: 1px solid rgba(212,168,67,.3); color: var(--gold); }
.pc-chip.friendly { background: rgba(100,200,150,.1); border: 1px solid rgba(100,200,150,.2); color: #8de0b0; }

/* ── Chat Section ── */
.chat-section {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
  background: radial-gradient(ellipse at 50% 0%, rgba(180,30,80,0.12) 0%, transparent 65%);
}

.chat-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Panels ── */
.panel {
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,111,168,.4), transparent);
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Fields ── */
.field-group { display: flex; flex-direction: column; gap: .5rem; }

.field-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}

.field-textarea,
.field-input {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  padding: .75rem 1rem;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.field-textarea:focus,
.field-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232,51,106,.15);
}

.field-textarea::placeholder,
.field-input::placeholder { color: var(--text-dim); }

.field-hint {
  font-size: .75rem;
  color: var(--text-dim);
}

/* ── Tone grid ── */
.tone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}

.tone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .8rem .5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  text-align: center;
  position: relative;
}

.tone-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.tone-card:hover {
  background: rgba(255,111,168,.08);
  border-color: rgba(255,111,168,.3);
  transform: translateY(-2px);
}

.tone-card:has(input:checked) {
  background: rgba(232,51,106,.15);
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(232,51,106,.2);
}

.tone-icon { font-size: 1.4rem; }
.tone-name { font-size: .78rem; font-weight: 600; color: var(--text); }
.tone-desc { font-size: .68rem; color: var(--text-dim); }

/* ── CTA Button ── */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--red) 0%, #c02360 100%);
  border: none;
  border-radius: 99px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
  box-shadow: 0 4px 24px rgba(232,51,106,.5);
  position: relative;
  overflow: hidden;
}

.cta-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 36px rgba(232,51,106,.65);
}

.cta-btn:disabled { opacity: .6; cursor: not-allowed; }

.cta-btn.loading .btn-text,
.cta-btn.loading .btn-icon { opacity: 0; }

.btn-loader {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.cta-btn.loading .btn-loader { display: block; }

/* ── Output states ── */
.output-state { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.output-state[hidden] { display: none; }

/* Empty */
.state-empty { padding: 3rem 1rem; text-align: center; }
.empty-icon { font-size: 3rem; opacity: .5; }
.empty-text { font-size: 1.05rem; font-weight: 500; color: var(--text-mute); }
.empty-sub  { font-size: .85rem; color: var(--text-dim); text-align: center; }
.empty-sub em { color: var(--pink-soft); font-style: normal; font-weight: 600; }

/* Loading */
.state-loading { padding: 3rem 1rem; }
.loading-hearts { display: flex; gap: 1rem; font-size: 2rem; }
.loading-hearts span { animation: loadHeart .8s ease-in-out infinite; }
.loading-hearts span:nth-child(2) { animation-delay: .2s; }
.loading-hearts span:nth-child(3) { animation-delay: .4s; }
@keyframes loadHeart {
  0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
  50%       { transform: translateY(-10px) scale(1.2); opacity: 1; }
}
.loading-text { color: var(--text-mute); font-size: .9rem; }

/* Result */
.state-result { align-items: stretch; width: 100%; }

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.result-tone-badge {
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 99px;
  background: rgba(232,51,106,.15);
  border: 1px solid rgba(232,51,106,.3);
  color: var(--pink);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: rgba(212,168,67,.12);
  border: 1px solid rgba(212,168,67,.3);
  border-radius: 99px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.copy-btn:hover { background: rgba(212,168,67,.2); transform: scale(1.04); }
.copy-btn.copied { background: rgba(80,200,120,.15); border-color: rgba(80,200,120,.3); color: #7de0a8; }

/* WhatsApp bubble */
.whatsapp-bubble {
  background: #0a0f0a;
  border: 1px solid rgba(37,211,102,.2);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  background: rgba(37,211,102,.08);
  border-bottom: 1px solid rgba(37,211,102,.15);
}

.wa-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(37,211,102,.5);
}
.wa-dot:nth-child(1) { background: #ff5f57; }
.wa-dot:nth-child(2) { background: #febc2e; }
.wa-dot:nth-child(3) { background: #28c840; }

.wa-label {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .08em;
  margin-left: .3rem;
}

.wa-original {
  padding: .9rem 1rem .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.wa-reply {
  padding: .9rem 1rem;
  font-size: .88rem;
  color: #dcf8c6;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Result extras */
.result-extras {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  width: 100%;
}

.variant-btn {
  padding: .6rem 1.2rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-mute);
  font-size: .82rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  align-self: flex-start;
}
.variant-btn:hover { background: rgba(255,255,255,.1); color: var(--text); }

.tips-box {
  background: rgba(212,168,67,.07);
  border: 1px solid rgba(212,168,67,.2);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .78rem;
  color: var(--gold-soft);
  line-height: 1.6;
  display: none;
}
.tips-box.visible { display: block; }

/* Error */
.state-error { padding: 2rem; text-align: center; }
.error-icon { font-size: 2.5rem; }
.error-text { color: var(--text-mute); font-size: .9rem; }
.retry-btn {
  padding: .5rem 1.2rem;
  background: rgba(232,51,106,.15);
  border: 1px solid rgba(232,51,106,.3);
  border-radius: 99px;
  color: var(--pink);
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.retry-btn:hover { background: rgba(232,51,106,.25); }

/* ── History ── */
.history-wrapper {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  padding: 1.8rem;
}

.history-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.history-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  cursor: pointer;
  transition: background .2s;
}

.history-item:hover { background: rgba(255,111,168,.08); }

.history-item-tone {
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}

.history-item-msg {
  font-size: .82rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clear-history-btn {
  margin-top: 1rem;
  padding: .4rem .9rem;
  background: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  color: var(--text-dim);
  font-size: .75rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.clear-history-btn:hover { color: var(--pink); border-color: rgba(232,51,106,.3); }

/* ── How section ── */
.how-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(20,10,26,.8) 50%, transparent 100%);
}

.how-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.how-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.how-step {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .8rem;
  transition: transform .3s var(--ease);
}

.how-step:hover { transform: translateY(-6px); }

.step-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--gold);
  background: rgba(212,168,67,.1);
  border: 1px solid rgba(212,168,67,.2);
  border-radius: 99px;
  padding: .2rem .7rem;
}

.step-icon { font-size: 2.5rem; }
.step-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.step-desc  { font-size: .85rem; color: var(--text-mute); line-height: 1.6; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,100,150,.1);
}

.footer-brand {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.footer-text { color: var(--text-mute); font-size: .85rem; margin-bottom: .3rem; }
.footer-sub  { color: var(--text-dim); font-size: .75rem; font-style: italic; }

/* ── Modal ── */
.modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 480px;
  width: calc(100% - 2rem);
  border-radius: var(--radius);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
}

.modal-inner {
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-desc {
  font-size: .85rem;
  color: var(--text-mute);
  line-height: 1.6;
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
}

.modal-link {
  font-size: .8rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(212,168,67,.4);
}

.modal-actions { display: flex; gap: .8rem; }

.modal-cancel {
  padding: .6rem 1.2rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-mute);
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.modal-cancel:hover { background: rgba(255,255,255,.06); }

.modal-save { padding: .6rem 1.4rem; font-size: .85rem; }

/* ── Reveal animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animations ── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
    gap: 2rem;
  }

  .hero-subtitle { max-width: 100%; }
  .hero-cta { margin: 0 auto; }

  .hero-cards {
    display: none;
  }

  .chat-wrapper {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .tone-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: .8rem 1rem; }
  .panel { padding: 1.4rem; }
}
