/* ============================================================
   Nirmith AI Labs — Website Styles
   Dark-navy + light-blue brand system (matches logo).
   Single stylesheet: design tokens + components.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0B1E33;   /* deep navy (logo background) */
  --bg-2:      #0E2740;   /* alternating sections */
  --surface:   #13293D;   /* cards */
  --surface-2: #17324B;   /* card hover / raised */
  --accent:    #4FB6E6;   /* light-blue (logo dashes) */
  --accent-2:  #7CD6F0;   /* brighter cyan */
  --accent-3:  #2E86C7;   /* deeper blue for gradients */
  --text:      #F5F9FC;
  --muted:     #9DB2C6;
  --muted-2:   #6E859B;
  --border:    rgba(255, 255, 255, .09);
  --border-2:  rgba(124, 214, 240, .28);

  --grad: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  --grad-text: linear-gradient(100deg, #ffffff 0%, var(--accent-2) 60%, var(--accent) 100%);

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .65);
  --shadow-glow: 0 0 60px -14px rgba(79, 182, 230, .5);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

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

/* ---------- Base / reset supplements ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

ul { margin: 0; padding: 0; list-style: none; }

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

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2.title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lead { font-size: 1.075rem; color: var(--muted); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #04121f;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(79, 182, 230, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(79, 182, 230, .8); color: #04121f; }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-2); background: rgba(124, 214, 240, .08); color: var(--text); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 30, 51, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img, .brand svg { height: 56px; width: auto; }
/* single full-lockup logo image (icon + wordmark together) */
.brand-logo { height: 56px; width: auto; display: block; }
.footer .brand-logo { height: 44px; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .14em;
  color: var(--text);
}
.brand .brand-name span {
  font-size: .58rem;
  letter-spacing: .34em;
  color: var(--accent);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.link {
  font-family: var(--font-head);
  font-size: 1.06rem;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a.link:hover, .nav-links a.link.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  opacity: .55;
}
.hero::before {
  /* radial glow */
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79, 182, 230, .22), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(124, 214, 240, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 214, 240, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 78%);
}
.hero-inner { max-width: 1040px; text-align: center; margin: 0 auto; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124, 214, 240, .08);
  border: 1px solid var(--border-2);
  color: var(--accent-2);
  font-size: .82rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
  font-family: var(--font-head);
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero .sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 72px;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.stat { text-align: center; padding: 20px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); }
.stat b { font-family: var(--font-head); font-size: 2rem; display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Pills (about) ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.pill {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .92rem;
}
.pill svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 25%, rgba(79, 182, 230, .18), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  overflow: hidden;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); background: var(--surface-2); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(124, 214, 240, .16), rgba(46, 134, 199, .1));
  border: 1px solid var(--border-2);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--accent-2); }
.card h3 { font-size: 1.32rem; margin-bottom: 4px; }
.card .cat { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-family: var(--font-head); }
.card .pitch { margin: 12px 0 16px; font-size: .96rem; }
.card .feat { display: grid; gap: 9px; margin-bottom: 22px; }
.card .feat li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.card .feat li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.card .learn {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  color: var(--accent-2);
}
.card .learn .arrow { transition: transform .2s; }
.card:hover .learn .arrow { transform: translateX(4px); }

/* ---------- Why / feature blocks ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.why-item { padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.why-item:hover { border-color: var(--border-2); background: rgba(124, 214, 240, .04); }
.why-item .why-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 214, 240, .1); margin-bottom: 18px; }
.why-item .why-icon svg { width: 24px; height: 24px; color: var(--accent-2); }
.why-item h3 { font-size: 1.15rem; }
.why-item p { font-size: .92rem; margin: 0; }

/* ---------- Services (Solutions as a Service) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step { position: relative; padding: 30px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); transition: border-color .3s, background .3s, transform .3s; }
.step:hover { border-color: var(--border-2); background: rgba(124,214,240,.04); transform: translateY(-4px); }
.step-n { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: #04121f; background: var(--grad); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.14rem; margin-bottom: 6px; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- Clients ---------- */
.client-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 44px; margin-top: 8px; }
/* Every logo gets the same bounding box, then fits inside it — so wide wordmarks
   and compact emblems all read at an even size. */
.client { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; text-align: center; color: var(--muted); opacity: .82; transition: color .25s, opacity .25s; display: inline-flex; align-items: center; justify-content: center; width: 148px; height: 46px; }
.client:hover { color: var(--text); opacity: 1; }
.client-strip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: .6; filter: brightness(0) invert(1); transition: opacity .25s; }
.client-strip img:hover { opacity: 1; }
@media (max-width: 600px) { .client { font-size: .95rem; width: 120px; height: 40px; } .client-strip { gap: 22px 26px; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Book-a-demo card (opens the Calendly popup) */
.book-card {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px; margin-bottom: 28px; border-radius: 14px;
  text-decoration: none; cursor: pointer;
  background: radial-gradient(300px 120px at 12% 0%, rgba(79,182,230,.14), transparent 70%), var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: 0 20px 50px -34px rgba(79,182,230,.7);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-2px); border-color: rgba(124,214,240,.5); box-shadow: 0 24px 60px -30px rgba(79,182,230,.85); }
.book-card .book-ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(124,214,240,.1); border: 1px solid var(--border-2);
}
.book-card .book-ic svg { width: 22px; height: 22px; color: var(--accent-2); }
.book-card .book-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.book-card .book-tx b { font-family: var(--font-head); font-size: 1rem; color: var(--text); }
.book-card .book-tx span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.book-card .book-go { color: var(--accent-2); font-size: 1.2rem; transition: transform .2s; }
.book-card:hover .book-go { transform: translateX(4px); }

/* ---------- Booking modal (self-owned scheduler) ---------- */
.bk-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6,16,28,.72); backdrop-filter: blur(6px); }
.bk-overlay.open { display: flex; animation: bk-fade .2s ease; }
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
.bk-modal { width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border-2);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9); animation: bk-pop .25s cubic-bezier(.2,1,.4,1); }
@keyframes bk-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 22px 0; }
.bk-kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.bk-sub { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; margin-top: 4px; }
.bk-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.bk-close:hover { color: var(--text); }
.bk-body { padding: 18px 22px 24px; }
.bk-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.bk-hint { color: var(--muted); font-size: .88rem; margin: 16px 0 0; }
.bk-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.bk-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); cursor: pointer; transition: .15s; }
.bk-date:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.bk-date .dw { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.bk-date .dd { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.bk-date .dm { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 9px; }
.bk-time { padding: 11px 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--mono); font-size: .82rem; cursor: pointer; transition: .15s; }
.bk-time:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(79,182,230,.08); }
.bk-time[disabled] { opacity: .32; cursor: not-allowed; }
.bk-back { background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; cursor: pointer; padding: 0 0 14px; }
.bk-back:hover { color: var(--accent); }
.bk-loading, .bk-empty { color: var(--muted); font-size: .9rem; padding: 20px 0; text-align: center; grid-column: 1 / -1; }
.bk-when { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px;
  background: radial-gradient(200px 80px at 10% 0%, rgba(79,182,230,.14), transparent 70%), var(--bg-2);
  border: 1px solid var(--border-2); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.bk-when svg { width: 18px; height: 18px; color: var(--accent-2); flex: 0 0 auto; }
.bk-field { margin-bottom: 14px; }
.bk-field label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.bk-field input, .bk-field textarea { width: 100%; padding: 11px 13px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: .92rem; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,182,230,.15); }
.bk-field textarea { resize: vertical; }
.bk-err { color: #FFB4A2; font-size: .84rem; margin-bottom: 12px; }
.bk-submit { width: 100%; justify-content: center; margin-top: 4px; }
.bk-done { text-align: center; }
.bk-tick { width: 60px; height: 60px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center;
  background: rgba(91,208,160,.14); border: 1px solid rgba(91,208,160,.4); color: #5BD0A0; }
.bk-tick svg { width: 28px; height: 28px; }
.bk-done h3 { font-family: var(--font-head); font-size: 1.4rem; margin: 0 0 14px; }
.bk-done .bk-when { justify-content: center; }
@media (max-width: 460px) { .bk-modal { max-height: 94vh; } .bk-times { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .bk-overlay.open, .bk-modal { animation: none; } }

.contact-info .contact-row { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.contact-info .contact-row .ci {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
}
.contact-info .contact-row .ci svg { width: 20px; height: 20px; color: var(--accent); }
.contact-info .contact-row b { font-family: var(--font-head); font-size: .95rem; display: block; }
.contact-info .contact-row span, .contact-info .contact-row a { color: var(--muted); font-size: .92rem; }

.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, background .2s;
}
.socials a:hover { transform: translateY(-3px); border-color: var(--border-2); background: rgba(124, 214, 240, .08); }
.socials a svg { width: 19px; height: 19px; color: var(--muted); }
.socials a:hover svg { color: var(--accent-2); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-size: .84rem; margin-bottom: 8px; color: var(--muted); letter-spacing: .03em; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 182, 230, .15); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 182, 230, .16), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { background: #08182a; border-top: 1px solid var(--border); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .brand { margin-bottom: 18px; }
.footer p { font-size: .92rem; max-width: 320px; }
.footer h4 { font-family: var(--font-head); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--muted); font-size: .92rem; }
.footer ul li a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom span { color: var(--muted-2); font-size: .86rem; }

/* ---------- Product detail page ---------- */
.detail-hero {
  padding: 148px 0 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.detail-hero::before {
  content: ""; position: absolute; top: -20%; right: -5%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(79, 182, 230, .18), transparent 62%);
  z-index: -1;
}
.back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.back-link:hover { color: var(--accent-2); }
.detail-hero .chip {
  display: inline-block; font-family: var(--font-head);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(124, 214, 240, .08);
  border: 1px solid var(--border-2); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.detail-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
.detail-hero .pitch { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; transition: border-color .3s, transform .3s; }
.info-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.info-card h3 { display: flex; gap: 11px; align-items: center; font-size: 1.08rem; margin-bottom: 8px; }
.info-card h3 svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }
.info-card p { font-size: .92rem; margin: 0; }

.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.check-list li b { font-family: var(--font-head); font-weight: 500; color: var(--text); display: block; font-size: .98rem; }
.check-list li span { font-size: .9rem; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.audience-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.audience-tags span { padding: 9px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; color: var(--muted); font-family: var(--font-head); }

/* ---------- UI mockups (self-contained "images") ---------- */
.mockup {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  /* overflow visible so floating badges can overhang; corners handled per-child */
}
.mockup::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: .8;
  border-radius: 15px 15px 0 0;
}
.mockup-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); border-radius: 15px 15px 0 0; }
.mockup-dots { display: flex; gap: 7px; }
.mockup-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); }
.mockup-dots i:nth-child(1) { background: rgba(255,95,87,.7); }
.mockup-dots i:nth-child(2) { background: rgba(254,188,46,.7); }
.mockup-dots i:nth-child(3) { background: rgba(40,200,120,.7); }
.mockup-url { flex: 1; height: 22px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.mockup-body { padding: 18px; }
.mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mk-tile { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px; padding: 12px 13px; }
.mk-tile b { font-family: var(--font-head); font-size: 1.15rem; color: var(--text); display: block; line-height: 1; }
.mk-tile span { font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.mk-tile em { display: block; height: 5px; width: 60%; border-radius: 4px; background: var(--grad); margin-top: 9px; opacity: .85; }
.mockup-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.mk-chart { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 10px; padding: 14px 14px 12px; display: flex; align-items: flex-end; gap: 7px; min-height: 128px; }
.mk-chart span { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad); opacity: .85; }
.mk-list { display: grid; gap: 11px; align-content: start; }
.mk-row { display: flex; align-items: center; gap: 10px; }
.mk-row i { width: 26px; height: 26px; border-radius: 7px; background: rgba(124,214,240,.12); border: 1px solid var(--border-2); flex: 0 0 auto; }
.mk-row u { height: 8px; border-radius: 4px; background: rgba(255,255,255,.09); flex: 1; text-decoration: none; }
.mk-row u.short { max-width: 55%; }
.mk-row u.accent { background: rgba(124,214,240,.35); max-width: 70%; }

/* Hero product visual */
.hero-visual { max-width: 900px; margin: 62px auto 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .mockup { animation: floaty 6s ease-in-out infinite; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Product detail hero split layout */
.detail-hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
.detail-hero .mockup { max-width: 460px; margin-left: auto; }
.detail-hero .converge { max-width: 900px; }

/* Floating stat badge over mockups */
.mk-badge {
  position: absolute; z-index: 2;
  background: rgba(11,30,51,.92);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
}
.mk-badge svg { width: 22px; height: 22px; color: var(--accent-2); }
.mk-badge b { font-size: .95rem; display: block; line-height: 1.1; }
.mk-badge span { font-size: .7rem; color: var(--muted); }
.mk-badge.tr { top: -16px; right: -14px; }
.mk-badge.bl { bottom: -16px; left: -14px; }

@media (max-width: 900px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-hero .mockup { margin: 0 auto; max-width: 520px; }
}
@media (max-width: 560px) {
  .mockup-main { grid-template-columns: 1fr; }
  .mk-badge.tr { right: 4px; }
  .mk-badge.bl { left: 4px; }
}

/* ============================================================
   Narrative: problems → systems (schematic components)
   ============================================================ */
:root {
  --warn: #E6A24C;   /* semantic: an unresolved problem */
  --crit: #D96F5A;   /* semantic: a critical problem */
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* floating "mess" problem chips (hero) */
.mess-stage { position: relative; margin-top: 46px; height: clamp(230px, 30vw, 300px); }
.pchip {
  position: absolute;
  font-family: var(--mono); font-size: .8rem; color: #E7CDA6;
  background: rgba(230, 162, 76, .06); border: 1px solid rgba(230, 162, 76, .32);
  border-radius: 9px; padding: 8px 12px; white-space: nowrap; box-shadow: var(--shadow);
}
.pchip::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); margin-right: 8px; vertical-align: middle; opacity: .75; }
@media (prefers-reduced-motion: no-preference) { .pchip { animation: pchip-drift 9s ease-in-out infinite; } }
@keyframes pchip-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* convergence diagram (reusable: homepage + every product page) */
.converge {
  position: relative; height: clamp(360px, 42vw, 440px);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: radial-gradient(600px 300px at 50% 60%, rgba(79, 182, 230, .06), transparent 70%), var(--bg-2);
  overflow: hidden;
}
.converge .edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.converge .edge { stroke: var(--accent); stroke-width: 1.2; fill: none; opacity: 0; stroke-dasharray: 5 7; transition: opacity .8s ease; }
.converge.go .edge { opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .converge.go .edge { animation: cv-flow 1.1s linear infinite; } }
@keyframes cv-flow { to { stroke-dashoffset: -24; } }
.converge .pc {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: .76rem; color: #E7CDA6;
  background: rgba(230, 162, 76, .07); border: 1px solid rgba(230, 162, 76, .32);
  border-radius: 8px; padding: 7px 11px; white-space: nowrap; max-width: 210px;
  transition: color .7s ease, opacity .7s ease, border-color .7s ease, background .7s ease, filter .7s ease; z-index: 2;
}
.converge.go .pc { color: var(--muted-2); border-color: var(--border); background: rgba(255, 255, 255, .02); opacity: .5; filter: saturate(.2); }
.converge .node {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94); z-index: 3;
  text-align: center; border: 1px solid var(--border-2); border-radius: 16px; padding: 26px 30px; min-width: 210px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  transition: transform .8s cubic-bezier(.3,0,.2,1), border-color .8s ease, box-shadow .8s ease;
}
.converge.go .node { transform: translate(-50%, -50%) scale(1); border-color: var(--accent); box-shadow: 0 0 0 1px rgba(79, 182, 230, .35), 0 24px 70px -24px rgba(79, 182, 230, .55); }
.converge .node .lbl { font-family: var(--mono); font-size: .62rem; letter-spacing: .22em; color: var(--muted-2); text-transform: uppercase; }
.converge.go .node .lbl { color: var(--accent); }
.converge .node .nm { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 4px; }
.converge .node .ds { color: var(--muted); font-size: .85rem; margin: 0; }
.cv-cap { margin-top: 20px; font-family: var(--mono); font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cv-cap b { color: var(--accent); }

@media (max-width: 600px) {
  .converge .pc { font-size: .66rem; max-width: 138px; padding: 5px 8px; white-space: normal; text-align: center; }
  .converge .node { min-width: 0; padding: 18px 20px; }
  .converge .node .nm { font-size: 1.3rem; }
}

/* ---------- Origin story (homepage manifesto) ---------- */
.origin { max-width: 820px; margin: 0 auto; }
.origin-open { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.3vw, 2.3rem); letter-spacing: -.02em; line-height: 1.18; margin: 8px 0 14px; text-wrap: balance; }
.origin-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin: 0 0 50px; }
.beats { position: relative; display: flex; flex-direction: column; gap: 38px; padding-left: 54px; --p: 0; }
.beats::before, .beats::after { content: ""; position: absolute; left: 15px; top: 10px; bottom: 12px; width: 2px; border-radius: 2px; }
.beats::before { background: var(--border-2); opacity: .4; }
.beats::after { background: linear-gradient(180deg, var(--accent-2), var(--accent)); transform: scaleY(var(--p)); transform-origin: top center; box-shadow: 0 0 14px rgba(79,182,230,.55); transition: transform .1s linear; }
.beat { position: relative; opacity: .38; transform: translateY(8px); transition: opacity .55s ease, transform .55s ease; }
.beat.lit { opacity: 1; transform: none; }
.beat .n { position: absolute; left: -54px; top: -2px; width: 32px; height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border-2); display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; color: var(--accent); z-index: 1; transition: border-color .4s, box-shadow .4s, background .4s, color .4s; }
.beat.lit .n { border-color: var(--accent); color: var(--accent-2); background: var(--surface-2); box-shadow: 0 0 0 1px rgba(79,182,230,.4), 0 0 22px -4px rgba(79,182,230,.85); }
.beat .lbl { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.beat h3 { font-family: var(--font-head); font-size: clamp(1.15rem, 2.3vw, 1.55rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 6px 0 8px; }
.beat h3 em { font-style: normal; color: var(--accent-2); }
.beat p { color: var(--muted); margin: 0; font-size: .98rem; max-width: 58ch; }
.origin-close { margin-top: 54px; padding-top: 32px; border-top: 1px solid var(--border); text-align: center; }
.origin-close b { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; display: block; }
.origin-close b span { color: var(--accent-2); }
.origin-close .tl { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
@media (max-width: 560px) { .beats { padding-left: 44px; } .beat .n { left: -44px; width: 28px; height: 28px; } .beats::before, .beats::after { left: 13px; } }

/* Origin timeline turns horizontal on wide screens — streams left→right */
@media (min-width: 920px) {
  .beats { flex-direction: row; padding-left: 0; padding-top: 48px; gap: 26px; align-items: start; }
  /* line runs from the first node's centre to the last node's centre
     (nodes sit at each column's left edge, offset ~16px; gap = 26px × 3) */
  .beats::before, .beats::after { left: 16px; right: calc((100% - 78px) / 4 - 16px); top: 15px; bottom: auto; width: auto; height: 2px; }
  .beats::before { background: var(--border-2); }
  .beats::after { transform: scaleX(var(--p)); transform-origin: left center; }
  .beat { flex: 1 1 0; min-width: 0; }
  .beat .n { top: -48px; left: 0; }
  .beat p { max-width: none; font-size: .94rem; }
  .beat h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
}

/* ---------- The shift (Internet → AI thesis) ---------- */
.shift-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; margin-top: 44px; }
.shift-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; background: rgba(255,255,255,.02); }
.shift-card .era { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.shift-card h3 { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 700; letter-spacing: -.01em; margin: 10px 0; line-height: 1.2; }
.shift-card h3 span { color: var(--accent-2); }
.shift-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.shift-card.now { border-color: var(--border-2); background: radial-gradient(420px 240px at 50% 0%, rgba(79,182,230,.12), transparent 70%), var(--surface); box-shadow: 0 0 0 1px rgba(79,182,230,.22), 0 24px 60px -30px rgba(79,182,230,.5); }
.shift-card.now .era { color: var(--accent); }
.shift-arrow { align-self: center; color: var(--accent); font-size: 1.7rem; font-family: var(--mono); }
.shift-close { text-align: center; margin-top: 36px; font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin-left: auto; margin-right: auto; }
.shift-close b { color: var(--text); font-weight: 600; }
@media (max-width: 820px) { .shift-grid { grid-template-columns: 1fr; } .shift-arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------- Before / after wipe (homepage transformation) ---------- */
.ba {
  position: relative; max-width: 940px; margin: 46px auto 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; min-height: 320px; isolation: isolate;
  box-shadow: var(--shadow);
}
.ba-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 52px 40px; }
.ba-inner { max-width: 560px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.ba-before { background: linear-gradient(140deg, #14243697, #0c1a29), var(--bg-2); }
.ba-after {
  background:
    radial-gradient(560px 300px at 68% 26%, rgba(79,182,230,.20), transparent 70%),
    linear-gradient(140deg, #16324B, #0E2740);
  clip-path: inset(0 0 0 100%);
  animation: ba-wipe 8.5s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes ba-wipe {
  0%, 12% { clip-path: inset(0 0 0 100%); }
  44%, 60% { clip-path: inset(0 0 0 0%); }
  92%, 100% { clip-path: inset(0 0 0 100%); }
}
.ba-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.ba-before .ba-tag { color: var(--muted-2); }
.ba-after .ba-tag { color: var(--accent); }
.ba-h { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; line-height: 1.14;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem); margin: 0; }
.ba-before .ba-h span { color: #8FA6BB; }
.ba-after .ba-h span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ba-p { color: var(--muted); margin: 0; font-size: 1.02rem; line-height: 1.55; }
.ba-after .ba-p { color: #CFE6F4; }
.ba-div {
  position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; z-index: 3;
  background: var(--accent-2); box-shadow: 0 0 18px 2px rgba(124,214,240,.7);
  animation: ba-divmove 8.5s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes ba-divmove {
  0%, 12% { left: 100%; }
  44%, 60% { left: 0%; }
  92%, 100% { left: 100%; }
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-2);
  display: grid; place-items: center; color: var(--accent-2);
  box-shadow: 0 0 20px -4px rgba(124,214,240,.7);
}
.ba-knob svg { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .ba { min-height: 300px; }
  .ba-layer { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-after { animation: none; clip-path: inset(0 0 0 0%); }
  .ba-div { display: none; }
}

/* ---------- Product story: academic-year timeline (CampusIQ) ---------- */
.term-line { position: relative; max-width: 820px; margin: 46px auto 0; display: flex; flex-direction: column; gap: 34px; padding-left: 66px; }
.term-line::before { content: ""; position: absolute; left: 22px; top: 12px; bottom: 16px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(124, 214, 240, .12)); opacity: .55; }
.term { position: relative; }
.term .marker { position: absolute; left: -66px; top: -2px; width: 46px; height: 46px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border-2); display: grid; place-items: center; }
.term .marker svg { width: 22px; height: 22px; color: var(--accent-2); }
.term .season { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.term h3 { font-family: var(--font-head); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 6px 0 8px; }
.term p { color: var(--muted); margin: 0; font-size: .97rem; max-width: 60ch; }
.term .who { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: .74rem; color: var(--muted-2); }
.term .who b { color: var(--accent-2); font-weight: 500; }
@media (max-width: 560px) { .term-line { padding-left: 52px; } .term .marker { left: -52px; width: 38px; height: 38px; } .term-line::before { left: 18px; } }

/* two notes (one story, two notes) */
.notes-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 44px auto 0; }
.note-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: rgba(124, 214, 240, .04); }
.note-card .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.note-card h4 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; margin: 9px 0 7px; letter-spacing: -.01em; }
.note-card p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 560px) { .notes-two { grid-template-columns: 1fr; } }

/* module grid (the full platform) */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mod { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: rgba(255, 255, 255, .02); transition: border-color .3s, background .3s, transform .3s; }
.mod:hover { border-color: var(--border-2); background: rgba(124, 214, 240, .04); transform: translateY(-3px); }
.mod b { font-family: var(--font-head); font-size: .98rem; font-weight: 600; display: block; }
.mod span { color: var(--muted); font-size: .82rem; }

/* ---------- Story reel (auto-playing animated timeline) ---------- */
.reel { max-width: 660px; margin: 42px auto 0; text-align: center; }
.reel-stage { position: relative; min-height: 250px; }
.reel-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.reel-slide.active { opacity: 1; transform: none; }
.reel-ico { width: 94px; height: 94px; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(130px 90px at 50% 0%, rgba(79,182,230,.2), transparent 70%), var(--surface); border: 1px solid var(--border-2); box-shadow: 0 0 0 1px rgba(79,182,230,.2), 0 26px 60px -28px rgba(79,182,230,.6); }
.reel-ico svg { width: 44px; height: 44px; color: var(--accent-2); }
.reel-slide.active .reel-ico { animation: reel-pop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes reel-pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
.reel-head { font-family: var(--font-head); font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; max-width: 16ch; }
.reel-sub { font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.reel-track { display: flex; gap: 9px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.reel-dot { width: 36px; height: 5px; border-radius: 3px; border: 0; background: rgba(255,255,255,.12); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.reel-dot.active { background: rgba(124,214,240,.22); }
.reel-dot .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
.reel.playing .reel-dot.active .bar { animation: reel-bar 2600ms linear forwards; }
@keyframes reel-bar { from { width: 0; } to { width: 100%; } }

/* reduced-motion / no-JS: show the whole year as a static infographic */
.reel.static .reel-stage { position: static; min-height: 0; display: flex; flex-direction: column; gap: 30px; }
.reel.static .reel-slide { position: static; opacity: 1; transform: none; flex-direction: row; text-align: left; gap: 18px; }
.reel.static .reel-slide .reel-ico { width: 60px; height: 60px; flex: 0 0 auto; box-shadow: none; }
.reel.static .reel-slide .reel-ico svg { width: 28px; height: 28px; }
.reel.static .reel-track { display: none; }

/* ---------- Academic-year radar ring (CampusIQ story) ---------- */
.year-ring { position: relative; width: min(460px, 86vw); aspect-ratio: 1 / 1; margin: 50px auto 6px; }
.year-ring .yr-track,
.year-ring .yr-track2 { position: absolute; border-radius: 50%; pointer-events: none; }
.year-ring .yr-track { inset: 8%; border: 1px solid var(--border); }
.year-ring .yr-track2 { inset: 26%; border: 1px dashed rgba(130,190,230,.10); }
.year-ring .yr-sweep {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg,
    rgba(79,182,230,.34), rgba(79,182,230,.10) 34deg, rgba(79,182,230,0) 82deg, rgba(79,182,230,0));
  -webkit-mask: radial-gradient(circle, transparent 26%, #000 27%);
          mask: radial-gradient(circle, transparent 26%, #000 27%);
  animation: yr-sweep 11s linear infinite;
}
@keyframes yr-sweep { to { transform: rotate(360deg); } }

.year-ring .yr-core {
  position: absolute; inset: 34%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center;
  background: radial-gradient(circle at 50% 38%, rgba(79,182,230,.16), transparent 72%), var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: 0 0 44px -14px rgba(79,182,230,.55), inset 0 0 0 1px rgba(255,255,255,.02);
}
.year-ring .yr-core .nm { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; font-size: clamp(.95rem, 2.3vw, 1.25rem); }
.year-ring .yr-core .yr-mono { font-family: var(--mono); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

.year-ring .yr-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; width: 92px; text-align: center; }
.year-ring .yr-dot {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-2);
  animation: yr-pulse 11s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.571s - 5.5s);
}
.year-ring .yr-dot svg { width: 23px; height: 23px; color: var(--accent-2); }
.year-ring .yr-lbl { font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@keyframes yr-pulse {
  0%, 100% { border-color: var(--border-2); box-shadow: none; }
  46% { border-color: var(--border-2); box-shadow: none; }
  50% { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(79,182,230,.5), 0 0 26px -6px rgba(79,182,230,.95); }
  58% { border-color: var(--border-2); box-shadow: none; }
}
.yr-cap { text-align: center; color: var(--muted); font-size: .95rem; max-width: 38ch; margin: 4px auto 0; }

@media (max-width: 520px) {
  .year-ring .yr-node { width: 66px; gap: 5px; }
  .year-ring .yr-dot { width: 42px; height: 42px; border-radius: 13px; }
  .year-ring .yr-dot svg { width: 20px; height: 20px; }
  .year-ring .yr-lbl { font-size: .56rem; }
}
@media (prefers-reduced-motion: reduce) {
  .year-ring .yr-sweep { animation: none; background: conic-gradient(from -40deg, rgba(79,182,230,.16), rgba(79,182,230,0) 120deg); }
  .year-ring .yr-dot { animation: none; border-color: var(--accent); box-shadow: 0 0 0 1px rgba(79,182,230,.28); }
}

/* ---------- Orbit (platform of modules — CA Pranali, VyaparCloud) ---------- */
.orbit { position: relative; width: min(400px, 86vw); aspect-ratio: 1 / 1; margin: 46px auto 0; }
.orbit-ring { position: absolute; inset: 12%; border: 1px dashed rgba(130,190,230,.14); border-radius: 50%; }
.orbit-spin { position: absolute; inset: 0; animation: orbit-spin 30s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit-chip {
  position: absolute; transform: translate(-50%, -50%); animation: orbit-rev 30s linear infinite;
  display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 7px 13px 7px 9px; white-space: nowrap; box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
}
@keyframes orbit-rev { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.orbit-chip .d { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(79,182,230,.14); flex: 0 0 auto; }
.orbit-chip .d svg { width: 13px; height: 13px; color: var(--accent-2); }
.orbit-chip span { font-family: var(--mono); font-size: .66rem; letter-spacing: .03em; color: var(--muted); }
.orbit-core {
  position: absolute; inset: 34%; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(79,182,230,.22), transparent 72%), var(--surface-2);
  border: 1px solid var(--border-2); box-shadow: 0 0 44px -12px rgba(79,182,230,.6);
}
.orbit-core .nm { font-family: var(--font-head); font-weight: 700; font-size: clamp(.9rem, 2.2vw, 1.1rem); }
.orbit-core .mono { font-family: var(--mono); font-size: .52rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 460px) { .orbit-chip span { font-size: .58rem; } .orbit-chip { padding: 6px 10px 6px 7px; } }
@media (prefers-reduced-motion: reduce) { .orbit-spin, .orbit-chip { animation: none; } }

/* ---------- Flow pipeline (input → AI → output — Nirmithvani) ---------- */
.flow { position: relative; width: min(660px, 94vw); margin: 46px auto 0; display: flex; align-items: flex-start; justify-content: space-between; }
.fl-node { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 32%; max-width: 160px; text-align: center; z-index: 2; }
.fl-box { width: 66px; height: 66px; border-radius: 17px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2); box-shadow: 0 0 30px -14px rgba(79,182,230,.6); }
.fl-box svg { width: 27px; height: 27px; color: var(--accent-2); }
.fl-lbl { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.fl-lbl b { display: block; color: var(--text); font-family: var(--font-head); font-size: .95rem; letter-spacing: -.01em; text-transform: none; margin-top: 4px; }
.fl-lbl em { display: block; color: var(--muted); font-style: normal; font-family: var(--font-body); font-size: .82rem; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.fl-pipe { position: absolute; left: 12%; right: 12%; top: 33px; height: 2px; background: var(--border); z-index: 1; }
.fl-pipe .p { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); transform: translate(-50%, -50%); box-shadow: 0 0 10px 2px rgba(124,214,240,.7); animation: fl-flow 3.2s linear infinite; }
@keyframes fl-flow { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fl-pipe .p { animation: none; left: 50%; } }

/* ---------- Journey track (follow one thing — HRMS, VyaparCloud) ---------- */
.track { position: relative; width: min(700px, 94vw); margin: 46px auto 0; padding: 34px 0 8px; }
.track-line { position: absolute; left: 6%; right: 6%; top: 52px; height: 2px; background: var(--border); border-radius: 2px; }
.track-fill { position: absolute; left: 6%; top: 52px; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; box-shadow: 0 0 12px rgba(79,182,230,.7); animation: tk-fill 9s linear infinite; }
@keyframes tk-fill { 0% { width: 0; } 92%, 100% { width: 88%; } }
.track-head { position: absolute; top: 47px; left: 6%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(79,182,230,.25), 0 0 18px 3px rgba(124,214,240,.8); transform: translate(-50%, 0); animation: tk-head 9s linear infinite; }
@keyframes tk-head { 0% { left: 6%; } 92%, 100% { left: 94%; } }
.track-row { display: flex; justify-content: space-between; position: relative; }
.tk-stop { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 19%; text-align: center; }
.tk-dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); animation: tk-pulse 9s ease-in-out infinite; }
.tk-dot svg { width: 20px; height: 20px; color: var(--accent-2); }
.tk-stop:nth-child(1) .tk-dot { animation-delay: 0s; }
.tk-stop:nth-child(2) .tk-dot { animation-delay: 1.8s; }
.tk-stop:nth-child(3) .tk-dot { animation-delay: 3.6s; }
.tk-stop:nth-child(4) .tk-dot { animation-delay: 5.4s; }
.tk-stop:nth-child(5) .tk-dot { animation-delay: 7.2s; }
@keyframes tk-pulse { 0%, 100%, 12% { border-color: var(--border); box-shadow: none; } 3% { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(79,182,230,.5), 0 0 22px -6px rgba(79,182,230,.9); } }
.tk-lbl { font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) { .tk-lbl { font-size: .54rem; } .tk-dot { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .track-fill, .track-head, .tk-dot { animation: none; } .track-fill { width: 88%; } }

/* ---------- Proof counters (CampusIQ etc.) ---------- */
.statband { width: min(760px, 96vw); margin: 44px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.statband .sb { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 28px 20px; text-align: center; }
.statband .sb .v { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.03em; color: var(--accent-2); font-variant-numeric: tabular-nums; line-height: 1; }
.statband .sb .v .suf { color: var(--text); font-size: .6em; }
.statband .sb .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) { .statband { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  #hero-canvas { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-layout, .contact-layout, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 30, 51, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform .34s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.link { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding-top: 132px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .brand .brand-name b { font-size: 1rem; }
  .btn { padding: 12px 20px; }
}
