/* Lolu marketing site — Orbit design system (deep-space navy, dark-first).
   Tokens mirror app/src/constants/theme.ts so the site and app feel like one. */
:root {
  --canvas: #070d18;
  --surface1: #0d1626;
  --surface2: #14213a;
  --surface3: #1b2c49;
  --border: #21304c;
  --border-strong: #2c3f63;
  --accent: #5b9dff;
  --accent-press: #2e6be0;
  --glow: #7fd7ff;
  --text: #eaf0ff;
  --text-secondary: #aab8d4;
  --fg-subtle: #7d8db0;
  --maxw: 1080px;
  /* Orbit motion language (mirrors foundations/motion.html) */
  --e-out: cubic-bezier(.22,.61,.36,1);
  --t-fast: 140ms;
  --t-base: 220ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--glow); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---- Deep-space backdrop ---- */
.space { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--canvas); }
.aurora {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(91,157,255,0.22), rgba(127,215,255,0.08) 40%, transparent 70%);
  filter: blur(20px);
}
.stars { position: absolute; inset: -50% 0 0 0; background-repeat: repeat; opacity: 0.5; }
/* Three layers of dots at different sizes/speeds for parallax depth. */
.stars-1 {
  background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #cfe0ff, transparent),
    radial-gradient(1px 1px at 200px 160px, #fff, transparent);
  background-size: 260px 260px; animation: drift 90s linear infinite; opacity: 0.35;
}
.stars-2 {
  background-image: radial-gradient(1.5px 1.5px at 60px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 180px 40px, #bcd4ff, transparent);
  background-size: 340px 340px; animation: drift 140s linear infinite; opacity: 0.3;
}
.stars-3 {
  background-image: radial-gradient(2px 2px at 90px 200px, #eaf2ff, transparent),
    radial-gradient(1.5px 1.5px at 250px 100px, #fff, transparent);
  background-size: 480px 480px; animation: drift 220s linear infinite; opacity: 0.22;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(260px); } }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7,13,24,0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
/* Gentle living header orb — glow pulse + tiny scale (no layout shift). */
.brand .orb { animation: orbPulse 7s var(--e-out) infinite; }
@keyframes orbPulse {
  0%,100% { box-shadow: 0 0 12px 1px rgba(91,157,255,0.5); transform: scale(1); }
  50% { box-shadow: 0 0 18px 3px rgba(91,157,255,0.8); transform: scale(1.07); }
}
.brand-name { font-size: 20px; letter-spacing: 0.3px; }
.nav a { margin-left: 22px; color: var(--text-secondary); font-size: 14.5px; }
.nav a:hover { color: var(--text); }

/* The orb mark — glowing sphere, no binary asset. */
.orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--glow), var(--accent) 45%, var(--accent-press) 100%);
  box-shadow: 0 0 14px 2px rgba(91,157,255,0.6); flex: none;
}
.orb.sm { width: 18px; height: 18px; box-shadow: 0 0 8px 1px rgba(91,157,255,0.6); }
.orb-lg {
  position: relative; width: 96px; height: 96px; overflow: hidden;
  box-shadow: 0 0 56px 10px rgba(91,157,255,0.45);
  animation: breathe 7s var(--e-out) infinite;
}
/* Variant B — slow inner specular shimmer drifting across the sphere. */
.orb-lg::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 72% 30%, rgba(191,233,255,0.6), rgba(127,215,255,0) 42%);
  animation: shimmer 18s linear infinite;
}
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.035); } }
@keyframes shimmer { to { transform: rotate(360deg); } }

/* ---- Buttons — Orbit variant A (lift + glow) ---- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; outline: none;
  transition: transform var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out), background var(--t-fast) linear, border-color var(--t-fast);
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent); }
.btn-primary { background: var(--accent); color: #06101f; box-shadow: 0 0 22px rgba(91,157,255,0.34); }
.btn-primary:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 0 30px rgba(91,157,255,0.55), 0 6px 16px rgba(0,0,0,0.4); }
.btn-primary:active { background: var(--accent-press); box-shadow: 0 0 16px rgba(46,107,224,0.5); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface2); }
.btn-ghost:hover { transform: translateY(-1px) scale(1.02); border-color: var(--accent); box-shadow: 0 0 0 1px rgba(91,157,255,0.25); }

/* ---- Hero ---- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--accent); font-weight: 600; }
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.5px; margin-top: 14px;
}
.hero .accent { color: var(--accent); }
.hero .lede { margin-top: 22px; max-width: 520px; font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); }
.cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.coming { margin-top: 18px; font-size: 12.5px; color: var(--fg-subtle); letter-spacing: 0.4px; }

/* ---- Phone mockup ---- */
.hero-device { position: relative; display: flex; justify-content: center; }
.device-glow { position: absolute; inset: 0; margin: auto; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,157,255,0.3), transparent 70%); filter: blur(30px); z-index: -1; }
.phone {
  width: 280px; height: 560px; border-radius: 40px; padding: 12px;
  background: linear-gradient(165deg, #1c2c49, #0c1424);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #060c16; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 30px; background: var(--canvas); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); }
.app-topbar { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 15px; }
.app-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bubble-user { align-self: flex-end; background: var(--accent-press); color: #eaf2ff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; font-size: 12.5px; max-width: 82%; }
.bubble-ai { align-self: flex-start; background: var(--surface3); color: var(--text); padding: 8px 12px; border-radius: 14px 14px 14px 4px; font-size: 12.5px; max-width: 88%; }
.mini-cards { display: flex; gap: 8px; }
.mini-card { flex: 1; background: var(--surface1); border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,0.4); transition: transform var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out); }
.mini-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.mini-card:hover .mini-img { transform: scale(1.06); }
.mini-img { height: 64px; background: linear-gradient(135deg, #16233d, #0a1322); position: relative; transition: transform .4s var(--e-out); }
.mini-img.alt { background: linear-gradient(135deg, #1a2742, #0c1626); }
.chip { position: absolute; top: 6px; left: 6px; font-size: 8px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent); background: rgba(91,157,255,0.14); border: 1px solid rgba(91,157,255,0.32); border-radius: 999px; padding: 2px 6px; }
.mini-meta { padding: 8px; }
.mini-title { font-size: 10.5px; color: var(--text); font-weight: 600; line-height: 1.3; }
.mini-price { font-size: 13px; color: var(--text); font-weight: 700; margin-top: 3px; }
.app-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 8px 8px 14px; color: var(--fg-subtle); font-size: 12px; }
.app-input .send { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #06101f; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(28px, 4vw, 40px); text-align: center; }
.section .sub { text-align: center; color: var(--text-secondary); margin: 8px auto 44px; max-width: 560px; }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface1); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px;
  transition: transform var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out); }
.step:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 12px 26px rgba(0,0,0,0.45); }
.step-no { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #06101f; background: var(--accent); box-shadow: 0 0 18px rgba(91,157,255,0.45); margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-secondary); }

/* Feature cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface1); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(91,157,255,0.22); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(91,157,255,0.12); border: 1px solid rgba(91,157,255,0.3); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: transform var(--t-base) var(--e-out); }
.card .ic svg { width: 22px; height: 22px; }
.card:hover .ic { transform: scale(1.08); }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--text-secondary); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface1); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 16px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-secondary); font-size: 15px; padding: 0 0 16px; }

/* Final CTA */
.cta-final .wrap { text-align: center; }
.cta-final .orb-lg { margin: 0 auto 24px; width: 72px; height: 72px; }
.cta-final h2 { margin-bottom: 6px; }
.cta-final .btn { margin-top: 24px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 40px 0; color: var(--fg-subtle); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--text-secondary); margin-right: 20px; }
.site-footer a:hover { color: var(--text); }
.footnote { width: 100%; color: var(--fg-subtle); font-size: 12.5px; line-height: 1.5; }

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

/* ---- Legal pages ---- */
.legal { padding: 56px 0 24px; }
.legal h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(32px, 5vw, 46px); margin-bottom: 6px; }
.legal .updated { color: var(--fg-subtle); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; color: var(--text); }
.legal p, .legal li { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { word-break: break-word; }
.notice { background: var(--surface1); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 24px 0; font-size: 14px; color: var(--text-secondary); }
.back { display: inline-block; margin-top: 8px; font-size: 14px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .nav a:not(:last-child) { display: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .stars, .orb-lg, .orb-lg::after, .brand .orb, .phone { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .step:hover, .mini-card:hover, .card:hover .ic, .mini-card:hover .mini-img { transform: none; }
  html { scroll-behavior: auto; }
}
