/* Mezaam landing — design tokens from app/lib/design/palette.dart. */

:root {
  --surface-void: #0B0705;
  --surface-raised: #181110;
  --surface-overlay: #25201D;
  --ink-primary: #F5EDE0;
  --ink-muted: #9A8F82;
  --ink-subtle: #6B6359;
  --accent-ember: #FF8A3D;
  --accent-coral: #FF7B6B;
  --accent-gold: #FFC94D;
  --accent-emerald: #6FB091;
  --accent-indigo: #6B5B95;
  --accent-plum: #8B6B8B;
  --accent-silver: #B8B3C7;
  --radius-card: 20px;
  --radius-btn: 14px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-void);
  color: var(--ink-primary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Warm radial background so the hero feels lit, not flat. */
body {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%,
      rgba(255, 138, 61, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 20%,
      rgba(107, 91, 149, 0.12), transparent 60%),
    var(--surface-void);
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em 0;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0 0 1em 0; color: var(--ink-primary); opacity: 0.92; }

a { color: var(--accent-ember); text-decoration: none; transition: opacity 120ms ease; }
a:hover { opacity: 0.75; }

code {
  font-family: 'SF Mono', Menlo, Monaco, monospace;
  font-size: 0.88em;
  background: var(--surface-raised);
  padding: 2px 6px;
  border-radius: 4px;
}

.eyebrow {
  font-family: 'Inter';
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--accent-ember);
  margin: 0 0 1em 0;
  font-weight: 500;
}

/* ────────── Nav ────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: rgba(11, 7, 5, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 237, 224, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand-mark { width: 32px; height: 32px; }

.nav-links { display: flex; gap: clamp(0.8rem, 2.4vw, 2rem); }
.nav-links a { color: var(--ink-muted); font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink-primary); opacity: 1; }

@media (max-width: 560px) {
  .nav-links { display: none; }
}

/* ────────── Buttons ────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
  border: 0;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-ember) 55%, var(--accent-gold));
  color: #1B1613;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(255, 138, 61, 0.28);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(255, 138, 61, 0.34);
  opacity: 1;
}

.btn.ghost {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid rgba(245, 237, 224, 0.16);
}
.btn.ghost:hover {
  background: rgba(245, 237, 224, 0.04);
  opacity: 1;
}

.btn.big {
  min-width: 240px;
  padding: 18px 26px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.btn.big .btn-title { font-size: 1.1rem; font-weight: 600; }
.btn.big .btn-sub {
  font-size: 0.78rem;
  opacity: 0.72;
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* ────────── Hero ────────── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 7rem) clamp(1.25rem, 4vw, 3rem);
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.6rem; }
  .hero-visual { order: -1; }
}

.hero-copy .lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-primary);
  opacity: 0.88;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.2rem; }

.sub-lede {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin: 0;
}

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.hero-meza {
  width: min(420px, 80vw);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(255, 138, 61, 0.22));
}

/* Gentle idle breath on the orb */
.meza-body { transform-origin: 180px 180px; animation: breath 5.5s ease-in-out infinite; }
@keyframes breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}
.eye { transform-origin: center; animation: blink 6s ease-in-out infinite; }
.eye-r { animation-delay: 0.02s; }
@keyframes blink {
  0%, 88%, 92%, 100% { transform: scaleY(1); }
  90% { transform: scaleY(0.1); }
}

.hero-caption {
  font-family: 'Inter';
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .meza-body, .eye { animation: none; }
}

/* ────────── Proof strip ────────── */

.proof {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 3rem;
  text-align: center;
  border-top: 1px solid rgba(245, 237, 224, 0.05);
  border-bottom: 1px solid rgba(245, 237, 224, 0.05);
}
.proof-text {
  font-family: 'Fraunces';
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}
.proof-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: center;
  color: var(--ink-primary);
  opacity: 0.82;
  font-size: 0.93rem;
}
.proof-grid li { font-weight: 500; letter-spacing: 0.01em; }

/* ────────── How it works ────────── */

.how {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 6rem) clamp(1.25rem, 4vw, 3rem);
}
.how h2 { text-align: center; margin-bottom: 3rem; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) {
  .how-grid { grid-template-columns: 1fr; }
}

.how-step {
  background: var(--surface-raised);
  border: 1px solid rgba(245, 237, 224, 0.06);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease;
}
.how-step:hover {
  border-color: rgba(255, 138, 61, 0.35);
  transform: translateY(-2px);
}

.step-num {
  font-family: 'Fraunces';
  font-size: 2.2rem;
  color: var(--accent-ember);
  line-height: 1;
  margin-bottom: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
}

.how-step h3 { font-size: 1.18rem; }
.how-step p { color: var(--ink-primary); opacity: 0.78; margin: 0; font-size: 0.96rem; }

/* ────────── Feature splits ────────── */

.feature {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-split.reverse .feature-copy { order: 2; }
.feature-split.reverse .feature-visual { order: 1; }

@media (max-width: 880px) {
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split.reverse .feature-copy,
  .feature-split.reverse .feature-visual { order: unset; }
}

.feature-copy h2 { max-width: 18ch; }
.feature-copy p { color: var(--ink-primary); opacity: 0.82; max-width: 46ch; }

.feature-visual svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 237, 224, 0.05);
  display: block;
  margin: 0 auto;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.check-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-primary);
  opacity: 0.82;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ember);
}

/* ────────── Voice row ────────── */

.voice-row { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }

.voice-chip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  border: 1px solid rgba(245, 237, 224, 0.06);
  flex: 1 1 180px;
}
.voice-chip strong { display: block; font-size: 0.98rem; }
.voice-chip p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  opacity: 1;
}

.voice-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.voice-orb[data-voice="warmer"] {
  background: linear-gradient(160deg, #FF7B6B, #FF8A3D 55%, #FFC94D);
  box-shadow: 0 0 32px rgba(255, 138, 61, 0.32);
}
.voice-orb[data-voice="cooler"] {
  background: linear-gradient(160deg, #6B5B95, #B8B3C7 55%, #8B6B8B);
  box-shadow: 0 0 32px rgba(107, 91, 149, 0.32);
}

.footnote { color: var(--ink-muted); font-size: 0.82rem; margin-top: 0.8rem; }

/* ────────── Privacy ────────── */

.privacy {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 6rem) clamp(1.25rem, 4vw, 3rem);
}
.privacy h2 { text-align: center; margin-bottom: 2.4rem; }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 980px) {
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .privacy-grid { grid-template-columns: 1fr; }
}
.privacy-grid article {
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  border: 1px solid rgba(245, 237, 224, 0.06);
}
.privacy-grid h3 { font-size: 1.05rem; }
.privacy-grid p { font-size: 0.9rem; color: var(--ink-primary); opacity: 0.76; margin: 0; }

/* ────────── Download ────────── */

.download {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 6rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.download h2 { margin-bottom: 1rem; }
.download-note {
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 auto 1.6rem;
  font-size: 0.92rem;
}
.download-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* ────────── Footer ────────── */

footer {
  border-top: 1px solid rgba(245, 237, 224, 0.06);
  margin-top: 3rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.foot-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.foot-row a { color: var(--ink-muted); }
.foot-row a:hover { color: var(--ink-primary); opacity: 1; }
