/* ==========================================================================
   Mahinova Technologies — main stylesheet
   Brand: Indigo #0B1F6B · Amber #F6A21A · Soft Purple #8B7CF6 · Cool Gray #E7ECF8
   Gradient 135°: #0B1F6B → #5B4BD8 → #F6A21A
   Type: Poppins 600 (headings) / 400 (body), self-hosted
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --indigo: #0B1F6B;
  --indigo-deep: #07134A;
  --amber: #F6A21A;
  --amber-text: #B86E00;      /* amber shade for text on white (4.0:1, large text) */
  --purple: #8B7CF6;
  --violet: #5B4BD8;
  --gray: #E7ECF8;
  --gray-soft: #F5F7FD;
  --white: #FFFFFF;

  --ink: var(--indigo);
  --ink-muted: #48527C;       /* 7.6:1 on white */
  --line: #DCE2F3;

  --gradient: linear-gradient(135deg, #0B1F6B 0%, #5B4BD8 52%, #F6A21A 100%);
  --gradient-text: linear-gradient(100deg, #0B1F6B 0%, #5B4BD8 35%, #B86E00 65%, #5B4BD8 85%, #0B1F6B 100%);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 107, .06), 0 2px 8px rgba(11, 31, 107, .05);
  --shadow-md: 0 2px 6px rgba(11, 31, 107, .06), 0 18px 44px -14px rgba(11, 31, 107, .24);
  --shadow-lg: 0 4px 10px rgba(11, 31, 107, .06), 0 40px 80px -30px rgba(11, 31, 107, .35);

  --gutter: 16px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font); font-weight: 400; font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--violet); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo); }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(246, 162, 26, .35); color: var(--indigo); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--font); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 12px 28px -12px rgba(11, 31, 107, .7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gradient); opacity: 0; transition: opacity .45s var(--ease);
}
.btn--primary:hover { color: #fff; box-shadow: 0 18px 36px -14px rgba(91, 75, 216, .8); }
.btn--primary:hover::before { opacity: 1; }
.btn--amber { background: var(--amber); color: var(--indigo); box-shadow: 0 12px 28px -12px rgba(246, 162, 26, .8); }
.btn--amber:hover { color: var(--indigo); box-shadow: 0 18px 36px -12px rgba(246, 162, 26, .9); }
.btn--ghost { color: var(--indigo); border-color: rgba(11, 31, 107, .18); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { color: var(--indigo); border-color: var(--indigo); background: #fff; }
.btn--light-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.btn--light-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .14); }
.btn--indigo { background: var(--indigo); color: #fff; }
.btn--indigo:hover { color: #fff; background: #13298a; }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 50; top: 10px; left: 10px; right: 10px; pointer-events: none; }
.site-header__bar {
  pointer-events: auto;
  max-width: calc(var(--wrap) + 2 * var(--gutter) - 16px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 66px; padding: 0 12px 0 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(11, 31, 107, .04);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, height .35s var(--ease);
}
.site-header.is-solid .site-header__bar,
.site-header--solid .site-header__bar {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(11, 31, 107, .08);
  box-shadow: var(--shadow-md);
  height: 60px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--indigo); text-decoration: none; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.nav__link:hover { color: var(--indigo); background: rgba(11, 31, 107, .06); }
.nav__link[aria-current="page"] { font-weight: 600; }
.nav__cta { margin-left: 8px; min-height: 44px; padding: 10px 20px; font-size: .9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--gray); color: var(--indigo);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 899px) {
  .brand img { width: 144px; }
  .nav-toggle { display: inline-flex; }
  .site-header__bar { position: relative; padding-left: 16px; }
  .nav__list {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 22px;
    background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(11, 31, 107, .07);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .25s var(--ease), transform .3s var(--ease-out), visibility 0s .3s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease-out); }
  .nav__list .nav__link { padding: 0 16px; min-height: 48px; }
  .nav__cta { margin: 6px 0 0; display: flex; width: 100%; }
}
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 899px) {
  html:not(.js) .nav__list { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; box-shadow: none; border: 0; }
}

/* ---------- Ambient: aurora, grid, sparks ---------- */
.aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora__blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
}
.aurora__blob--indigo { width: 62vmax; height: 62vmax; left: -18vmax; top: -26vmax; background: radial-gradient(closest-side, rgba(91, 75, 216, .30), rgba(91, 75, 216, 0)); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora__blob--amber  { width: 48vmax; height: 48vmax; right: -14vmax; top: 2vmax;  background: radial-gradient(closest-side, rgba(246, 162, 26, .30), rgba(246, 162, 26, 0)); animation: drift-b 26s ease-in-out infinite alternate; }
.aurora__blob--purple { width: 46vmax; height: 46vmax; left: 26%; bottom: -30vmax; background: radial-gradient(closest-side, rgba(139, 124, 246, .26), rgba(139, 124, 246, 0)); animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-14vmax, 10vmax, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(10vmax, -8vmax, 0) scale(1.15); } }

.grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 31, 107, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 107, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.sparks { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #F7F8FE 0%, #FFFFFF 100%);
  min-height: min(940px, 100svh);
  display: flex; align-items: center;
  padding: 128px 0 88px;
}
.hero__inner { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.2fr .8fr; gap: 32px; } }
.hero__content { max-width: 680px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(11, 31, 107, .1);
  box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--indigo);
}
.pill__spark {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo); color: var(--amber);
}
.pill__spark svg { width: 12px; height: 12px; animation: spin-twinkle 6s ease-in-out infinite; }
@keyframes spin-twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(1.15); } }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance;
}
.hero h1 .w { display: inline-block; }
.js .hero h1 .w { animation: word-in 1s var(--ease-out) both; }
.js .hero h1 .w2 { animation-delay: .06s; } .js .hero h1 .w3 { animation-delay: .12s; } .js .hero h1 .w4 { animation-delay: .18s; }
.js .hero h1 .w5 { animation-delay: .24s; } .js .hero h1 .w6 { animation-delay: .3s; }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.js .hero h1 .w7 { animation: word-in 1s var(--ease-out) .38s both, sheen 9s ease-in-out 1.5s infinite; }
.js .hero h1 .w8 { animation: word-in 1s var(--ease-out) .46s both, sheen 9s ease-in-out 1.5s infinite; }

.text-gradient {
  position: relative;
  background: var(--gradient-text); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--violet);
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.swoosh { position: relative; display: inline-block; white-space: nowrap; }
@media (max-width: 480px) { .swoosh { white-space: normal; display: inline; } .swoosh svg { display: none; } .swoosh .w8 { text-decoration: underline 4px var(--amber); text-underline-offset: .18em; -webkit-text-decoration: underline 4px #F6A21A; } }
.swoosh svg {
  position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; pointer-events: none;
}
.swoosh path { stroke: var(--amber); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.4s var(--ease-out) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html:not(.js) .swoosh path { stroke-dashoffset: 0; }

.hero__lede {
  margin-top: 26px; max-width: 560px;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); line-height: 1.6; color: var(--ink-muted);
}
.rotator {
  display: inline-grid; vertical-align: bottom; height: 1.6em; overflow: hidden;
  color: var(--indigo); font-weight: 600;
}
.rotator > span { grid-area: 1 / 1; animation: rotate-word 12s var(--ease-out) infinite; opacity: 0; transform: translateY(100%); }
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }
.rotator > span:nth-child(4) { animation-delay: 9s; }
@keyframes rotate-word {
  0% { opacity: 0; transform: translateY(100%); }
  4%, 25% { opacity: 1; transform: none; }
  29%, 100% { opacity: 0; transform: translateY(-100%); }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px;
  font-size: .88rem; color: var(--ink-muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--violet); }

.rise { animation: rise 1.1s var(--ease-out) both; }
.rise.d1 { animation-delay: .25s; } .rise.d2 { animation-delay: .4s; } .rise.d3 { animation-delay: .55s; } .rise.d4 { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Orbit visual */
.orbit {
  position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto;
  transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease-out);
}
.orbit__glow {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 162, 26, .32) 0%, rgba(139, 124, 246, .22) 40%, rgba(255, 255, 255, 0) 70%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.orbit__ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(11, 31, 107, .12);
  animation: spin 40s linear infinite;
}
.orbit__ring--1 { inset: 22%; animation-duration: 26s; border-style: dashed; border-color: rgba(91, 75, 216, .3); }
.orbit__ring--2 { inset: 9%; animation-duration: 44s; animation-direction: reverse; }
.orbit__ring--3 { inset: 0; animation-duration: 64s; border-color: rgba(11, 31, 107, .07); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__node {
  position: absolute; left: 50%; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(11, 31, 107, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  font-size: .8rem; font-weight: 600; color: var(--indigo); white-space: nowrap;
  translate: -50% -50%;
  animation: spin 26s linear infinite reverse;
}
.orbit__ring--2 .orbit__node { animation-duration: 44s; animation-direction: normal; }
.orbit__ring--3 .orbit__node { animation-duration: 64s; }
.orbit__node--b { top: 100%; }
.orbit__node--l { left: 0; top: 50%; }
.orbit__node--r { left: 100%; top: 50%; }
.orbit__node i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  background: var(--gray); color: var(--indigo);
}
.orbit__node i.warm { background: #FEF1DA; }
.orbit__node svg { width: 15px; height: 15px; }
.orbit__dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(246, 162, 26, .18); }
.orbit__dot--a { left: 85%; top: 14%; }
.orbit__dot--c { left: 6%; top: 70%; }
.orbit__dot--v { background: var(--violet); box-shadow: 0 0 0 5px rgba(91, 75, 216, .16); }

.orbit__core {
  position: absolute; inset: 33%; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 60px -20px rgba(11, 31, 107, .35), inset 0 0 0 1px rgba(11, 31, 107, .06);
}
.orbit__core::before, .orbit__core::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid rgba(246, 162, 26, .55);
  animation: ping 3.6s var(--ease-out) infinite;
}
.orbit__core::after { animation-delay: 1.8s; border-color: rgba(91, 75, 216, .45); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
.orbit__core svg { width: 62%; height: auto; overflow: visible; }

/* Logo entrance + living spark */
.mark-arch { transform-box: fill-box; transform-origin: 50% 100%; }
.js .mark-arch { animation: arch-in 1.1s var(--ease-out) both; }
.js .mark-arch--b { animation-delay: .15s; }
.nova-spark { transform-box: fill-box; transform-origin: center; }
.js .nova-spark { animation: spark-in .9s var(--ease-out) .55s both, twinkle 4.8s ease-in-out 1.6s infinite; }
@keyframes arch-in { from { opacity: 0; transform: translateY(40%) scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes spark-in { from { opacity: 0; transform: scale(0) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.14) rotate(10deg); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line); background: #fff;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; list-style: none; }
.marquee__group li { display: inline-flex; align-items: center; gap: 40px; font-weight: 600; font-size: 1.05rem; color: var(--indigo); white-space: nowrap; opacity: .82; }
.marquee__group li::after { content: ""; width: 9px; height: 9px; background: var(--amber); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 136px) 0; }
.section--tint { background: var(--gray-soft); }
.section__head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--violet);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gradient); }
.section__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.025em; text-wrap: balance; }
.section__intro { margin-top: 16px; color: var(--ink-muted); font-size: 1.1rem; }

/* ---------- Services bento ---------- */
.bento { list-style: none; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > li { grid-column: span 2; }
  .bento > .bento__ai { grid-column: span 4; grid-row: span 2; }
}
@media (min-width: 700px) and (max-width: 1023px) { .bento > .bento__ai { grid-column: 1 / -1; } }

.tile {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s;
}
.tile::before {   /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 124, 246, .16), rgba(246, 162, 26, .08) 40%, transparent 70%);
  transition: opacity .4s;
}
.tile::after {    /* gradient border on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(91, 75, 216, .9), rgba(246, 162, 26, .7) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .tile:hover::before, .tile:hover::after { opacity: 1; }
}
.tile__icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--gray); color: var(--indigo);
  transition: transform .5s var(--ease-out);
}
.tile:hover .tile__icon { transform: rotate(-6deg) scale(1.06); }
.tile__icon--warm { background: #FEF1DA; }
.tile__icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.28rem; margin-bottom: 10px; }
.tile p { color: var(--ink-muted); font-size: .98rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--gray-soft); border: 1px solid var(--line); color: var(--indigo); line-height: 1; }

/* AI feature tile */
.tile--ai { background: var(--indigo); color: #fff; border-color: transparent; padding: clamp(28px, 3.5vw, 40px); }
.tile--ai p { color: rgba(255, 255, 255, .82); }
.tile--ai h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tile--ai .tile__icon { background: rgba(255, 255, 255, .1); color: var(--amber); }
.tile--ai .tags li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.tile--ai::before { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(246, 162, 26, .22), rgba(139, 124, 246, .18) 40%, transparent 70%); }
.tile--ai .aurora__blob--amber { width: 520px; height: 520px; right: -200px; top: -220px; left: auto; animation-duration: 18s; }
.tile--ai .aurora__blob--purple { width: 520px; height: 520px; left: -160px; bottom: -280px; animation-duration: 22s; background: radial-gradient(closest-side, rgba(139, 124, 246, .45), rgba(139, 124, 246, 0)); }
.ai-grid { display: grid; gap: 28px; height: 100%; }
@media (min-width: 700px) { .ai-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.ai-copy { display: flex; flex-direction: column; height: 100%; }

.neural { width: 100%; height: auto; max-width: 380px; margin-inline: auto; overflow: visible; }
.neural .edge { stroke: rgba(255, 255, 255, .18); stroke-width: 1.2; fill: none; }
.neural .flow { stroke: url(#flowGrad); stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 10 90; animation: flow 3.2s linear infinite; }
.neural .flow:nth-of-type(2n) { animation-delay: -1.1s; animation-duration: 3.8s; }
.neural .flow:nth-of-type(3n) { animation-delay: -2.2s; animation-duration: 2.8s; }
@keyframes flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.neural .node { fill: #13297F; stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.neural .node--hot { fill: var(--amber); stroke: none; animation: node-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.neural .node--hot:nth-of-type(2n) { animation-delay: -.8s; }
@keyframes node-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .75; } }
.neural .core { fill: #fff; }

/* ---------- Process (dark) ---------- */
.process { position: relative; isolation: isolate; overflow: hidden; background: var(--indigo-deep); color: #fff; }
.process .aurora__blob--indigo { background: radial-gradient(closest-side, rgba(91, 75, 216, .55), rgba(91, 75, 216, 0)); }
.process .aurora__blob--amber { background: radial-gradient(closest-side, rgba(246, 162, 26, .28), rgba(246, 162, 26, 0)); top: auto; bottom: -20vmax; }
.process .grid-bg { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }
.process .eyebrow { color: #FFD58A; }
.process .section__intro { color: rgba(255, 255, 255, .78); }
.process__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .process__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.steps { list-style: none; position: relative; padding-left: 0; --progress: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px;
}
.steps::before { background: rgba(255, 255, 255, .14); }
.steps::after { background: linear-gradient(180deg, var(--purple), var(--amber)); transform-origin: top; transform: scaleY(var(--progress)); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 0 0 36px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: .95rem;
  background: #142673; border: 1.5px solid rgba(255, 255, 255, .2); color: #fff;
  transition: background-color .5s, border-color .5s, color .5s, transform .5s var(--ease-out);
}
.step.is-active .step__num { background: var(--amber); border-color: var(--amber); color: var(--indigo); transform: scale(1.06); }
.step h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.step p { color: rgba(255, 255, 255, .78); }

.console {
  position: sticky; top: 110px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(6, 14, 56, .78); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.console__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: rgba(255, 255, 255, .6); }
.console__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.console__bar i:nth-child(1) { background: #F6A21A; }
.console__bar i:nth-child(2) { background: #8B7CF6; }
.console__bar span { margin-left: 10px; }
.console__body {
  margin: 0; padding: 22px 22px 26px; min-height: 330px;
  font: 400 .88rem/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, .9); white-space: pre-wrap; overflow-wrap: anywhere;
}
.console__body .c-prompt { color: #FFD58A; }
.console__body .c-ok { color: #A9E5B8; }
.console__body .c-dim { color: rgba(255, 255, 255, .55); }
.console__body .c-star { color: var(--amber); }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Principles ---------- */
.principles { list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.principle {
  position: relative; height: 100%; padding: 30px 26px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
@media (hover: hover) { .principle:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); } }
.principle__icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 22px; display: grid; place-items: center; background: var(--gray); color: var(--indigo); }
.principle:nth-child(2n) .principle__icon { background: #FEF1DA; }
.principle__icon svg { width: 24px; height: 24px; }
.principle h3 { font-size: 1.12rem; margin-bottom: 8px; }
.principle p { color: var(--ink-muted); font-size: .96rem; }
.principle__n { position: absolute; right: 22px; top: 22px; font-size: .78rem; font-weight: 600; color: #A7B0D3; letter-spacing: .08em; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1.1fr .9fr; } }
.about__text p { color: var(--ink-muted); font-size: 1.07rem; }
.about__text p + p { margin-top: 16px; }
.about__text .section__title { margin-bottom: 24px; }
.about__sign { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--indigo) !important; }
.about__sign img { width: 40px; }

.nova-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); padding: clamp(30px, 4vw, 48px);
  background: var(--indigo); color: #fff;
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}
.nova-card__orb {
  position: absolute; z-index: -1; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 162, 26, .95) 0%, rgba(246, 162, 26, .35) 26%, rgba(91, 75, 216, .3) 52%, rgba(11, 31, 107, 0) 72%);
  animation: breathe 7s ease-in-out infinite;
}
.nova-card__star { position: absolute; right: 86px; top: 86px; width: 40px; color: #fff; }
.nova-card__star svg { width: 100%; height: auto; animation: twinkle 4.8s ease-in-out infinite; }
.nova-card .eyebrow { color: #FFD58A; }
.nova-card .eyebrow::before { background: var(--amber); }
.nova-card blockquote { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.nova-card p { margin-top: 14px; color: rgba(255, 255, 255, .82); }

/* ---------- CTA / Contact ---------- */
.cta-wrap { padding: 0 10px clamp(56px, 7vw, 96px); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  border-radius: var(--radius-xl);
  background: var(--indigo); background-image: var(--gradient);
  color: #fff; text-align: center;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}
.cta .sparks { opacity: .9; }
.cta__arches { position: absolute; z-index: -2; left: 50%; bottom: -55%; width: min(1100px, 160%); aspect-ratio: 1; translate: -50% 0; pointer-events: none; }
.cta__arches svg { width: 100%; height: 100%; }
.cta__arches path { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.cta.is-visible .cta__arches path { animation: draw 3s var(--ease-out) forwards; }
.cta.is-visible .cta__arches path:nth-child(2) { animation-delay: .2s; }
.cta.is-visible .cta__arches path:nth-child(3) { animation-delay: .4s; }
.cta.is-visible .cta__arches path:nth-child(4) { animation-delay: .6s; }
html:not(.js) .cta__arches path { stroke-dashoffset: 0; }
.cta .eyebrow { color: rgba(255, 255, 255, .9); justify-content: center; }
.cta .eyebrow::before { background: #fff; }
.cta h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); letter-spacing: -0.03em; max-width: 820px; margin-inline: auto; text-wrap: balance; }
.cta p { margin: 18px auto 0; font-size: 1.12rem; color: rgba(255, 255, 255, .9); max-width: 560px; }
.cta__email {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 36px;
  min-height: 60px; padding: 10px 28px 10px 12px; border-radius: 999px;
  background: #fff; color: var(--indigo); text-decoration: none;
  font-weight: 600; font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
  box-shadow: 0 22px 44px -18px rgba(7, 19, 74, .8);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
  max-width: 100%;
}
.cta__email:hover { color: var(--indigo); box-shadow: 0 30px 56px -20px rgba(7, 19, 74, .9); }
.cta__email span:last-child { overflow-wrap: anywhere; }
.cta__email-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); flex: none; }
.cta__email-icon svg { width: 20px; height: 20px; color: var(--indigo); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(48px, 7vw, 72px) 0 40px; border-top: 1px solid var(--line); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.site-footer__brand img { width: 172px; }
.site-footer__brand p { margin-top: 14px; max-width: 320px; color: var(--ink-muted); font-size: .95rem; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.site-footer__col h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.site-footer__col ul { list-style: none; }
.site-footer__col a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--indigo); text-decoration: none; font-size: .95rem;
  background: linear-gradient(var(--amber), var(--amber)) 0 85% / 0 2px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.site-footer__col a:hover { color: var(--indigo); background-size: 100% 2px; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .88rem; color: var(--ink-muted);
}

/* ---------- Sub-pages (privacy / support) ---------- */
.page { padding: 128px 0 clamp(64px, 8vw, 104px); }
.page__head { padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.prose-wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.crumbs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-muted); margin-bottom: 22px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9AA3C6; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--indigo); }
.app-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; color: var(--violet); font-size: .95rem; }
.app-tag__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); }
.page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); letter-spacing: -0.02em; }
.page__updated { margin-top: 12px; color: var(--ink-muted); font-size: .95rem; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--indigo); text-decoration: none; font-size: .92rem;
}
.subnav a:hover { background: var(--gray-soft); color: var(--indigo); }
.subnav a[aria-current="page"] { background: var(--indigo); border-color: var(--indigo); color: #fff; font-weight: 600; }

.prose { font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; letter-spacing: -0.01em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.12rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 600; }
.prose a.btn { text-decoration: none; }
.prose a.btn--amber, .prose a.btn--amber:hover { color: var(--indigo); }

.toc { background: var(--gray-soft); border-radius: var(--radius-md); padding: 20px 24px; border: 1px solid var(--line); }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; color: var(--ink-muted); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--indigo); }

.placeholder-note { border: 1.5px dashed #F2B65A; background: #FFF8EC; color: #6B4200; border-radius: var(--radius-md); padding: 16px 20px; font-size: .95rem; }
.placeholder-note strong { color: #5A3700; }

.help-card { display: grid; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: var(--indigo); color: #fff; }
@media (min-width: 640px) { .help-card { grid-template-columns: 1fr auto; padding: 28px 32px; } }
.help-card h2 { font-size: 1.25rem; margin: 0; }
.help-card p { color: rgba(255, 255, 255, .85); margin-top: 6px; font-size: .98rem; }
.help-card .btn { justify-self: start; }

.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 4px; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); color: var(--violet); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 20px; color: var(--ink-muted); }

.parent-note { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius-lg); background: #FEF1DA; color: var(--indigo); }
.parent-note svg { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.parent-note h2 { font-size: 1.1rem; margin: 0 0 6px; }
.parent-note p { font-size: .98rem; }

/* ---------- 404 ---------- */
.notfound {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) 64px;
  background: linear-gradient(180deg, #F7F8FE 0%, #FFFFFF 100%);
}
.notfound__mark { width: 140px; margin: 0 auto 26px; }
.notfound__mark svg { width: 100%; height: auto; overflow: visible; }
.notfound__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.notfound h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-top: 8px; }
.notfound p { margin: 14px auto 0; max-width: 460px; color: var(--ink-muted); }
.notfound .hero__actions { justify-content: center; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; } .js .reveal.d5 { transition-delay: .4s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .rotator > span { animation: none !important; opacity: 0; }
  .rotator > span:first-child { opacity: 1; transform: none; }
  .marquee__track { animation: none !important; }
  .orbit { transform: none !important; }
  .swoosh path, .cta__arches path { stroke-dashoffset: 0 !important; }
  .orbit__core::before, .orbit__core::after { display: none; }
}

/* Orbit sizing on small screens */
@media (max-width: 600px) {
  .orbit { width: 64%; }
  .orbit__node { font-size: .72rem; padding: 6px 11px 6px 6px; gap: 6px; }
  .orbit__node i { width: 22px; height: 22px; }
  .orbit__node svg { width: 12px; height: 12px; }
}
