/* ===========================================================================
   AI Babu — shared design system
   Friendly, premium, on-device-AI brand. Dark theme, violet→teal accents.
   =========================================================================== */

:root {
  --bg:        #0B0A0F;
  --bg-2:      #100E17;
  --surface:   #16131F;
  --surface-2: #1E1A2B;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #ECEAF3;
  --muted:     #A39EB6;
  --faint:     #6F6A82;

  --primary:   #8B6CFF;
  --primary-2: #C264FF;
  --accent:    #36D6C3;
  --warm:      #FFB36B;

  --grad-brand: linear-gradient(135deg, #8B6CFF 0%, #C264FF 55%, #FF7AC6 100%);
  --grad-accent: linear-gradient(135deg, #36D6C3 0%, #8B6CFF 100%);

  --radius:    18px;
  --radius-lg: 28px;
  --maxw:      1140px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 30px -12px rgba(0, 0, 0, 0.6);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary-2);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(139, 108, 255, 0.1);
  border: 1px solid rgba(139, 108, 255, 0.22);
}

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.97rem; font-family: var(--font);
  padding: 14px 26px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 30px -8px rgba(139, 108, 255, 0.6); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(139, 108, 255, 0.75); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 17px 32px; font-size: 1.03rem; }

/* ---- Navbar ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(11, 10, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.94rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding: clamp(70px, 11vw, 140px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 18% 20%, rgba(139,108,255,0.30), transparent 70%),
    radial-gradient(36% 46% at 82% 16%, rgba(54,214,195,0.20), transparent 70%),
    radial-gradient(40% 60% at 60% 80%, rgba(194,100,255,0.18), transparent 70%);
  filter: blur(8px); z-index: 0; pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(0,-3%,0) scale(1.06); } }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin: 22px 0 0; max-width: 16ch; }
.hero .lead { margin-top: 22px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Generic grid + cards ---------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.card .icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  background: rgba(139,108,255,0.12); border: 1px solid rgba(139,108,255,0.22);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* App cards (home) */
.app-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.app-card .app-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-icon {
  width: 64px; height: 64px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 30px; box-shadow: var(--shadow-sm);
}
.app-card .badge {
  position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; letter-spacing: 0.04em;
}
.badge-live { background: rgba(54,214,195,0.14); color: var(--accent); border: 1px solid rgba(54,214,195,0.3); }
.badge-soon { background: rgba(255,255,255,0.06); color: var(--faint); border: 1px solid var(--border); }
.app-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { font-size: 0.76rem; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.app-card .go { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px; color: var(--primary-2); font-weight: 700; font-size: 0.92rem; }
.app-card.disabled { opacity: 0.62; }

/* ---- Feature list with check ------------------------------------------- */
.checklist { display: grid; gap: 14px; }
.checklist li { list-style: none; display: flex; gap: 13px; align-items: flex-start; color: var(--muted); }
.checklist .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(54,214,195,0.14); color: var(--accent); font-size: 13px; margin-top: 2px; }
.checklist b { color: var(--text); font-weight: 700; }

/* ---- Split section ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---- Device panel ------------------------------------------------------- */
.panel {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow);
}
.spec-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.spec-row .v { font-weight: 700; font-size: 0.95rem; }

/* ---- App store buttons -------------------------------------------------- */
.store-btns { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; padding: 12px 20px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-2); transition: background .15s ease;
}
.store-btn:hover { background: rgba(255,255,255,0.09); }
.store-btn .sb-icon { font-size: 24px; }
.store-btn .sb-text { line-height: 1.15; }
.store-btn .sb-text small { display: block; font-size: 0.68rem; color: var(--faint); font-weight: 600; }
.store-btn .sb-text strong { font-size: 0.98rem; font-weight: 700; }
.store-btn.soon { opacity: 0.7; cursor: default; }
.store-btn.soon:hover { background: rgba(255,255,255,0.05); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(139,108,255,0.35), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(54,214,195,0.25), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-2); text-align: center;
}
.cta-band h2 { max-width: 18ch; margin: 0 auto 16px; }
.cta-band .lead { margin: 0 auto 30px; }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--faint); font-size: 0.9rem; max-width: 38ch; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 0.86rem; }

/* ---- Legal / long-form pages ------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 0 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; font-size: 0.98rem; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px; }
.legal .toc a { display: block; margin-bottom: 8px; text-decoration: none; color: var(--muted); }
.legal .toc a:hover { color: var(--text); }

/* ---- Misc --------------------------------------------------------------- */
.center { text-align: center; }
.mt-sm { margin-top: 14px; } .mt-md { margin-top: 26px; } .mt-lg { margin-top: 44px; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 14px 0 14px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.back-link:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  * { scroll-behavior: auto; }
}
