/* ============================================================
   NFT ATOMS — styles.css
   Hand-crafted futuristic design system.
   No frameworks. Edit brand tokens below to re-skin everything.
   ============================================================ */

/* ---------- 1. BRAND TOKENS (edit colors here) ---------- */
:root {
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-deep: #1a56db;
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-deep: #0891b2;

  --bg: #0b1120;
  --bg-2: #0e1629;
  --bg-3: #121c36;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8edf7;
  --text-dim: #97a3bd;
  --text-faint: #5d6884;

  --glow-blue: 0 0 40px rgba(37, 99, 235, 0.45);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.35);

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --nav-h: 76px;

  --font-head: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme override */
html[data-theme="light"] {
  --bg: #eef2fb;
  --bg-2: #e6ecfa;
  --bg-3: #dde5f6;
  --surface: rgba(10, 22, 50, 0.04);
  --surface-2: rgba(10, 22, 50, 0.06);
  --border: rgba(10, 22, 50, 0.1);
  --border-strong: rgba(10, 22, 50, 0.2);
  --text: #0c1530;
  --text-dim: #44506b;
  --text-faint: #7a849c;
  /* cyan text fails contrast on light backgrounds — darken for text uses */
  --cyan-bright: #0891b2;
  --border: rgba(20, 40, 90, 0.12);
  --border-strong: rgba(20, 40, 90, 0.22);
}

/* Light-theme depth so surfaces don't read flat/cheap */
html[data-theme="light"] body::before {
  background:
    radial-gradient(55% 45% at 12% 2%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(50% 45% at 92% 6%, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(180deg, #f3f6fe, #e7edfb);
}
html[data-theme="light"] .glass { box-shadow: 0 20px 50px -30px rgba(20, 40, 90, 0.4); }
html[data-theme="light"] .nav.scrolled { box-shadow: 0 10px 34px -24px rgba(20, 40, 90, 0.5); }
html[data-theme="light"] .btn-ghost { box-shadow: 0 6px 20px -12px rgba(20, 40, 90, 0.35); }

/* ---------- 2. RESET / BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* page ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(70% 60% at 50% 100%, rgba(37, 99, 235, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  transition: opacity 0.5s var(--ease);
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-bright);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow-cyan); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }

.gradient-text {
  background: linear-gradient(110deg, var(--blue-bright) 0%, #8ab4ff 35%, var(--cyan-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 100px; font-family: var(--font-head);
  font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-bright));
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.65);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(37, 99, 235, 0.85), var(--glow-blue); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(12px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); color: #fff; background: var(--surface-2); }
.btn-accent { color: #06222b; background: linear-gradient(120deg, var(--cyan), var(--cyan-bright)); box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.6); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(34, 211, 238, 0.8), var(--glow-cyan); }

/* ---------- 5. NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .brand-mark { width: 42px; height: 42px; flex: none; box-sizing: border-box; padding: 4px; border-radius: 11px; background: #0b1120; border: 1px solid rgba(255, 255, 255, 0.08); }
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.34em; color: var(--text-faint); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.25s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--cyan); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); transition: 0.25s;
}
.theme-toggle:hover { border-color: var(--cyan); transform: rotate(-15deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- 6. HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 80px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(75% 70% at 40% 50%, transparent 45%, var(--bg) 97%); }
.hero-inner { width: 100%; max-width: 820px; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 700; margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 620px; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-caps { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-caps li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.hero-caps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.7); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-faint); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 3px; background: var(--cyan); animation: scroll-dot 1.6s infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ---------- 7. STATS ---------- */
.stats { padding: 0; margin-top: -40px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; backdrop-filter: blur(10px);
}
.stat { background: var(--bg-2); padding: 34px 26px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
.stat .num .grad { background: linear-gradient(120deg, var(--blue-bright), var(--cyan-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }

/* ---------- 8. CARDS / GLASS ---------- */
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(14px); }

/* Products */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 90px; }
.product:last-child { margin-bottom: 0; }
.product.reverse .product-media { order: 2; }
.product-tag { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 14px; }
.product h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.product p { color: var(--text-dim); margin-bottom: 22px; }
.product .features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.product .features li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.product .features svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--cyan); }
.product-media { position: relative; }
.mock {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); transform-style: preserve-3d;
}
.mock .badge-ph { position: absolute; top: 14px; right: 14px; z-index: 3; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding: 5px 10px; border: 1px dashed var(--border-strong); border-radius: 8px; }
.mock-glow { position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: conic-gradient(from 0deg, var(--blue), var(--cyan), var(--blue)); filter: blur(26px); opacity: 0.35; }

/* ---------- 9. APPS (phones) ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.app-card { text-align: center; padding: 40px 26px; }
.phone {
  width: 200px; max-width: 100%; aspect-ratio: 9 / 19; margin: 0 auto 26px; position: relative;
  border-radius: 30px; padding: 9px; background: linear-gradient(160deg, #1c2742, #0c1120);
  border: 1px solid var(--border-strong); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 52px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); z-index: 4; }
.phone-screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; position: relative; }
.app-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.app-card .meta { font-size: 0.8rem; color: var(--cyan-bright); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.app-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 20px; }
.appstore {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); transition: 0.25s; font-size: 0.85rem;
}
.appstore:hover { border-color: var(--cyan); transform: translateY(-2px); }
.appstore svg { width: 22px; height: 22px; }
.appstore small { display: block; font-size: 0.62rem; color: var(--text-faint); letter-spacing: 0.08em; }
.appstore b { font-family: var(--font-head); font-size: 0.95rem; }

/* ---------- 10. CAPABILITIES GRID ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap { padding: 32px; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s; }
.cap:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.cap .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.16)); border: 1px solid var(--border); }
.cap .icon svg { width: 26px; height: 26px; color: var(--cyan-bright); }
.cap h3 { font-size: 1.2rem; margin-bottom: 10px; }
.cap p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- 11. PROCESS TIMELINE ---------- */
.timeline { position: relative; max-width: 760px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--blue), var(--cyan)); opacity: 0.4; }
.step { display: flex; gap: 26px; padding: 20px 0; }
.step .dot { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; background: var(--bg-3); border: 1px solid var(--border-strong); z-index: 1; }
.step .dot .grad { background: linear-gradient(120deg, var(--blue-bright), var(--cyan-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); }

/* ---------- 12. TESTIMONIALS ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 50px; }
.quote { padding: 30px; }
.quote .stars { color: var(--cyan); margin-bottom: 14px; letter-spacing: 2px; }
.quote p { font-size: 1rem; margin-bottom: 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--cyan)); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; }
.quote .who b { font-size: 0.95rem; }
.quote .who span { display: block; font-size: 0.82rem; color: var(--text-faint); }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; opacity: 0.6; }
.logos-row span { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text-dim); }

/* ---------- 13. CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.contact-info p { color: var(--text-dim); margin-bottom: 28px; }
.contact-points { display: flex; flex-direction: column; gap: 18px; }
.contact-points li { display: flex; gap: 14px; align-items: center; }
.contact-points .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); }
.contact-points .ic svg { width: 20px; height: 20px; color: var(--cyan-bright); }
.contact-points b { font-size: 0.96rem; }
.contact-points span { color: var(--text-faint); font-size: 0.86rem; }
.form { padding: 36px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 7px; font-family: var(--font-head); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem; transition: 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.field textarea { resize: vertical; min-height: 110px; }
.field .err { color: #ff7b7b; font-size: 0.78rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #ff7b7b; }
.form-status { font-size: 0.9rem; margin-top: 14px; min-height: 20px; }
.form-status.ok { color: #5fdc9c; }
.form-status.bad { color: #ff7b7b; }

/* ---------- 14. FOOTER ---------- */
.footer { padding: 70px 0 36px; border-top: 1px solid var(--border); position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 50px; }
.footer .brand { margin-bottom: 16px; }
.footer-grid p { color: var(--text-dim); font-size: 0.92rem; max-width: 300px; }
.footer h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer-grid li a:hover { color: var(--cyan-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.85rem; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); transition: 0.25s; }
.socials a:hover { border-color: var(--cyan); color: var(--cyan-bright); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- 15. AI CHAT WIDGET ---------- */
.chat-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
  box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.7), var(--glow-blue); transition: transform 0.3s var(--ease);
}
.chat-fab:hover { transform: scale(1.08) translateY(-2px); }
.chat-fab svg { width: 26px; height: 26px; color: #fff; }
.chat-fab .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue-bright); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.chat-panel {
  position: fixed; bottom: 100px; right: 26px; z-index: 91; width: min(360px, calc(100vw - 40px));
  height: 480px; max-height: calc(100vh - 140px); display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.chat-head .av { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--cyan)); display: grid; place-items: center; flex: none; }
.chat-head .av svg { width: 22px; height: 22px; color: #fff; }
.chat-head b { font-size: 0.95rem; display: block; }
.chat-head .status { font-size: 0.76rem; color: #5fdc9c; display: flex; align-items: center; gap: 5px; }
.chat-head .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fdc9c; box-shadow: 0 0 8px #5fdc9c; }
.chat-head .close { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--text-dim); transition: 0.2s; }
.chat-head .close:hover { background: var(--surface); color: var(--text); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright)); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-foot { padding: 14px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-foot input { flex: 1; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.9rem; }
.chat-foot input:focus { outline: none; border-color: var(--blue-bright); }
.chat-foot button { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright)); }
.chat-foot button svg { width: 20px; height: 20px; color: #fff; }
.chat-note { text-align: center; font-size: 0.68rem; color: var(--text-faint); padding: 0 0 8px; }

/* ---------- 16. SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; padding: 16px 22px 28px;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .product, .product.reverse .product-media { grid-template-columns: 1fr; order: 0; }
  .product-media { max-width: 480px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .caps-grid, .apps-grid, .quotes-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .caps-grid, .apps-grid, .quotes-grid, .footer-grid, .stats-grid, .form .row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .stat { padding: 26px 18px; }
  /* Free up the nav: the mobile menu already links to Contact */
  .nav-actions .btn-primary { display: none; }
  .brand span { font-size: 0.98rem; }
  .brand small { font-size: 0.56rem; letter-spacing: 0.28em; }
  .form { padding: 26px 20px; }
}

/* ---------- 18. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* ============================================================
   19. BOLD / FUTURISTIC LAYER  (added in v2 — AI restyle)
   ============================================================ */

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 200; transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

/* cursor spotlight */
.spotlight {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, -100px) var(--my, -100px), rgba(59, 130, 246, 0.10), transparent 70%);
  transition: opacity 0.4s var(--ease); opacity: 0;
}
@media (pointer: fine) { .spotlight { opacity: 1; } }
html[data-theme="light"] .spotlight { background: radial-gradient(220px circle at var(--mx, -100px) var(--my, -100px), rgba(37, 99, 235, 0.12), transparent 70%); }

/* animated aurora mesh + grain */
.aurora {
  position: fixed; inset: -25% 0 auto 0; width: 100%; height: 75vh; z-index: -2; pointer-events: none; filter: blur(60px); opacity: 0.28;
  background:
    radial-gradient(40% 40% at 22% 28%, rgba(37, 99, 235, 0.30), transparent 62%),
    radial-gradient(35% 45% at 80% 18%, rgba(34, 211, 238, 0.16), transparent 62%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* hero: live status dot + typewriter caret */
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: livePulse 2s infinite; flex: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.type::after { content: ""; display: inline-block; width: 2px; height: 0.95em; margin-left: 2px; background: var(--cyan); vertical-align: -0.1em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* tech marquee */
.marquee-wrap { padding: 26px 0 8px; }
.marquee-label { text-align: center; color: var(--text-faint); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text-dim); }
.marquee-track .dot { color: var(--cyan); font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* animated conic glow border (shared) */
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 55%, var(--blue-bright) 70%, var(--cyan) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease); animation: spinBorder 6s linear infinite;
}
.glow-border:hover::before { opacity: 1; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --a: 360deg; } }

/* solutions bento */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 14px; max-width: 980px; margin-left: auto; margin-right: auto; }
.bento-card { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.bento-card.lg { grid-column: span 2; }
.bento-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.bento-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: var(--blue-bright); background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 211, 238, 0.12)); border: 1px solid var(--border); }
.bento-ic svg { width: 24px; height: 24px; }
.bento-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.bento-card p { color: var(--text-dim); font-size: 0.96rem; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.bento-tags span { font-size: 0.72rem; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); }
.solutions-cta { text-align: center; margin-top: 30px; }

/* ---- Live AI Lab ---- */
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px; }
.lab-card { padding: 22px 22px 24px; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.lab-card.wide { grid-column: 1 / -1; }
.lab-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lab-head h3 { font-size: 1.18rem; }
.lab-pill { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--blue-bright); background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.3); }
.lab-pill.ok { color: #34d399; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.lab-sub { color: var(--text-dim); font-size: 0.9rem; margin: 8px 0 14px; }
.lab-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, rgba(37, 99, 235, 0.08), transparent), var(--bg-2); border: 1px solid var(--border); height: 240px; }
.lab-stage canvas { width: 100%; height: 100%; display: block; }
.lab-stage.latent { height: 220px; background: #0b1120; }

/* NLP demo */
.nlp-inputrow { display: flex; gap: 10px; }
.nlp-inputrow input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font: inherit; }
.nlp-inputrow input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.nlp-inputrow .btn { padding: 12px 18px; }
.nlp-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; font-size: 0.82rem; color: var(--text-faint); }
.nlp-examples button { font-size: 0.78rem; padding: 4px 11px; border-radius: 999px; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); transition: border-color 0.3s, color 0.3s; }
.nlp-examples button:hover { color: var(--text); border-color: var(--border-strong); }
.nlp-out { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-height: 120px; }
.nlp-hint { color: var(--text-faint); font-size: 0.9rem; }
.nlp-tokens { line-height: 2.2; margin-bottom: 14px; }
.tok { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.tok.pos { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.tok.neg { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.tok.mod { background: rgba(34, 211, 238, 0.16); color: var(--cyan-bright); }
.nlp-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.nlp-row .lab { width: 84px; color: var(--text-faint); font-size: 0.82rem; flex: none; }
.nlp-row .val { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sent.positive { color: #34d399; } .sent.negative { color: #f87171; } .sent.neutral { color: var(--text-dim); }
.bar { width: 120px; height: 7px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 5px; transition: width 0.8s var(--ease); background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.bar.negative > i { background: linear-gradient(90deg, #f87171, #22d3ee); }
.bar.neutral > i { background: var(--text-faint); }
.conf { font-size: 0.78rem; color: var(--text-faint); }
.nlp-foot { margin-top: 12px; font-size: 0.76rem; color: var(--text-faint); }

/* dashboard */
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dash-stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.dash-stat .dv { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; background: linear-gradient(90deg, var(--blue-bright), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dash-stat .dl { font-size: 0.76rem; color: var(--text-faint); letter-spacing: 0.04em; }
.dash-chartwrap { margin-top: 14px; height: 90px; }
#dash-chart { width: 100%; height: 100%; display: block; }

/* latent controls */
.latent-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.latent-controls label { font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.04em; display: flex; flex-direction: column; gap: 6px; text-transform: uppercase; }
.latent-controls input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--surface-2); outline: none; }
.latent-controls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--cyan); cursor: pointer; box-shadow: 0 0 8px rgba(34, 211, 238, 0.6); }
.latent-controls input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--cyan); cursor: pointer; }

/* chat: prompt chips + streaming caret */
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 8px; }
.chat-chips button { font-size: 0.76rem; padding: 6px 11px; border-radius: 999px; color: var(--blue-bright); background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.28); transition: background 0.3s; }
.chat-chips button:hover { background: rgba(59, 130, 246, 0.22); }
.msg.bot.streaming::after { content: "▋"; margin-left: 1px; color: var(--cyan); animation: caret 1s steps(1) infinite; }

/* magnetic buttons keep transform smooth */
.btn { will-change: transform; }

/* responsive */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.lg { grid-column: span 2; }
  .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.lg { grid-column: span 1; }
  .nlp-inputrow { flex-direction: column; }
  .nlp-inputrow .btn { width: 100%; justify-content: center; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
