/* ============ Base / Reset (scoped) ============ */
.leo-scope, .leo-scope * { box-sizing: border-box; }
.leo-scope img { max-width: 100%; display: block; }
.leo-scope a { color: inherit; text-decoration: none; }
.leo-scope :focus-visible { outline: 2px solid #9ec1ff; outline-offset: 2px; }
.leo-scope .skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.leo-scope .skip-link:focus { left: 10px; top: 10px; width: auto; height: auto; padding: 8px 12px; background: #0b0e13; color: #fff; border-radius: 8px; z-index: 99999; }

/* ============ Theme & Spacing System ============ */
:root {
  /* Colors */
  --bg: #0b0e13; --bg-2: #0f131b; --card: #121826cc;
  --text: #eaf1ff; --muted: #c7d1ea;
  --brand: #7c9bff; --brand-2: #6ae4ff;
  --ok: #42d392; --warn: #f7ae51; --danger: #ff6b6b;

  /* Effects / shapes */
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px; --radius-lg: 24px; --maxw: 1180px;

  /* Spacing scale (responsive) */
  --space-1: clamp(8px, 0.9vw, 12px);
  --space-2: clamp(12px, 1.2vw, 16px);
  --space-3: clamp(16px, 1.6vw, 20px);
  --space-4: clamp(20px, 2.0vw, 28px);
  --space-5: clamp(28px, 3.0vw, 40px);
  --space-6: clamp(40px, 5.0vw, 64px);

  /* Page rhythms */
  --grid-gap: var(--space-4);            /* default grid gap */
  --section-pad: clamp(56px, 8vw, 96px); /* top/bottom padding for sections */

  /* Box padding presets */
  --pad-sm: var(--space-3);
  --pad:    var(--space-4);
  --pad-lg: var(--space-5);
}

/* Global container + page bg */
#leoai-landing {
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -5%, #1a1f2e55, transparent),
    radial-gradient(900px 500px at -5% 15%, #10303f66, transparent),
    var(--bg);
  min-height: 100svh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.5;
}
#leoai-landing .container { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 3vw, 28px); }

/* Utility rhythm: give siblings consistent vertical spacing */
#leoai-landing .section > * + * { margin-top: var(--space-3); }
#leoai-landing .stack-row { margin-top: var(--space-3); display:flex; gap: var(--space-2); align-items:center; flex-wrap: wrap; }

/* Micro components */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; background: #ffffff12; color: var(--muted);
  border: 1px solid #ffffff1e;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #0b0e13; font-weight: 700; border: none; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn.alt { background: #ffffff10; color: var(--text); border: 1px solid #ffffff22; }
.btn.small { padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.ghost-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: linear-gradient(#0b0e13e6, #0b0e1300); border-bottom: 1px solid #ffffff10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-2); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .3px; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(from 220deg, var(--brand), var(--brand-2), #9cffd0); box-shadow: inset 0 0 18px #ffffff55; }
.nav a { color: var(--muted); font-weight: 600; }
.nav-links { display: none; gap: var(--space-3); }
.nav-cta { display: none; gap: var(--space-2); }
@media (min-width: 920px) { .nav-links, .nav-cta { display: flex; } }

/* Mobile menu */
.hamburger { display: inline-flex; flex-direction: column; gap: 4px; }
.hamburger span { width: 22px; height: 2px; background: #c6d3ff; border-radius: 2px; }
#menu { display: grid; gap: var(--space-2); padding-block: 0 var(--space-2); }
#menu[hidden] { display: none !important; }
@media (min-width: 920px) { #menu { display: none !important; } .hamburger { display: none; } }

/* HERO */
.hero { padding-block: clamp(64px, 10vw, 104px) clamp(32px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 12px 0 10px; }
.hero p { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); }
.hero .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.glass { background: linear-gradient(180deg, #ffffff10, #ffffff06); border: 1px solid #ffffff20; border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.device { aspect-ratio: 10/7; background: linear-gradient(180deg, #0f1524, #0d111a); border: 1px solid #ffffff14; border-radius: 28px; padding: var(--pad); position: relative; overflow: hidden; }
.device:before { content:""; position: absolute; inset: -40% -30% auto auto; height: 300px; width: 300px; background: radial-gradient(120px 120px at 50% 50%, #7c9bff44, transparent 60%); filter: blur(10px); }
.phone-ui { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: var(--space-2); }
.bubble { padding: 10px 12px; border-radius: 14px; max-width: 86%; font-size: 14px; line-height: 1.35; }
.bubble.user { background: #7c9bff22; margin-left: auto; border: 1px solid #7c9bff55; }
.bubble.leo { background: #ffffff0f; border: 1px solid #ffffff20; }
.phone-bars { height: 6px; width: 44%; background: #ffffff14; border-radius: 100px; margin: 0 auto; }

/* Layout helpers */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); }
@media (min-width: 720px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr);} }
@media (min-width: 980px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr);} }

/* Sections */
.section { padding-block: var(--section-pad); }
.section h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0; }
.section p.lead { color: var(--muted); max-width: 860px; margin: 0; }

/* Cards / features (Unified “box” rules) */
.card,
details,
.glass,
.cta {
  background: var(--card);
  border: 1px solid #ffffff22;
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}
.glass { background: linear-gradient(180deg, #ffffff10, #ffffff06); } /* keep glass look */
.cta { position: relative; overflow: hidden; border: 1px solid #ffffff1e; background: linear-gradient(180deg, #121826ee, #0d1118ee); }
.cta .glow { position: absolute; inset: -50% -30%; background: radial-gradient(300px 300px at 70% 40%, #79a4ff33, transparent 60%), radial-gradient(200px 200px at 20% 60%, #6affff22, transparent 60%); filter: blur(10px); pointer-events: none; }

.card h3 { margin: 0; font-size: 18px; }
.card > * + *,
details > * + *,
.cta > * + * { margin-top: var(--space-2); }

.card.featured { border:2px solid #84a6ff; }
.card-dark { background:#0f1524; }

.icon { width: 28px; height: 28px; border-radius: 8px; background: #ffffff12; display: inline-grid; place-items: center; margin-right: 10px; }

.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; }
.feature p { color: var(--muted); margin: var(--space-1) 0 0; font-size: 15px; }

/* Panels / split layout (Growth section) */
.panels { display: grid; gap: var(--grid-gap); }
@media (min-width: 960px) {
  .panels { grid-template-columns: 1.2fr .8fr; column-gap: clamp(36px, 6vw, 96px); }
  /* Make the privacy card airier on desktop */
  #growth .panels > aside.card { padding: var(--pad-lg); }
}

/* Lists */
.list { display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; }
.list li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: var(--space-2); align-items: start; }
.list .dot { width: 10px; height: 10px; border-radius: 999px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); margin-top: 7px; }

/* FAQ details spacing */
details { background: #ffffff0b; border: 1px solid #ffffff1e; border-radius: 14px; }
details + details { margin-top: var(--space-2); }
details summary { cursor: pointer; font-weight: 700; margin: 0; }
details p { color: var(--muted); margin: var(--space-1) 0 0; }

/* Footer */
.footer { color: #c3cbe2; border-top: 1px solid #ffffff10; padding-block: var(--space-3); font-size: 14px; }
.footer a { color: #d8e2ff; }
.footer-row { display:flex; flex-wrap:wrap; gap: var(--space-2); align-items:center; justify-content:space-between; }
.footer-left { display:flex; gap:10px; align-items:center; }
.footer-nav { display:flex; gap: var(--space-2); }
.year { opacity:.7; }

/* Scroll animations (respect reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  [data-animate].in-view { opacity: 1; transform: translateY(0); }
}

/* Desktop-wide tuning: open up overall gaps slightly without touching mobile */
@media (min-width: 1080px) {
  :root { --grid-gap: var(--space-5); }
}
