/* =========================================================================
   MICHID — Web landing page design system
   Mirrors the Flutter app exactly (see michid-app/lib/core/theme/):
   plum-black surfaces, warm muted gold + rose accents, Manrope everywhere.
   Structure follows gegee-web's public/assets/css/style.css; only the theme
   tokens below differ.
   ========================================================================= */

:root {
  /* Brand / accent — MichidPalette.accentGold, accentRose, accentAmethyst */
  --accent:          #D9B061;
  --accent-strong:   #E8C687;
  --accent-rose:     #D08792;
  --accent-amethyst: #7A4E9E;
  --accent-wash:     rgba(217, 176, 97, 0.10);
  --accent-wash-strong: rgba(217, 176, 97, 0.16);
  --rose-wash:       rgba(208, 135, 146, 0.12);
  --amethyst-wash:   rgba(122, 78, 158, 0.16);

  /* Surfaces — MichidPalette.surfaceDeep / surfaceRaised / surfaceGlow */
  --bg:            #100C16;
  --surface:       #191322;
  --surface-muted: #211A2C;
  --glow:          #E0B36E;

  /* Text — MichidPalette.textPrimary / textMuted */
  --text:      #F2EDE4;
  --text-soft: #8A85A3;
  --on-accent: #100C16;

  /* Status — MichidPalette.danger */
  --danger: #D98A80;

  /* Radius — MichidRadius */
  --r-card:  24px;
  --r-field: 16px;
  --r-pill:  999px;

  /* Shadows: warm-black, never a cool grey */
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.28);
  --shadow:    0 16px 40px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);

  /* Layout */
  --maxw: 1120px;
  --pad: 24px;

  /* Fonts — one family, MichidTypography.display / .body */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient gold glows — the same "warm wash behind the focal element" the app
   uses (MichidPalette.surfaceGlow), never a flat fill. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  width: 560px; height: 560px;
  top: -200px; right: -160px;
  background: radial-gradient(circle, var(--glow) 0%, rgba(224, 179, 110, 0) 70%);
}
body::after {
  width: 520px; height: 520px;
  bottom: -180px; left: -180px;
  background: radial-gradient(circle, #7A4E9E 0%, rgba(122, 78, 158, 0) 70%);
  opacity: 0.28;
}

/* ----------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { position: relative; }

.section-pad { padding: 96px 0; }

/* ---------------------------------------------------------------- Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.4px; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; }
p  { margin: 0 0 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
  border: 1px solid rgba(217, 176, 97, 0.28);
}

.lead { font-size: 1.1rem; color: var(--text-soft); max-width: 60ch; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent) 55%, var(--accent-rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.muted { color: var(--text-soft); }

/* ---------------------------------------------------------------- Buttons
   The app never fills a button solid gold — "gold is light, not paint"
   (MichidTheme._buttonFill / _buttonEdge). A 10% wash, gold text, a 45%
   gold hairline, always a pill. Mirrored exactly here. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: var(--r-pill);
  border: 1.4px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-wash-strong);
  color: var(--accent);
  border-color: rgba(217, 176, 97, 0.45);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-3px); background: rgba(217, 176, 97, 0.22); border-color: var(--accent); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.22); }

/* ---------------------------------------------------------------- Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(16, 12, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-soft); font-weight: 500; font-size: 0.96rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 11px 22px; font-size: 0.94rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 76px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: var(--text-soft); }

/* Phone mockup, framing a real screenshot of the app */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.phone {
  position: relative;
  width: 264px;
  aspect-ratio: 360 / 760;
  background: var(--bg);
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
  border: 8px solid #050308;
  overflow: hidden;
}
.phone img.screen { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  padding: 26px 0;
}
.trust .item { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-weight: 500; font-size: 0.94rem; }
.trust .item b { color: var(--text); }

/* ---------------------------------------------------------------- Features */
.features-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.features-head p { margin-top: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(217, 176, 97, 0.25); }

/* A real image from the app, not a drawn icon: the same band art Мэргэ
   shows on each of its own feature cards (assets/art/features/ in
   michid-app), or — for the two tab-level features with no hub band — a
   crop of the real screen. */
.card-shot {
  height: 180px;
  background: var(--bg);
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-body { padding: 24px 24px 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.96rem; margin: 0; }

/* ---------------------------------------------------------------- Showcase (alternating) */
.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 40px; }
.showcase.flip { grid-template-columns: 1.1fr 0.9fr; }
.showcase.flip .showcase-text { order: 2; }
.showcase.flip .showcase-media { order: 1; }
.showcase-text .eyebrow { margin-bottom: 18px; }
.showcase-media {
  display: flex;
  justify-content: center;
}
.showcase-media .phone { width: 220px; }
.bullet-list { list-style: none; padding: 0; margin: 20px 0 0; }
.bullet-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text); }
.bullet-list li::before {
  content: "✓"; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  margin-top: 2px;
}

/* ---------------------------------------------------------------- CTA band
   No solid gold fill here either — a raised surface with the same warm
   radial glow the app paints behind its focal elements. */
.cta-band {
  background: var(--surface);
  border-radius: 36px;
  padding: 72px 40px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 176, 97, 0.16);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(224, 179, 110, 0.22), transparent 45%),
              radial-gradient(circle at 80% 85%, rgba(122, 78, 158, 0.18), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-soft); max-width: 48ch; margin: 0 auto 30px; }

/* ---------------------------------------------------------------- Footer */
.footer { padding: 64px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer .brand .name { font-size: 1.2rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text); text-decoration: none; margin-bottom: 10px; font-size: 0.94rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-about { max-width: 280px; }
.footer-about p { color: var(--text-soft); font-size: 0.92rem; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-soft); font-size: 0.86rem; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ---------------------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 28px; }
  .showcase.flip .showcase-text { order: 0; }
  .showcase.flip .showcase-media { order: 0; }
}
@media (max-width: 680px) {
  .section-pad { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px var(--pad) 30px;
    background: rgba(16, 12, 22, .97); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 240px; }
}
