/* ── Variables ─────────────────────────────────────── */
:root {
  --color-bg-peach:   #F1D9BE;
  --color-aqua:       #E0EBE6;
  --color-lilac:      #E6D9F2;
  --color-accent:     #DF795F;
  --color-bg:         #0f0f0f;
  --color-surface:    #1a1a1a;
  --color-text:       #F8F9FA;
  --color-text-light: #F8F9FA;
  --color-text-muted: rgba(248, 249, 250, 0.55);

  --color-happy:   #E07A5F;
  --color-sad:     #C96A7A;
  --color-angry:   #4A6FA5;
  --color-anxious: #8F8AA3;
  --color-neutral: #A69E94;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius-card: 20px;
  --radius-pill: 100px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── 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;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.nav-links a:hover { opacity: 1; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1c150f 0%, #0f1a17 50%, #15101c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--color-text);
  opacity: 0.65;
  margin-bottom: 3rem;
}

/* ── Mascot Row ─────────────────────────────────────── */
.mascot-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mascot-row::-webkit-scrollbar { display: none; }

.mascot-card {
  flex: 0 0 auto;
  width: 120px;
  border-radius: var(--radius-card);
  padding: 1.25rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mascot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}
.mascot-card img { width: 80px; height: 80px; object-fit: contain; }
.mascot-card .emotion-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--color-text-light);
  opacity: 0.9;
}

.mascot-card.happy   { background: var(--color-happy); }
.mascot-card.sad     { background: var(--color-sad); }
.mascot-card.angry   { background: var(--color-angry); }
.mascot-card.anxious { background: var(--color-anxious); }
.mascot-card.neutral { background: var(--color-neutral); }

/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-text-light);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(223, 121, 95, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(223, 121, 95, 0.45);
}

/* ── Features ───────────────────────────────────────── */
.features {
  background: var(--color-bg);
  padding: 5rem 2rem;
}
.features-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--color-text);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
}
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; list-style: none; margin-bottom: 0.75rem; }
.footer-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: 0.8rem; color: var(--color-text); opacity: 0.4; }

/* ── Legal pages ────────────────────────────────────── */
.legal-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  background: var(--color-bg);
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.legal-inner h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.4rem; }
.legal-inner .effective-date { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 2.5rem; }
.legal-inner h2 { font-size: 1.05rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-inner p { font-size: 0.9rem; color: var(--color-text); opacity: 0.8; margin-bottom: 0.75rem; line-height: 1.7; }
.legal-inner a { color: var(--color-accent); }

/* ── Contact page ───────────────────────────────────── */
.contact-block { text-align: center; }
.contact-block h1 { margin-bottom: 1.5rem; }
.contact-block p { text-align: center; margin-bottom: 0.75rem; }
.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}
.contact-email:hover { opacity: 0.75; }

/* ── Screenshots section ────────────────────────────── */
.screenshots {
  background: #0f0f0f;
  padding: 6rem 2rem;
}
.screenshots-inner {
  max-width: 960px;
  margin: 0 auto;
}
.screenshots .section-label { color: #DF795F; }
.screenshots .section-title { color: #fff; margin-bottom: 5rem; }

.screenshot-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.screenshot-block:last-child { margin-bottom: 0; }
.screenshot-block.reverse { direction: rtl; }
.screenshot-block.reverse > * { direction: ltr; }

.screenshot-text h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.screenshot-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.phone-wrap {
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 240px;
  height: 500px;
  background: #1c1c1e;
  border-radius: 44px;
  border: 7px solid #3a3a3c;
  box-shadow:
    0 0 0 1px #555,
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #1c1c1e;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
  display: block;
}

/* ── Hamburger (mobile only) ────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  .nav-toggle[aria-expanded="true"] + .nav-links {
    display: flex;
  }

  .features-grid { grid-template-columns: 1fr; }

  .screenshot-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }
  .screenshot-block.reverse { direction: ltr; }
  .screenshot-text { text-align: center; }
  .phone-frame { width: 200px; height: 420px; }

  .legal-inner { padding: 2rem 1.25rem; }
}
