/* ============================================================
   UTOPIAN DIGITAL — main stylesheet
   ============================================================ */

:root {
  --bg: #06070d;
  --bg-alt: #0a0c16;
  --surface: #10131f;
  --surface-2: #161a2b;
  --line: rgba(140, 160, 255, 0.12);
  --text: #eef1ff;
  --text-dim: #9aa3c0;
  --accent: #6c5cff;      /* violet */
  --accent-2: #00e5c3;    /* teal */
  --accent-3: #ff5ca8;    /* pink */
  --grad: linear-gradient(100deg, #6c5cff 0%, #00e5c3 100%);
  --grad-alt: linear-gradient(100deg, #00e5c3 0%, #6c5cff 55%, #ff5ca8 110%);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1180px, 92%); margin: 0 auto; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(108, 92, 255, 0.5); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-alt {
  background: var(--grad-alt);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.9rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--primary {
  background: var(--grad);
  color: #05060b;
  box-shadow: 0 8px 30px rgba(108, 92, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 229, 195, 0.35); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.btn--light { background: #fff; color: #0b0d18; }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,255,255,0.25); }
.btn--small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(6, 7, 13, 0.82);
  backdrop-filter: blur(16px);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo-mark {
  font-size: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: spinPulse 8s linear infinite;
  display: inline-block;
}
@keyframes spinPulse { 50% { filter: hue-rotate(40deg); } }
.nav__logo-text { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: 1.05rem; }
.nav__logo-text .thin { font-weight: 300; color: var(--text-dim); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  font-size: 0.92rem; color: var(--text-dim); font-weight: 400;
  position: relative; transition: color 0.25s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.3s ease;
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__burger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; pointer-events: none;
  width: 60vw; height: 60vw; right: -15vw; top: -10vw;
  background: radial-gradient(circle, rgba(108,92,255,0.18) 0%, rgba(0,229,195,0.06) 40%, transparent 70%);
  filter: blur(40px);
  animation: glowFloat 12s ease-in-out infinite alternate;
}
@keyframes glowFloat { to { transform: translate(-6%, 8%) scale(1.1); } }
.hero__content { position: relative; z-index: 2; width: min(1180px, 92%); }
.hero__text { max-width: 640px; padding: 7rem 0 4rem; }
.hero__kicker {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.28em;
  color: var(--accent-2); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(0,229,195,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(0,229,195,0); } 100% { box-shadow: 0 0 0 0 rgba(0,229,195,0); } }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 1.4rem; }
.hero__sub { color: var(--text-dim); font-size: 1.12rem; max-width: 540px; margin-bottom: 2.2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__stats { display: flex; gap: 2.8rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__plus { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; display: inline; }
.stat__num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat > .stat__num { display: inline-block; }
.stat__plus { color: var(--accent-2); margin-left: 1px; }
.stat { flex-direction: row; align-items: baseline; gap: 0; flex-wrap: wrap; }
.stat__label { display: block; width: 100%; font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.06em; margin-top: 0.2rem; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid var(--line); border-radius: 14px; z-index: 2;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent-2);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 50% { transform: translateY(12px); opacity: 0.2; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.1rem 0; overflow: hidden; background: var(--bg-alt); }
.marquee__track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.12em;
  color: var(--text-dim); text-transform: uppercase; align-items: center;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 7rem 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__kicker { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--accent-2); margin-bottom: 1rem; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.section__sub { color: var(--text-dim); max-width: 560px; margin-bottom: 3.2rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(108,92,255,0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-8px); border-color: rgba(108,92,255,0.45); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.card--featured { border-color: rgba(0,229,195,0.35); background: linear-gradient(180deg, rgba(0,229,195,0.06), var(--surface) 40%); }
.card__badge {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  color: var(--accent-2); border: 1px solid rgba(0,229,195,0.4);
  padding: 0.3rem 0.6rem; border-radius: 100px;
}
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(108,92,255,0.25), rgba(0,229,195,0.15));
  border: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card > p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.2rem; }
.card ul { list-style: none; margin-bottom: 1.6rem; }
.card ul li {
  font-size: 0.9rem; color: var(--text-dim);
  padding: 0.42rem 0 0.42rem 1.4rem; position: relative;
  border-bottom: 1px dashed rgba(140,160,255,0.08);
}
.card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.card__link { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--accent-2); transition: letter-spacing 0.25s; }
.card__link:hover { letter-spacing: 0.03em; }

/* ---------- Split / AI section ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.split__text > p { color: var(--text-dim); max-width: 520px; margin-bottom: 2.4rem; }
.feature-list { display: flex; flex-direction: column; gap: 1.6rem; }
.feature { display: flex; gap: 1.2rem; align-items: flex-start; }
.feature__num {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem 0.6rem; font-size: 0.85rem;
}
.feature h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.feature p { color: var(--text-dim); font-size: 0.92rem; }

.terminal {
  background: #0b0e1a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 50% { transform: translateY(-12px); } }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3150; }
.terminal__bar i:nth-child(1) { background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }
.terminal__body { padding: 1.4rem; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.8; overflow-x: auto; }
.c-key { color: #ff5ca8; } .c-var { color: #eef1ff; } .c-fn { color: #6c9fff; }
.c-prop { color: #00e5c3; } .c-str { color: #ffd479; } .c-cm { color: #5b648a; }
.cursor { animation: blink 1s steps(1) infinite; color: var(--accent-2); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Who We Are ---------- */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; margin-bottom: 2.6rem; align-items: start; }
.about__text p { color: var(--text-dim); margin-bottom: 1.2rem; max-width: 540px; }
.about__badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--accent-2);
  border: 1px solid rgba(0,229,195,0.35);
  background: rgba(0,229,195,0.06);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  margin-top: 0.6rem;
}
.about__cards { display: flex; flex-direction: column; gap: 1rem; }
.about-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.about-card:hover { transform: translateX(8px); border-color: rgba(108,92,255,0.45); }
.about-card__icon {
  font-size: 1.5rem; line-height: 1;
  width: 48px; height: 48px; flex: 0 0 48px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(108,92,255,0.22), rgba(0,229,195,0.12));
  border: 1px solid var(--line);
  border-radius: 12px;
}
.about-card h4 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.about-card p { color: var(--text-dim); font-size: 0.88rem; }
.about__skills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.about__skills span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.about__skills span:hover { color: var(--accent-2); border-color: rgba(0,229,195,0.5); transform: translateY(-2px); }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Circuit → City ---------- */
.future {
  position: relative;
  height: 380vh;               /* scroll runway that drives the animation */
  background: #05060c;
}
.future__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.future__sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.future__cap {
  position: absolute;
  z-index: 3;
  max-width: 460px;
  opacity: 0;
  pointer-events: none;
}
.future__cap--1 { left: 6%; top: 16%; }
.future__cap--2 { right: 6%; top: 18%; text-align: right; }
.future__cap--3 { left: 6%; bottom: 12%; }
.future__cap--3 .btn { pointer-events: auto; margin-top: 1.2rem; }
.future__cap h3 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin-bottom: 0.8rem; text-shadow: 0 4px 30px rgba(0,0,0,0.8); }
.future__kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.3em; color: var(--accent-2); margin-bottom: 0.9rem; }
.future__sub { color: var(--text-dim); font-size: 1rem; text-shadow: 0 2px 16px rgba(0,0,0,0.8); }
.future__hint {
  position: absolute; z-index: 3; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em;
  color: var(--text-dim); transition: opacity 0.5s;
}
.future__hint i { font-style: normal; color: var(--accent-2); animation: scrollHint 1.6s ease-in-out infinite; }
@media (max-width: 720px) {
  .future { height: 300vh; }
  .future__cap--1, .future__cap--2, .future__cap--3 { left: 6%; right: 6%; text-align: left; max-width: none; }
  .future__cap--1, .future__cap--2 { top: 12%; }
}

/* ---------- Offer ---------- */
.offer { padding: 5rem 0; }
.offer__box {
  position: relative;
  text-align: center;
  border-radius: 28px;
  padding: 4.5rem 2rem;
  background:
    radial-gradient(900px circle at 20% -10%, rgba(108,92,255,0.35), transparent 55%),
    radial-gradient(700px circle at 85% 110%, rgba(0,229,195,0.25), transparent 55%),
    var(--surface-2);
  border: 1px solid rgba(108,92,255,0.35);
  overflow: hidden;
}
.offer__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.07) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -60% 0; } }
.offer__kicker { font-family: var(--font-mono); letter-spacing: 0.3em; font-size: 0.75rem; color: var(--accent-2); margin-bottom: 1rem; }
.offer__title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.offer__price {
  background: var(--grad-alt);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradShift 4s ease-in-out infinite alternate;
}
.offer__sub { color: var(--text-dim); max-width: 520px; margin: 0 auto 1.8rem; }
.offer__points {
  list-style: none; display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap;
  font-size: 0.92rem; margin-bottom: 2.2rem; color: var(--text);
}
.offer__cta { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.offer__terms { font-size: 0.82rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.offer__terms:hover { color: var(--accent-2); }
.offer__fine { font-size: 0.75rem; color: var(--text-dim); max-width: 620px; margin: 0 auto; opacity: 0.8; }

/* ---------- Articles ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.article:hover { transform: translateY(-8px); border-color: rgba(0,229,195,0.4); }
.article__img {
  height: 170px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: rgba(255,255,255,0.85);
  position: relative; overflow: hidden;
}
.article__img::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.12) 3px 4px);
}
.article__img--1 { background: linear-gradient(135deg, #3b2f9e, #00b39b); }
.article__img--2 { background: linear-gradient(135deg, #8e2f9e, #ff5ca8); }
.article__img--3 { background: linear-gradient(135deg, #14406b, #6c5cff); }
.article:hover .article__img span { animation: wobble 0.6s ease; display: inline-block; }
@keyframes wobble { 30% { transform: scale(1.15) rotate(-4deg); } 60% { transform: scale(1.05) rotate(3deg); } }
.article__body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.article__tag { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.22em; color: var(--accent-2); }
.article__body h3 { font-size: 1.08rem; line-height: 1.4; }
.article__body p { color: var(--text-dim); font-size: 0.88rem; flex: 1; }
.article__meta { font-size: 0.75rem; color: var(--text-dim); opacity: 0.7; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__text p { color: var(--text-dim); max-width: 440px; }
.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.05em; }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,255,0.18);
}
.contact__note { font-size: 0.85rem; color: var(--accent-2); min-height: 1.2em; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 4rem; background: var(--bg); }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 3rem;
}
.footer__brand p { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.8rem; max-width: 260px; }
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col h5 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
.footer__col a { color: var(--text-dim); font-size: 0.88rem; transition: color 0.25s; }
.footer__col a:hover { color: var(--accent-2); }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0; font-size: 0.78rem; color: var(--text-dim);
}
.footer__built { opacity: 0.7; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- AI Automation page ---------- */
.ai-hero { padding: 9.5rem 0 5rem; position: relative; overflow: hidden; }
.ai-hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 55vw; height: 55vw; right: -18vw; top: -12vw;
  background: radial-gradient(circle, rgba(0,229,195,0.12) 0%, rgba(108,92,255,0.08) 40%, transparent 70%);
  filter: blur(40px);
}
.ai-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.ai-hero__title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1.3rem; }
.ai-hero__vis { position: relative; min-height: 520px; }
.ai-hero__vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-feed {
  position: absolute; left: 0; bottom: -0.5rem;
  width: min(320px, 90%);
  background: rgba(10, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  z-index: 2;
}
.ai-feed__title {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em;
  color: var(--accent-2); margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.ai-feed__title::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s infinite;
}
.ai-feed ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.ai-feed li {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim);
  padding: 0.3rem 0.5rem; border-radius: 8px;
  background: rgba(255,255,255,0.03);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ai-feed li.in { opacity: 1; transform: none; }
.ai-feed li:first-child { color: var(--text); border-left: 2px solid var(--accent-2); }

.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.usecase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.usecase:hover { transform: translateY(-6px); border-color: rgba(0,229,195,0.4); }
.usecase span { font-size: 1.6rem; display: block; margin-bottom: 0.8rem; }
.usecase h4 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.usecase p { color: var(--text-dim); font-size: 0.82rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
  overflow: hidden;
}
.step::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad); opacity: 0.5;
}
.step__num {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem;
  color: var(--accent);
  display: inline-block; margin-bottom: 0.8rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem 0.55rem;
}
.step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.88rem; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.trust__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
}
.trust__item span { font-size: 1.8rem; display: block; margin-bottom: 0.9rem; }
.trust__item h4 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.trust__item p { color: var(--text-dim); font-size: 0.9rem; }

@media (max-width: 960px) {
  .ai-hero__grid { grid-template-columns: 1fr; }
  .ai-hero__vis { min-height: 420px; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .usecases, .steps { grid-template-columns: 1fr; }
}

/* ---------- Terms page ---------- */
.terms-page { padding: 9rem 0 5rem; max-width: 780px; }
.terms-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6rem; }
.terms-page .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 2.5rem; }
.terms-page h2 { font-size: 1.25rem; margin: 2.4rem 0 0.8rem; color: var(--accent-2); }
.terms-page p, .terms-page li { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 0.8rem; }
.terms-page ul { padding-left: 1.4rem; }
.terms-page strong { color: var(--text); font-weight: 600; }
.terms-page .back { display: inline-block; margin-top: 3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .articles { grid-template-columns: 1fr; }
  .split, .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 60px;
    background: rgba(6,7,13,0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 2rem; gap: 1.4rem;
    transform: translateY(-130%); transition: transform 0.4s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav__links.open { transform: none; }
  .nav__burger { display: flex; }
  .hero__text { padding-top: 8rem; }
  .hero__stats { gap: 1.6rem; }
  .section { padding: 4.5rem 0; }
}
