/* ===========================================================
   Currio — Smart Systems. Better Outcomes.
   Shared theme stylesheet
   =========================================================== */

:root {
  --bg:        #0a0a0c;
  --bg-soft:   #121217;
  --bg-card:   #16161d;
  --bg-card-2: #1c1c25;
  --border:    #26262f;
  --border-2:  #34343f;

  --purple:    #8b3dff;
  --purple-2:  #a96bff;
  --lime:      #a3e635;
  --lime-2:    #c2f55b;
  --white:     #f5f5f7;
  --muted:     #9b9ba8;
  --muted-2:   #6e6e7c;

  --grad: linear-gradient(135deg, #8b3dff 0%, #a3e635 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,61,255,.18), rgba(163,230,53,.18));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 50px -10px rgba(139,61,255,.35);

  --maxw: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 12% -5%, rgba(139,61,255,.16), transparent 60%),
    radial-gradient(700px 500px at 95% 8%, rgba(163,230,53,.10), transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(163,230,53,.08); border: 1px solid rgba(163,230,53,.22);
}
.eyebrow.purple { color: var(--purple-2); background: rgba(139,61,255,.10); border-color: rgba(139,61,255,.28); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .96rem; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #0a0a0c; box-shadow: 0 10px 30px -8px rgba(139,61,255,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(139,61,255,.7); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--white); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); border-color: var(--purple); }
.btn-lime { background: var(--lime); color: #0a0a0c; }
.btn-lime:hover { background: var(--lime-2); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,10,12,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border); background: rgba(10,10,12,.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.brand svg, .brand img { width: 36px; height: 36px; }
.brand .word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 22px 0 20px; }
.hero p.lead { font-size: 1.22rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.9rem; font-weight: 800; }
.hero-stats .stat span { color: var(--muted); font-size: .9rem; }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-ring {
  width: min(420px, 90%); aspect-ratio: 1; position: relative;
  display: grid; place-items: center;
  animation: float 7s ease-in-out infinite;
}
.hero-ring svg { width: 78%; height: 78%; filter: drop-shadow(0 20px 60px rgba(139,61,255,.35)); }
.hero-ring::after {
  content: ""; position: absolute; inset: -6%;
  background: var(--grad-soft); border-radius: 50%; filter: blur(40px); z-index: -1;
}
.orbit { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.orbit .chip {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 999px;
  padding: 8px 15px; font-size: .82rem; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow);
}
.orbit.o2 { animation-duration: 34s; animation-direction: reverse; }
.orbit.o3 { animation-duration: 30s; }
.orbit .chip span { color: var(--lime); }
.orbit .chip.p span { color: var(--purple-2); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Logo strip ---------- */
.pillars-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillars-strip .container { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center; padding: 22px 24px; }
.pillars-strip .pill { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.pillars-strip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 16px 0 14px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  transition: transform .22s ease, border-color .22s, box-shadow .22s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--border-2);
}
.card .ico svg { width: 26px; height: 26px; stroke: var(--lime); }
.card.purple .ico svg { stroke: var(--purple-2); }
.card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .tag { margin-top: 16px; display: inline-block; font-size: .8rem; color: var(--lime); font-weight: 700; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover::before { transform: scaleX(1); }

/* feature list */
.flist { list-style: none; display: grid; gap: 12px; }
.flist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.flist li svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; stroke: var(--lime); }
.flist li strong { color: var(--white); display: block; font-weight: 700; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.panel.glow { box-shadow: var(--shadow-glow); }

/* industry / use case rows */
.industry { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); transition: border-color .2s, transform .2s; }
.industry:hover { border-color: var(--purple); transform: translateX(4px); }
.industry .ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); }
.industry .ico svg { width: 24px; height: 24px; stroke: var(--lime); }
.industry h3 { font-size: 1.1rem; margin-bottom: 5px; }
.industry p { color: var(--muted); font-size: .94rem; }

/* stats band */
.stats-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-band .grid-4 { text-align: center; }
.stats-band .stat strong { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; display: block; }
.stats-band .stat strong.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band .stat span { color: var(--muted); font-size: .92rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--lime);
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: 5px; }
.step p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, rgba(139,61,255,.16), rgba(163,230,53,.12));
  border: 1px solid var(--border-2); padding: 64px 40px; text-align: center;
}
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(139,61,255,.3), transparent 70%); z-index: 0; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.8rem,4vw,2.7rem); margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field label .req { color: var(--lime); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border-2); color: var(--white);
  font-family: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,61,255,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { color: var(--muted-2); font-size: .85rem; margin-top: 14px; }
.form-success {
  display: none; align-items: center; gap: 12px; margin-top: 18px; padding: 15px 18px;
  border-radius: var(--radius-sm); background: rgba(163,230,53,.1); border: 1px solid rgba(163,230,53,.3); color: var(--lime); font-weight: 600;
}
.form-success.show { display: flex; }
.contact-aside .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-aside .info-item .ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); }
.contact-aside .info-item .ico svg { width: 22px; height: 22px; stroke: var(--lime); }
.contact-aside .info-item h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-aside .info-item p, .contact-aside .info-item a { color: var(--muted); font-size: .94rem; }
.contact-aside .info-item a:hover { color: var(--lime); }

/* page header */
.page-head { padding: 70px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem,5vw,3.4rem); margin: 18px 0 16px; }
.page-head .lead { margin: 0 auto; }

/* breadcrumb dots */
.checklist { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.checklist li { display: flex; gap: 10px; color: var(--muted); font-size: .95rem; }
.checklist li::before { content: "✓"; color: var(--lime); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: .94rem; max-width: 280px; }
.footer h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--muted); font-size: .94rem; }
.footer ul a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .88rem; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border-2); transition: .2s; }
.footer-bottom .socials a:hover { border-color: var(--purple); background: rgba(139,61,255,.1); }
.footer-bottom .socials svg { width: 18px; height: 18px; stroke: var(--muted); }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 320px; }
  .split, .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; padding: 16px 24px 22px;
    background: rgba(10,10,12,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px);
  }
  .nav-links.open a { padding: 13px 14px; }
  section { padding: 60px 0; }
  .grid-3, .grid-2, .grid-4, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .cta { padding: 48px 24px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* ===========================================================
   v2 upgrades — motion, sections, interactivity
   =========================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 200; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(139,61,255,.6);
}

/* Hero network canvas */
.hero { overflow: hidden; }
#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.hero .container { position: relative; z-index: 1; }

/* glass refinement on panels (cards are opaque — backdrop-filter there caused
   GPU-layer subpixel text fringing, so it's intentionally omitted) */
.panel { backdrop-filter: blur(6px); }
.panel { background: linear-gradient(180deg, rgba(28,28,37,.7), rgba(18,18,23,.7)); }

/* Count-up results band */
.results-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.results-band .grid-4 { text-align: center; }
.result strong { font-size: clamp(2.2rem,4.5vw,3.2rem); font-weight: 800; display: block; line-height: 1; }
.result strong.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result .suffix { -webkit-text-fill-color: var(--lime); }
.result span { color: var(--muted); font-size: .92rem; display: block; margin-top: 8px; }

/* Trust / logos strip */
.trust { text-align: center; }
.trust .eyebrow { margin-bottom: 26px; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: center; align-items: center; }
.trust-logos .tl {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem;
  color: var(--muted); letter-spacing: -.01em; opacity: .8; transition: opacity .2s, color .2s;
}
.trust-logos .tl:hover { opacity: 1; color: var(--white); }
.trust-logos .tl svg { width: 24px; height: 24px; stroke: var(--purple-2); }

/* Testimonials */
.t-card { display: flex; flex-direction: column; gap: 18px; }
.t-card .quote { font-size: 1.05rem; line-height: 1.65; color: var(--white); }
.t-card .stars { display: flex; gap: 3px; }
.t-card .stars svg { width: 16px; height: 16px; fill: var(--lime); stroke: none; }
.t-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-card .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  display: grid; place-items: center; font-weight: 800; color: #0a0a0c; background: var(--grad);
}
.t-card .who h4 { font-size: .98rem; }
.t-card .who span { color: var(--muted); font-size: .85rem; }

/* Tabs (solutions explorer) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--bg-card); border: 1px solid var(--border-2); color: var(--muted);
  transition: .22s;
}
.tab-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.tab-btn:hover { color: var(--white); border-color: var(--purple); }
.tab-btn.active { color: #0a0a0c; background: var(--grad); border-color: transparent; }
.tab-panel { display: none; animation: fadeUp .4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Animated process timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; counter-reset: step; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px;
  background: var(--border-2);
}
.timeline .tl-fill {
  position: absolute; left: 31px; top: 8px; width: 2px; height: 0; background: var(--grad);
  box-shadow: 0 0 10px rgba(139,61,255,.6); transition: height .2s linear;
}
.timeline .step { position: relative; padding-bottom: 30px; }
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step .num {
  position: relative; z-index: 1; background: var(--bg-card-2);
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.timeline .step.lit .num { border-color: var(--purple); color: var(--lime); box-shadow: var(--shadow-glow); }

/* FAQ accordion */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--purple); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0; color: var(--white);
  font-family: inherit; font-weight: 700; font-size: 1.02rem; padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { flex: 0 0 22px; width: 22px; height: 22px; transition: transform .25s; stroke: var(--lime); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); padding: 0 22px 20px; font-size: .97rem; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 84px; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #0a0a0c; border: 0; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(139,61,255,.6);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; stroke: #0a0a0c; stroke-width: 2.4; }

/* tilt/hover lift for cards already present; add subtle glow on icon hover */
.card:hover .ico { box-shadow: 0 0 22px -4px rgba(163,230,53,.4); }

@media (max-width: 720px) {
  .timeline::before, .timeline .tl-fill { left: 23px; }
  .to-top { right: 16px; bottom: 78px; }
}

/* ===== Results band redesign ===== */
.results-band { position: relative; padding: 40px 0; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.results-band::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .55; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.results-grid .result { position: relative; text-align: center; padding: 16px 24px; transition: transform .22s ease; }
.results-grid .result + .result::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: var(--border); }
.results-grid .result:hover { transform: translateY(-5px); }
.r-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--grad-soft); border: 1px solid var(--border-2); transition: box-shadow .22s; }
.r-ico svg { width: 25px; height: 25px; fill: none; stroke: var(--lime); stroke-width: 2; }
.results-grid .result:nth-child(even) .r-ico svg { stroke: var(--purple-2); }
.results-grid .result:hover .r-ico { box-shadow: 0 0 26px -6px rgba(163,230,53,.45); }
.r-num { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; line-height: 1; }
.r-num .num-val { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r-num .sfx { font-size: 1.5rem; font-weight: 800; color: var(--lime); }
.results-grid .result:nth-child(even) .r-num .sfx { color: var(--purple-2); }
.r-label { display: block; color: var(--muted); font-size: .93rem; margin-top: 12px; }
@media (max-width: 720px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .results-grid .result + .result::before { display: none; }
}
@media (max-width: 420px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* Real PNG logo sizing in hero ring */
.hero-ring img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 20px 60px rgba(139,61,255,.4)); }
.brand img { object-fit: contain; }

/* ===================== Interactive morph centerpiece ===================== */
.morph { position: relative; padding: 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: radial-gradient(900px 500px at 50% 30%, rgba(139,61,255,.10), transparent 70%), var(--bg-soft); }
.morph-stage { position: relative; min-height: 800px; display: flex; flex-direction: column; }
#morph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.morph-inner { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; min-height: 800px; padding-top: 70px; padding-bottom: 46px; pointer-events: none; }
.morph-head { text-align: center; max-width: 680px; margin: 0 auto; }
.morph-head h2 { font-size: clamp(2rem,4.5vw,3.2rem); margin: 16px 0 14px; }
.morph-head .lead { margin: 0 auto; transition: opacity .4s; min-height: 56px; }
#morph-word { transition: opacity .3s; }
.morph-spacer { flex: 1; }
.morph-toggles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; pointer-events: auto; }
.morph-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: inherit;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  background: rgba(18,18,23,.7); backdrop-filter: blur(8px); border: 1px solid var(--border-2); color: var(--muted);
  transition: .25s;
}
.morph-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.morph-btn:hover { color: var(--white); border-color: var(--purple); transform: translateY(-2px); }
.morph-btn.active { color: #0a0a0c; background: var(--grad); border-color: transparent; box-shadow: 0 12px 34px -10px rgba(139,61,255,.7); }
.morph-hint { text-align: center; color: var(--muted-2); font-size: .82rem; margin-top: 18px; pointer-events: none; }
@media (max-width: 720px) {
  .morph-stage, .morph-inner { min-height: 600px; }
  .morph-inner { padding-top: 48px; }
}

/* ===================== Video showcase window ===================== */
.video-wrap { position: relative; max-width: 980px; margin: 0 auto; }
.video-wrap::after { content: ""; position: absolute; inset: 6% 8%; background: var(--grad-soft); filter: blur(70px); z-index: -1; border-radius: 40px; }
.vwindow { background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); }
.vbar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--bg-card-2); }
.vdots { display: flex; gap: 7px; }
.vdots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.vdots span:nth-child(1){ background:#ff5f57 } .vdots span:nth-child(2){ background:#febc2e } .vdots span:nth-child(3){ background:#28c840 }
.vurl { flex: 1; max-width: 340px; margin: 0 auto; text-align: center; font-size: .8rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; }
.vurl b { color: var(--lime); font-weight: 600; }
.vscreen { position: relative; aspect-ratio: 16 / 9; background: #0e0e13; }
.vscreen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vmock { position: absolute; inset: 0; display: grid; grid-template-columns: 62px 1fr; }
.vm-side { background: #0d0d12; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px 0; }
.vm-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); }
.vm-side i { width: 22px; height: 22px; border-radius: 7px; background: #1d1d27; }
.vm-side i.on { background: rgba(163,230,53,.18); border: 1px solid rgba(163,230,53,.4); }
.vm-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vm-top { display: flex; justify-content: space-between; align-items: center; }
.vm-h { height: 11px; width: 150px; border-radius: 5px; background: #23232e; }
.vm-pill { height: 22px; width: 84px; border-radius: 999px; background: var(--grad); opacity: .85; }
.vm-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.vm-card { background: #15151c; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.vm-card .k { height: 8px; width: 54px; border-radius: 4px; background: #2a2a35; margin-bottom: 10px; }
.vm-card .v { height: 16px; width: 70px; border-radius: 5px; background: var(--purple-2); opacity: .85; }
.vm-card:nth-child(2) .v { background: var(--lime); } .vm-card:nth-child(3) .v { background: var(--white); opacity:.7; }
.vm-chart { flex: 1; background: #15151c; border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; align-items: flex-end; gap: 10px; min-height: 110px; }
.vm-chart .bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg,var(--purple),rgba(139,61,255,.25)); }
.vm-chart .bar:nth-child(even) { background: linear-gradient(180deg,var(--lime),rgba(163,230,53,.2)); }
.voverlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(10,10,12,.55); cursor: pointer; transition: background .25s; z-index: 3; }
.voverlay:hover { background: rgba(10,10,12,.4); }
.vplay { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 18px 50px -10px rgba(139,61,255,.7); position: relative; }
.vplay::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(163,230,53,.4); animation: vpulse 2.4s ease-out infinite; }
@keyframes vpulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.vplay svg { width: 34px; height: 34px; margin-left: 5px; fill: #0a0a0c; }
.vov-label { font-size: .82rem; color: var(--white); font-weight: 600; letter-spacing: .04em; background: rgba(0,0,0,.35); padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-2); }
.video-cta { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.video-cta .dur { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.video-cta .dur svg { width: 16px; height: 16px; fill: var(--lime); }
@media (max-width: 720px) { .vm-side { display: none; } .vmock { grid-template-columns: 1fr; } .vplay { width: 64px; height: 64px; } }

/* ===================== 3D hero + GSAP ===================== */
.hero-visual { min-height: 460px; position: relative; overflow: visible; }
#three-hero { position: absolute; inset: -10% -8%; width: 116%; height: 120%; display: block; z-index: 1; }
.hero-fallback { width: 60%; max-width: 290px; position: relative; z-index: 0; filter: drop-shadow(0 20px 60px rgba(139,61,255,.4)); animation: float 7s ease-in-out infinite; }
.hero { position: relative; }
/* when GSAP is active, neutralize CSS reveal so GSAP fully owns the animation */
.gsap .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (max-width: 980px) { #three-hero { inset: -4% 0; width: 100%; height: 108%; } .hero-visual { min-height: 380px; } }

/* real video poster in the showcase window */
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; }
.vscreen video { z-index: 2; }
.voverlay { z-index: 3; }

/* ===================== Workflow automation canvas ===================== */
.flow-canvas { position: relative; border: 1px solid var(--border-2); border-radius: 20px; background: radial-gradient(120% 130% at 50% -10%, rgba(139,61,255,.08), transparent 60%), var(--bg-soft); padding: 10px; overflow: hidden; box-shadow: var(--shadow); margin: 0 0 56px; }
.flow-canvas svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.flow-dot { fill: rgba(255,255,255,.06); }
.node-box { fill: #15151c; stroke: var(--border-2); stroke-width: 1.2; }
.node.ai .node-box { stroke: var(--purple-2); stroke-width: 2; }
.node-ico { stroke: #f5f5f7; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node.ai .node-ico { stroke: var(--lime); }
.node-label { fill: #f5f5f7; font-size: 14px; font-weight: 700; text-anchor: middle; }
.node-sub { fill: var(--muted-2); font-size: 10px; font-weight: 700; text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.flow-link { fill: none; stroke: var(--border-2); stroke-width: 2; }
.flow-link.anim { stroke: rgba(163,230,53,.55); stroke-dasharray: 5 7; animation: dashflow 1.1s linear infinite; }
.flow-link.anim.p { stroke: rgba(169,107,255,.6); }
@keyframes dashflow { to { stroke-dashoffset: -24; } }
.flow-group { fill: rgba(255,255,255,.012); stroke: rgba(255,255,255,.16); stroke-width: 1.2; stroke-dasharray: 4 6; }
.flow-pill { fill: #1c1c25; stroke: var(--border-2); }
.flow-pill-text { fill: var(--muted); font-size: 10px; font-weight: 600; text-anchor: middle; }
.tool-panel { fill: #121217; stroke: var(--border-2); }
.tool-chip { fill: #1c1c25; stroke: var(--border-2); }
.tool-chip.on { stroke: var(--lime); }
.ai-halo { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: 0; animation: nodepulse 2.6s ease-out infinite; }
@keyframes nodepulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.flow-canvas .ai-halo { transform-box: fill-box; transform-origin: center; }
.cursor-chip { fill: #2a2a35; stroke: var(--border-2); }
.cursor-text { fill: #f5f5f7; font-size: 11px; font-weight: 700; text-anchor: middle; }

.flow-features { margin-top: 8px; }
.flow-feat .ff-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 16px; }
.flow-feat .ff-ico svg { width: 24px; height: 24px; stroke: var(--lime); fill: none; stroke-width: 2; }
.flow-feat:nth-child(even) .ff-ico svg { stroke: var(--purple-2); }
.flow-feat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.flow-feat p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .flow-canvas { overflow-x: auto; } .flow-canvas svg { min-width: 720px; } }

/* Workflow canvas — alive */
.flow-packet { filter: drop-shadow(0 0 5px rgba(163,230,53,.85)); }
#flow-pan { will-change: transform; }
.flow-canvas .node .node-box { transition: stroke .2s, filter .2s; }
.flow-canvas .node:hover .node-box { stroke: var(--purple-2); }

/* ===================== Product showcase (real screenshots) ===================== */
.ps-wrap { position: relative; max-width: 980px; margin: 0 auto; }
.ps-wrap::after { content: ""; position: absolute; inset: 6% 8%; background: var(--grad-soft); filter: blur(70px); z-index: -1; border-radius: 40px; }
.ps-win { background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); }
.ps-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-card-2); }
.ps-dots { display: flex; gap: 7px; }
.ps-dots span { width: 11px; height: 11px; border-radius: 50%; }
.ps-dots span:nth-child(1){background:#ff5f57}.ps-dots span:nth-child(2){background:#febc2e}.ps-dots span:nth-child(3){background:#28c840}
.ps-url { flex: 1; max-width: 340px; margin: 0 auto; text-align: center; font-size: .8rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; }
.ps-url b { color: var(--lime); font-weight: 600; }
.ps-screen { position: relative; aspect-ratio: 1280 / 641; background: #0e0e13; }
.ps-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .5s ease; }
.ps-screen img.on { opacity: 1; }
.ps-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.ps-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .92rem; color: var(--muted); background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 12px; padding: 11px 16px; overflow: hidden; transition: .2s; }
.ps-tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.ps-tab:hover { color: var(--white); border-color: var(--purple); }
.ps-tab.on { color: #0a0a0c; background: var(--grad); border-color: transparent; box-shadow: 0 10px 28px -10px rgba(139,61,255,.6); }
.ps-tab .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(10,10,12,.55); }
.ps-tab.on .prog { animation: psfill 4s linear forwards; }
@keyframes psfill { to { width: 100%; } }
@media (max-width: 600px) { .ps-tab span { display: none; } }

/* Workflow mode toggle */
.flow-modes { display: flex; gap: 10px; margin: 0 0 22px; flex-wrap: wrap; }
.flow-mode-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .9rem; color: var(--muted); background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 999px; padding: 9px 18px; transition: .2s; }
.flow-mode-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.flow-mode-btn:hover { color: var(--white); border-color: var(--purple); transform: translateY(-1px); }
.flow-mode-btn.on { color: #0a0a0c; background: var(--grad); border-color: transparent; box-shadow: 0 10px 26px -10px rgba(139,61,255,.6); }

/* ===========================================================
   Identity polish — typography, rhythm, motion
   =========================================================== */
:root { --font-display: 'Sora', 'Inter', system-ui, sans-serif; }

h1, h2, h3, h4, .section-title, .hero h1, .card h3, .morph-head h2, .cta h2 { font-family: var(--font-display); }
h1, h2, .section-title { letter-spacing: -.03em; font-weight: 700; }
.hero h1 { letter-spacing: -.04em; line-height: 1.04; font-weight: 800; }
h3, .card h3 { letter-spacing: -.018em; }
.eyebrow { letter-spacing: .16em; font-weight: 700; }
body { letter-spacing: -.003em; }
.lead { font-size: clamp(1.04rem, 1.5vw, 1.15rem); line-height: 1.66; color: #a8a8b4; }

/* consistent vertical rhythm */
section { padding: clamp(60px, 7.5vw, 100px) 0; }
.section-head { margin-bottom: clamp(34px, 5vw, 52px); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; }
.hero { padding: clamp(72px, 9vw, 104px) 0 clamp(64px, 8vw, 88px); }

/* refined cards */
.card { border-radius: 18px; }
.card:hover { transform: translateY(-6px); }
.card .ico { border-radius: 14px; }

/* nav: subtle scale + crisper border on scroll */
.nav.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px -20px rgba(0,0,0,.8); }

/* buttons: slightly tighter, displayy */
.btn { font-family: var(--font-display); letter-spacing: -.01em; font-weight: 700; }

/* links/focus polish for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* selection */
::selection { background: rgba(139,61,255,.4); color: #fff; }

/* scrollbar (webkit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a47; }

/* Solutions: real product screenshots in panels */
.sol-shot { width: 100%; border-radius: 10px; display: block; margin-bottom: 16px; border: 1px solid var(--border); box-shadow: 0 18px 40px -24px rgba(0,0,0,.8); }

/* ===================== Clinic / CRM role showcase ===================== */
.roleview { display: grid; grid-template-columns: 230px 1fr; gap: 18px; max-width: 1040px; margin: 0 auto; }
.role-nav { display: flex; flex-direction: column; gap: 8px; }
.role-btn { display: flex; align-items: center; gap: 11px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .96rem; color: var(--muted); background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 14px; padding: 14px 16px; text-align: left; transition: .2s; }
.role-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; flex: 0 0 20px; }
.role-btn small { display: block; font-weight: 600; font-size: .76rem; color: var(--muted-2); margin-top: 1px; }
.role-btn:hover { color: var(--white); border-color: var(--purple); }
.role-btn.on { color: #0a0a0c; background: var(--grad); border-color: transparent; box-shadow: 0 12px 30px -12px rgba(139,61,255,.6); }
.role-btn.on small { color: rgba(10,10,12,.7); }
.role-main { background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); position: relative; min-height: 420px; }
.role-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-card-2); }
.role-bar .dot3 { display: flex; gap: 6px; } .role-bar .dot3 span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.role-bar .who { font-size: .82rem; color: var(--muted); } .role-bar .who b { color: var(--lime); font-weight: 600; }
.role-panel { display: none; padding: 24px; animation: fadeUp .35s ease; }
.role-panel.on { display: block; }
.role-panel h3 { font-size: 1.2rem; margin-bottom: 4px; }
.role-panel .rp-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.rp-stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.rp-stat .v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.rp-stat .v.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-stat .k { color: var(--muted); font-size: .8rem; margin-top: 7px; }
.rp-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rp-feat { display: flex; gap: 11px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; }
.rp-feat svg { width: 20px; height: 20px; stroke: var(--lime); fill: none; stroke-width: 2; flex: 0 0 20px; margin-top: 2px; }
.rp-feat:nth-child(even) svg { stroke: var(--purple-2); }
.rp-feat b { display: block; font-size: .95rem; font-weight: 700; font-family: var(--font-display); }
.rp-feat span { color: var(--muted); font-size: .85rem; }
@media (max-width: 820px) {
  .roleview { grid-template-columns: 1fr; }
  .role-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .role-btn { flex: 0 0 auto; }
  .rp-stats { grid-template-columns: 1fr 1fr; } .rp-feats { grid-template-columns: 1fr; }
}

/* Selected work cards */
.work-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: transform .22s, border-color .22s, box-shadow .22s; }
.work-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.work-card img { width: 100%; display: block; border-bottom: 1px solid var(--border); }
.work-card .wc-body { padding: 22px 24px 26px; }
.work-card .wc-tag { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.work-card h3 { font-size: 1.25rem; margin: 8px 0 8px; }
.work-card p { color: var(--muted); font-size: .96rem; }
.work-card .wc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.work-card .wc-meta span { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }

/* ===================== Lenis smooth scroll (required CSS) ===================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ===================== Popup chat widget ===================== */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 200; font-family: var(--font-display); }
.chat-launch {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #0a0a0c; display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(139,61,255,.65); position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.chat-launch:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 40px -8px rgba(139,61,255,.8); }
.chat-launch svg { width: 27px; height: 27px; position: absolute; transition: opacity .2s, transform .25s; }
.chat-launch .ci-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.chat-widget.open .chat-launch .ci-open { opacity: 0; transform: rotate(45deg) scale(.6); }
.chat-widget.open .chat-launch .ci-close { opacity: 1; transform: none; }
.chat-launch .chat-ping { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--bg); }
.chat-widget.open .chat-launch .chat-ping { display: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 76px; width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 130px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #15151d, #0e0e13); border: 1px solid var(--border-2);
  border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transform-origin: bottom right; transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
.chat-widget.open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: linear-gradient(120deg, rgba(139,61,255,.22), rgba(163,230,53,.12)); border-bottom: 1px solid var(--border); }
.chat-id { display: flex; align-items: center; gap: 11px; }
.chat-id .chat-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); flex: none; }
.chat-id .chat-av img { width: 26px; height: 26px; }
.chat-id strong { display: block; font-size: .98rem; color: var(--white); }
.chat-id .chat-sub { font-size: .76rem; color: var(--lime); display: flex; align-items: center; gap: 6px; }
.chat-id .chat-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.chat-min { background: rgba(255,255,255,.08); border: 0; color: var(--white); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 1.2rem; line-height: 1; transition: background .2s; }
.chat-min:hover { background: rgba(255,255,255,.18); }

.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.chat-body::-webkit-scrollbar { width: 7px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; font-family: var(--font-sans, 'Inter', system-ui, sans-serif); }
.msg.bot { align-self: flex-start; background: #1d1d27; color: var(--text, #e8e8ee); border-bottom-left-radius: 5px; border: 1px solid var(--border); }
.msg.user { align-self: flex-end; background: var(--grad); color: #0a0a0c; font-weight: 600; border-bottom-right-radius: 5px; }
.msg.bot a { color: var(--lime); font-weight: 700; }
.msg.typing { display: inline-flex; gap: 4px; align-items: center; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatdot 1.1s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-chip { background: rgba(139,61,255,.12); border: 1px solid var(--border-2); color: var(--lime); font-size: .78rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, transform .15s; }
.chat-chip:hover { background: rgba(139,61,255,.28); transform: translateY(-1px); }

.chat-input { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #0c0c11; }
.chat-input input { flex: 1; background: #1a1a23; border: 1px solid var(--border-2); border-radius: 12px; padding: 11px 13px; color: var(--white); font-size: .9rem; font-family: 'Inter', system-ui, sans-serif; outline: none; transition: border-color .2s; }
.chat-input input:focus { border-color: var(--purple-2, #a96bff); }
.chat-input button { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--grad); color: #0a0a0c; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.chat-input button:hover { transform: scale(1.06); }
.chat-input button svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
  .chat-panel { height: calc(100vh - 120px); bottom: 74px; }
  .chat-widget { right: 16px; bottom: 16px; }
}

/* ===== Workflow canvas — interactive stack + persona pills ===== */
.stack-title { fill: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.wf-bg { fill: transparent; stroke: transparent; stroke-width: 1; transition: fill .2s, stroke .2s; }
.wf-item:hover .wf-bg { fill: rgba(255,255,255,.05); }
.wf-item.on .wf-bg { fill: rgba(139,61,255,.16); stroke: var(--purple-2); }
.wf-dot { fill: var(--muted-2); transition: fill .2s; }
.wf-item:hover .wf-dot { fill: var(--white); }
.wf-item.on .wf-dot { fill: var(--lime); }
.wf-tx { fill: var(--muted); font-size: 11px; font-weight: 600; transition: fill .2s; }
.wf-item:hover .wf-tx, .wf-item.on .wf-tx { fill: var(--white); }
.persona-bg { transition: fill .2s, stroke .2s; }
.persona:hover .persona-bg { stroke: var(--purple-2); }
.persona.on .persona-bg { fill: rgba(163,230,53,.10); stroke: var(--lime); }
.persona-tx { transition: fill .2s; }
.persona.on .persona-tx { fill: var(--lime); }

/* ===================== Marquee bands ===================== */
.marquee-band { position: relative; overflow: hidden; padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.marquee-band::before, .marquee-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee { display: flex; overflow: hidden; transition: transform .2s ease-out; will-change: transform; }
.marquee + .marquee { margin-top: 12px; }
.mq-track { display: flex; flex: none; width: max-content; white-space: nowrap; animation: mqscroll 34s linear infinite; }
.mq-track.rev { animation-duration: 44s; animation-direction: reverse; }
.marquee-band:hover .mq-track { animation-play-state: paused; }
.mq { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.7vw, 2.3rem); letter-spacing: -.01em; text-transform: uppercase; color: var(--white); padding: 0 26px; }
.mq.alt { color: transparent; -webkit-text-stroke: 1px var(--muted-2); }
.sep { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.1vw, 1.8rem); color: var(--lime); padding: 0 4px; }
.sep.p { color: var(--purple-2); }
@keyframes mqscroll { to { transform: translateX(-50%); } }

/* ===================== Terminal typewriter ===================== */
.term { max-width: 580px; margin: 0 auto 30px; background: #0b0b10; border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #14141c; border-bottom: 1px solid var(--border); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar em { margin-left: 8px; font-style: normal; font-size: .74rem; color: var(--muted-2); }
.term-body { padding: 16px 18px; min-height: 168px; font-family: 'SFMono-Regular', ui-monospace, Consolas, 'Liberation Mono', Menlo, monospace; font-size: .87rem; line-height: 1.95; }
.term-line { color: var(--muted); white-space: pre-wrap; margin: 0; }
.term-line.g { color: var(--lime); }
.term-line.w { color: var(--white); font-weight: 600; }
.term-line.typing::after { content: '\2589'; color: var(--lime); margin-left: 1px; animation: termblink 1s steps(1) infinite; }
@keyframes termblink { 50% { opacity: 0; } }

/* magnetic buttons get a smoother return */
.btn-primary { will-change: transform; }

/* ===================== Booking modal ===================== */
.book-overlay { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,6,9,.74); backdrop-filter: blur(6px); }
.book-overlay.open { display: flex; }
.book-modal { width: min(700px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #15151d, #0e0e13); border: 1px solid var(--border-2); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -25px rgba(0,0,0,.85); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
.book-overlay.open .book-modal { opacity: 1; transform: none; }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(120deg, rgba(139,61,255,.20), rgba(163,230,53,.10)); }
.book-head strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.book-head span { font-size: .85rem; color: var(--muted); }
.book-x { background: rgba(255,255,255,.08); border: 0; color: var(--white); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 1.3rem; line-height: 1; transition: background .2s; }
.book-x:hover { background: rgba(255,255,255,.18); }
.book-tabs { display: flex; gap: 8px; padding: 14px 20px 0; }
.book-tab { flex: 1; background: transparent; border: 1px solid var(--border-2); color: var(--muted); font-family: inherit; font-weight: 700; font-size: .92rem; padding: 10px; border-radius: 11px 11px 0 0; cursor: pointer; transition: .2s; }
.book-tab.on { color: #0a0a0c; background: var(--grad); border-color: transparent; }
.book-tab:not(.on):hover { color: var(--white); border-color: var(--purple); }
.book-body { flex: 1; overflow-y: auto; padding: 20px; min-height: 200px; }
.book-pane { display: none; }
.book-pane.on { display: block; }
#book-cal { min-height: 600px; }
.book-ph { text-align: center; padding: 44px 18px; }
.book-ph .ico { width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); }
.book-ph .ico svg { width: 26px; height: 26px; stroke: var(--lime); fill: none; stroke-width: 2; }
.book-ph h4 { font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.book-ph p { color: var(--muted); font-size: .93rem; max-width: 380px; margin: 0 auto 18px; }
.book-form .field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.book-form .field { flex: 1; min-width: 180px; margin-bottom: 13px; display: flex; flex-direction: column; gap: 6px; }
.book-form label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.book-form input, .book-form select, .book-form textarea { background: #1a1a23; border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 12px; color: var(--white); font-family: inherit; font-size: .92rem; outline: none; transition: border-color .2s; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { border-color: var(--purple-2); }
.book-form textarea { min-height: 90px; resize: vertical; }
.book-form .req { color: var(--lime); }
.book-form .btn { width: 100%; }
@media (max-width: 520px) { .book-modal { max-height: 94vh; } #book-cal { min-height: 520px; } }

/* Calendly inline embed — force full height (auto-resize doesn't fire on file://) */
#book-cal { min-height: 700px; }
#book-cal iframe, .calendly-inline-widget iframe { width: 100% !important; height: 700px !important; min-height: 700px !important; border: 0; display: block; }
.calendly-inline-widget { min-height: 700px !important; height: 700px !important; }

/* ===================== Product pages ===================== */
.prod-hero-media { position: relative; }
.prod-hero-media .panel { transform: rotate(-1.3deg); }
.prod-chip { position: absolute; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 999px; padding: 9px 15px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; z-index: 2; }
.prod-chip.p { animation-duration: 7.5s; }
.prod-chip span { color: var(--lime); margin-right: 4px; }
.prod-chip.p span { color: var(--purple-2); }
.mod-grid .card { transition: transform .22s ease, border-color .22s, box-shadow .22s; }
.wc-link { display: inline-block; margin-top: 14px; color: var(--lime); font-weight: 700; font-family: var(--font-display); }
.wc-link:hover { color: var(--lime-2); }

/* Calendly embed must stay clickable even while Lenis smooth-scroll is active
   (Lenis sets iframe pointer-events:none globally) */
#book-cal iframe, .calendly-inline-widget iframe { pointer-events: auto !important; }

/* ===================== Free consultation page ===================== */
.consult-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 28px; align-items: start; }
.consult-steps { display: grid; gap: 12px; margin-top: 20px; }
.consult-step { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: transform .2s, border-color .2s; }
.consult-step:hover { transform: translateY(-2px); border-color: var(--purple); }
.consult-step .n { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #0a0a0c; font-weight: 800; font-family: var(--font-display); }
.consult-step h4 { font-size: 1rem; margin-bottom: 2px; }
.consult-step p { color: var(--muted); font-size: .9rem; }
#consult-cal { min-height: 640px; border-radius: 12px; overflow: hidden; }
#consult-cal iframe { width: 100% !important; height: 640px !important; min-height: 640px !important; border: 0; display: block; pointer-events: auto !important; }
@media (max-width: 880px) { .consult-grid { grid-template-columns: 1fr; } #consult-cal, #consult-cal iframe { min-height: 560px !important; height: 560px !important; } }

/* ===================== Consultation page — extra animation ===================== */
.consult-hero { position: relative; overflow: hidden; padding-bottom: 6px; }
.consult-aurora { position: absolute; inset: -30% -10% auto -10%; height: 540px; z-index: -1; pointer-events: none; filter: blur(64px); opacity: .5; }
.consult-aurora::before, .consult-aurora::after { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; }
.consult-aurora::before { background: radial-gradient(circle, rgba(139,61,255,.55), transparent 60%); left: 6%; top: -8%; animation: aur1 15s ease-in-out infinite; }
.consult-aurora::after { background: radial-gradient(circle, rgba(163,230,53,.42), transparent 60%); right: 8%; top: 4%; animation: aur2 18s ease-in-out infinite; }
@keyframes aur1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(46px,34px) scale(1.18); } }
@keyframes aur2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-54px,22px) scale(1.12); } }

.avail-badge { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lime); background: rgba(163,230,53,.08); border: 1px solid rgba(163,230,53,.25); padding: 7px 14px; border-radius: 999px; margin-bottom: 16px; }
.avail-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); position: relative; }
.avail-badge .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--lime); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .85; } 100% { transform: scale(1.9); opacity: 0; } }

.consult-floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; transition: transform .3s ease-out; }
.cfloat { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 12px; padding: 8px 13px; font-size: .78rem; font-weight: 700; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.cfloat:nth-child(2) { animation-duration: 7.5s; }
.cfloat:nth-child(3) { animation-duration: 8.5s; }
.cfloat svg { width: 16px; height: 16px; stroke: var(--lime); fill: none; stroke-width: 2; }
.cfloat.p svg { stroke: var(--purple-2); }
@media (max-width: 760px) { .consult-floats { display: none; } }

.consult-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; max-width: 520px; }
.cstat { flex: 1; min-width: 120px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 15px 18px; }
.cstat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cstat span { color: var(--muted); font-size: .84rem; }

.consult-grid .panel.glow { animation: glowpulse 4.5s ease-in-out infinite; }
@keyframes glowpulse { 0%,100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 56px -12px rgba(139,61,255,.42); } }

/* number pop + check draw (only when GSAP is active, else show normally) */
.gsap .consult-step .n { transform: scale(.55); opacity: 0; }
.consult-step.in .n { animation: popnum .5s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes popnum { to { transform: scale(1); opacity: 1; } }
.gsap .consult-grid .flist svg path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.consult-grid .flist li.in svg path { animation: drawcheck .55s ease forwards; }
@keyframes drawcheck { to { stroke-dashoffset: 0; } }

/* consultation hero: centered, floats frame both sides */
.consult-hero .consult-stats { margin: 26px auto 0; justify-content: center; }
