/* ============================================================
   357.digital — Redesign Design System
   Premium dark · cinematic · scroll-driven
   Hand-built. No frameworks.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Canvas */
  --bg: #08080b;
  --bg-2: #0c0c11;
  --surface: #101016;
  --surface-2: #15151d;
  --surface-3: #1b1b25;

  /* Text */
  --text: #f5f5f7;
  --text-soft: #c7c7d1;
  --text-muted: #8a8a99;
  --text-faint: #5a5a68;

  /* Accent */
  --a1: #4f7cff;   /* electric blue */
  --a2: #9d5cff;   /* violet       */
  --a3: #ff5c8a;   /* coral pink   */
  --accent: var(--a1);
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 55%, var(--a3));
  --grad-soft: linear-gradient(120deg, #4f7cff33, #9d5cff22 60%, #ff5c8a11);

  /* Lines & glass */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(18, 18, 26, 0.6);

  /* Shadows / glows */
  --glow: 0 0 0 1px rgba(255,255,255,.04), 0 20px 60px -20px rgba(79,124,255,.45);
  --shadow-lg: 0 40px 100px -30px rgba(0,0,0,.8);

  /* Rhythm */
  --container: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--a2) transparent;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(157, 92, 255, .35); color: #fff; }

/* Custom scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--a1), var(--a2));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.orb.o1 { width: 600px; height: 600px; background: #4f7cff; top: -180px; left: -120px; opacity: .35; }
.orb.o2 { width: 520px; height: 520px; background: #9d5cff; top: 30%;   right: -160px; opacity: .3; }
.orb.o3 { width: 460px; height: 460px; background: #ff5c8a; bottom: -160px; left: 20%; opacity: .22; }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background:
    linear-gradient(transparent 0, transparent calc(100% - 1px), var(--line) 100%),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--line) 100%);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 44px, var(--container));
  margin-inline: auto;
}
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-sm { padding: clamp(56px, 8vw, 96px) 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.display {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.h-xl { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
.h-lg { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.lead {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
}
.muted { color: var(--text-muted); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--a2);
  box-shadow: 0 0 12px 2px var(--a2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  position: relative;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 10px 40px -12px rgba(79,124,255,.7);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--a3), var(--a2) 50%, var(--a1));
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 60px -14px rgba(157,92,255,.75); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(-1px) scale(.985); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--text-soft); background: rgba(255,255,255,.06); transform: translateY(-3px); }

.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* magnetic wrapper */
.magnetic { display: inline-block; will-change: transform; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,11,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  height: 64px;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
}
.brand .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .dot-sep { color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: .96rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 100px;
  transition: color .3s var(--ease);
}
.nav-links a.nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-links a.nav-link:hover { color: var(--text); }
.nav-links a.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 11px 22px; font-size: .92rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8,8,11,.92);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  transform: translateY(30px);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s;
}
.mobile-menu a:hover { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
body.menu-open .mobile-menu a { transform: translateY(0); opacity: 1; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: .12s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .19s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .26s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .33s; }
.mobile-menu .mm-social { margin-top: 30px; display: flex; gap: 18px; }
.mobile-menu .mm-social a { font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 60px); padding-bottom: 40px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(3.4rem, 13vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: .98;
  overflow: visible;
}
.hero h1 .digital { color: var(--text); }
.hero-sub {
  margin: 28px auto 0;
  max-width: 620px;
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-visual {
  margin-top: clamp(50px, 8vw, 90px);
  position: relative;
  width: min(100%, 980px);
  perspective: 1600px;
}
.hero-visual .frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.hero-visual .frame img { width: 100%; }
.hero-visual::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 28px;
  background: var(--grad);
  filter: blur(60px);
  opacity: .35;
  z-index: -1;
}
.hero-badges {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.hero-badges .ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--grad); }
.hero-badges .ico svg { width: 16px; height: 16px; color: #fff; }
.hb-1 { top: 12%; left: -3%; }
.hb-2 { bottom: 14%; right: -3%; }

.scroll-hint {
  margin-top: 54px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-hint .mouse {
  width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px;
  position: relative;
}
.scroll-hint .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; border-radius: 3px; background: var(--text-soft);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ---------- Marquee ---------- */
.marquee-wrap {
  position: relative;
  padding: clamp(34px, 5vw, 52px) 0;
  background: radial-gradient(60% 140% at 50% 50%, rgba(79,124,255,.06), transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
/* gradient hairlines that fade toward the edges */
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent);
}
.marquee-wrap::before { top: 0; }
.marquee-wrap::after  { bottom: 0; }
.marquee { display: flex; width: max-content; animation: scroll-x 44s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
/* logos are pre-processed to pure-white transparent silhouettes */
.marquee a {
  display: flex; align-items: center; justify-content: center;
  height: 72px;
  padding: 0 clamp(28px, 4.5vw, 58px);
  opacity: .56;
  transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease);
}
.marquee a:hover {
  opacity: 1;
  transform: scale(1.16);
  filter: drop-shadow(0 8px 26px rgba(157,92,255,.6));
}
/* spotlight: when hovering the row, fade the others to focus one logo */
.marquee:hover a { opacity: .28; }
.marquee:hover a:hover { opacity: 1; }
.marquee img {
  height: clamp(38px, 5vw, 58px);
  width: auto; max-width: 210px; object-fit: contain;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.sec-head { max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin: 18px 0 0; }
.sec-head p { margin-top: 18px; }

/* ---------- Services / bento ---------- */
.bento {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  grid-column: span 6;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.card.span-4 { grid-column: span 4; }
.card::before { /* spotlight */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(157,92,255,.18), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card .card-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  margin-bottom: 22px;
  transition: transform .5s var(--ease);
}
.card:hover .card-ico { transform: translateY(-2px) scale(1.05); }
.card .card-ico svg { width: 26px; height: 26px; }
.card .card-ico svg { stroke: url(#grad-stroke); }
.card h3 { font-size: 1.4rem; letter-spacing: -0.03em; }
.card p { margin-top: 12px; color: var(--text-muted); font-size: 1rem; flex: 1; }
.card .card-num {
  position: absolute; top: 28px; right: 32px;
  font-size: .8rem; font-weight: 600; color: var(--text-faint);
  letter-spacing: .1em;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat {
  padding: 34px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), transparent);
  text-align: center;
}
.stat .num {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat .label { margin-top: 12px; color: var(--text-muted); font-size: .95rem; }

/* ---------- Process ---------- */
.steps { margin-top: clamp(40px,6vw,72px); display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), transparent);
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.step:hover { border-color: var(--line-2); background: linear-gradient(160deg, var(--surface-3), transparent); }
.step .step-n {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.45rem; letter-spacing: -0.03em; }
.step p { margin-top: 8px; color: var(--text-muted); max-width: 620px; }

/* ---------- About value list ---------- */
.values { display: grid; gap: 16px; }
.value {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.value:hover { transform: translateX(6px); border-color: var(--line-2); }
.value .v-ico {
  flex: none; width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2);
}
.value .v-ico svg { width: 24px; height: 24px; stroke: url(#grad-stroke); }
.value h4 { font-size: 1.15rem; letter-spacing: -0.02em; }
.value p { margin-top: 6px; color: var(--text-muted); font-size: .96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

/* ---------- Contact / form ---------- */
.contact-card {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(79,124,255,.18), transparent 70%);
  pointer-events: none;
}
.field { position: relative; margin-bottom: 20px; }
.field input, .field textarea {
  width: 100%;
  padding: 20px 18px 8px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  resize: vertical;
}
.field textarea { min-height: 140px; padding-top: 26px; }
.field label {
  position: absolute; left: 18px; top: 17px;
  color: var(--text-muted); font-size: 1rem;
  pointer-events: none;
  transition: transform .25s var(--ease), color .25s var(--ease), font-size .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--a2); background: rgba(157,92,255,.05); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-12px);
  font-size: .72rem;
  color: var(--a2);
  letter-spacing: .04em;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-actions { margin-top: 8px; text-align: center; }
.form-actions .btn { width: 100%; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: .95rem; }
.alert-success { background: rgba(52,199,120,.12); border: 1px solid rgba(52,199,120,.4); color: #6ee7a8; }
.alert-danger { background: rgba(255,92,138,.12); border: 1px solid rgba(255,92,138,.4); color: #ff96b3; }

/* contact methods */
.contact-methods { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 30px; }
.contact-methods a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--text-soft); font-weight: 500; font-size: .95rem;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.contact-methods a:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-2px); }
.contact-methods svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; }
.cta-band .glow-card {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 32px;
  border-radius: 36px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(157,92,255,.22), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; }
.cta-band p { margin: 20px auto 0; max-width: 520px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer .brand { font-size: 1.6rem; }
.footer .f-tag { color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h5 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-soft); padding: 6px 0; transition: color .3s var(--ease), transform .3s var(--ease); }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--text-faint); font-size: .9rem;
}
.social-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-soft);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), background .3s;
  font-size: 1.1rem;
}
.social-ico:hover { border-color: transparent; color: #fff; background: var(--grad); transform: translateY(-3px); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-scale.in { opacity: 1; transform: none; }

/* word-by-word hero */
.word { display: inline-block; opacity: 0; transform: translateY(110%); }
.word-inner { display: inline-block; }
/* padding gives descenders + gradient room so glyphs are never clipped;
   negative margin keeps layout identical. word stays hidden pre-reveal (110% > padding). */
.line-mask {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  padding: 0.1em 0.08em 0.26em;
  margin: -0.1em -0.08em -0.26em;
}
.hero h1 .gradient-text { -webkit-text-fill-color: transparent; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid #fff;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s;
}
.cursor-ring.hover { width: 60px; height: 60px; background: rgba(255,255,255,.12); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card { grid-column: span 12; min-height: 240px; }
  .card.span-4 { grid-column: span 6; }
  .why-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; gap: 18px; padding: 26px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .card.span-4 { grid-column: span 12; }
  .hb-1, .hb-2 { display: none; }
  .footer-top { flex-direction: column; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Hero animated code/build window ---------- */
.code-window {
  background: linear-gradient(160deg, #0d0d15, #09090e) !important;
  text-align: left;
}
.cw-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.cw-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cw-dot.r { background: #ff5f57; }
.cw-dot.y { background: #febc2e; }
.cw-dot.g { background: #28c840; }
.cw-url {
  margin-left: 12px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: .78rem; color: var(--text-muted);
  padding: 5px 16px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.cw-url .lock { color: #5ed3a0; }
.cw-body { display: grid; grid-template-columns: 1.12fr .88fr; min-height: clamp(260px, 32vw, 340px); }
.cw-code {
  padding: 26px clamp(20px, 3vw, 30px);
  border-right: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: clamp(.78rem, 1.25vw, .98rem);
  line-height: 2.05;
  color: var(--text-soft);
}
.cw-line { white-space: nowrap; }
.cw-line .ind { color: transparent; }
.cw-code .kw   { color: #b89bff; }
.cw-code .fn   { color: #5aa0ff; }
.cw-code .str  { color: #6ee0a8; }
.cw-code .tag  { color: #ff7aa8; }
.cw-code .num  { color: #f3a45e; }
.cw-code .com  { color: var(--text-faint); font-style: italic; }
.cw-code .punct{ color: var(--text-muted); }
.caret {
  display: inline-block; width: 8px; height: 1.05em;
  background: var(--a2); vertical-align: -3px; margin-left: 3px; border-radius: 1px;
}
.cw-preview {
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(79,124,255,.08), transparent 70%);
}
.pv-nav { display: flex; align-items: center; gap: 8px; }
.pv-nav span { height: 9px; border-radius: 5px; background: rgba(255,255,255,.14); }
.pv-nav span:nth-child(1) { width: 28px; background: var(--grad); }
.pv-nav span:nth-child(2) { width: 42px; margin-left: auto; }
.pv-nav span:nth-child(3) { width: 30px; }
.pv-hero { height: clamp(56px, 9vw, 78px); border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.pv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.10) 50%, transparent 70%); transform: translateX(-100%); }
.pv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-row span { height: clamp(40px, 7vw, 54px); border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.pv-cta { height: 32px; width: 52%; border-radius: 9px; background: var(--grad); box-shadow: 0 8px 22px -8px rgba(157,92,255,.6); }

@media (prefers-reduced-motion: no-preference) {
  .cw-line { clip-path: inset(0 100% 0 0); animation: cw-type 9s var(--ease) infinite; }
  .cw-line:nth-child(1) { animation-delay: .2s; }
  .cw-line:nth-child(2) { animation-delay: .9s; }
  .cw-line:nth-child(3) { animation-delay: 1.5s; }
  .cw-line:nth-child(4) { animation-delay: 2.1s; }
  .cw-line:nth-child(5) { animation-delay: 2.7s; }
  .cw-line:nth-child(6) { animation-delay: 3.3s; }
  .caret { animation: blink 1s steps(2) infinite; }
  .pv-nav, .pv-hero, .pv-row, .pv-cta { opacity: 0; animation: pv-in 9s var(--ease) infinite; }
  .pv-nav  { animation-delay: 3.6s; }
  .pv-hero { animation-delay: 4.0s; }
  .pv-row  { animation-delay: 4.4s; }
  .pv-cta  { animation-delay: 4.8s; }
  .pv-hero::after { animation: pv-shimmer 9s ease-in-out infinite; animation-delay: 5s; }
}
@keyframes cw-type {
  0%   { clip-path: inset(0 100% 0 0); }
  7%   { clip-path: inset(0 0 0 0); }
  90%  { clip-path: inset(0 0 0 0); }
  96%  { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 100% 0 0); opacity: 1; }
}
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
@keyframes pv-in {
  0%, 38% { opacity: 0; transform: translateY(10px) scale(.98); }
  46%     { opacity: 1; transform: none; }
  92%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(6px); }
}
@keyframes pv-shimmer {
  0%, 8% { transform: translateX(-100%); }
  22%, 100% { transform: translateX(120%); }
}
@media (max-width: 640px) {
  .cw-preview { display: none; }
  .cw-code { border-right: none; }
}

/* ---------- Why us (capabilities) ---------- */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.why-grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  position: relative;
  padding: clamp(30px, 4vw, 42px) clamp(26px, 3vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.why-card:hover { transform: translateY(-6px); }
.why-card::after { /* rotating conic border on hover */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0%, var(--a1) 8%, var(--a2) 16%, var(--a3) 24%, transparent 34%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.why-card:hover::after { opacity: 1; animation: ang-spin 4s linear infinite; }
@keyframes ang-spin { to { --ang: 360deg; } }
.why-card .wc-ico {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2);
  margin-bottom: 24px;
}
.why-card .wc-ico svg { width: 28px; height: 28px; stroke: url(#grad-stroke); }
.why-card h3 { font-size: 1.4rem; letter-spacing: -0.03em; }
.why-card p { margin-top: 12px; color: var(--text-muted); }
.why-card .wc-tag {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600;
  color: var(--text-soft);
}
.why-card .wc-tag .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 10px 1px var(--a2); }

/* ---------- Digital business card (vCard) ---------- */
.vcard {
  position: relative;
  width: min(100%, 460px);
  margin: clamp(40px, 6vw, 70px) auto 0;
  padding: clamp(34px, 5vw, 48px) clamp(28px, 4vw, 40px) 36px;
  border-radius: 30px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
}
.vcard::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 31px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5;
  pointer-events: none;
}
.vcard::after {
  content: "";
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(157,92,255,.22), transparent 70%);
  pointer-events: none;
}
.vcard-avatar {
  width: 168px; height: 168px;
  margin: 0 auto 14px;
  border-radius: 22px;
  padding: 4px;
  background: var(--grad);
  position: relative;
}
.vcard-avatar img {
  width: 100%; height: 100%;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;            /* keep QR quiet zone white & scannable */
  padding: 8px;
}
.vcard-avatar .scan-hint {
  display: block;
  margin: 0 auto 22px;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}
.vcard h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.04em; }
.vcard .role {
  margin-top: 8px;
  display: inline-block;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
.vcard .tagline { margin-top: 14px; color: var(--text-muted); }

.vcard-actions { margin-top: 28px; display: grid; gap: 12px; }
.action-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  text-align: left;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.action-row:hover { transform: translateY(-3px); border-color: var(--line-2); background: rgba(255,255,255,.05); }
.action-row .ar-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2);
}
.action-row .ar-ico svg { width: 21px; height: 21px; stroke: url(#grad-stroke); }
.action-row .ar-text { display: flex; flex-direction: column; line-height: 1.3; }
.action-row .ar-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.action-row .ar-value { font-weight: 600; color: var(--text); }
.action-row .ar-arrow { margin-left: auto; color: var(--text-faint); transition: transform .35s var(--ease), color .35s var(--ease); }
.action-row:hover .ar-arrow { transform: translateX(4px); color: var(--text); }
.action-row .ar-arrow svg { width: 18px; height: 18px; }

.vcard-download { margin-top: 18px; }
.vcard-download .btn { width: 100%; }

.vcard-social { margin-top: 22px; display: flex; gap: 12px; justify-content: center; }

/* ---------- Laboratory / holding page ---------- */
.lab { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 0 60px; }
.lab .eyebrow { margin-bottom: 28px; }
.lab h1 { font-size: clamp(3rem, 12vw, 8rem); letter-spacing: -0.06em; line-height: .95; }
.lab .lead { margin: 26px auto 0; max-width: 540px; }
.lab-orbit {
  position: relative;
  width: clamp(190px, 40vw, 260px);
  height: clamp(190px, 40vw, 260px);
  margin: clamp(30px, 6vw, 56px) auto 0;
  display: grid; place-items: center;
}
.lab-orbit .core {
  width: 30%; height: 30%; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 50px 6px rgba(157,92,255,.6);
  animation: corepulse 3s var(--ease) infinite;
}
@keyframes corepulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.12);opacity:.85} }
.lab-orbit .ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--line-2);
}
.lab-orbit .ring.r1 { inset: 0; animation: spin 14s linear infinite; }
.lab-orbit .ring.r2 { inset: 18%; border-style: dashed; animation: spin 9s linear infinite reverse; }
.lab-orbit .ring.r3 { inset: 36%; animation: spin 6s linear infinite; }
.lab-orbit .ring .sat {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--a1);
  box-shadow: 0 0 14px 2px var(--a1);
}
.lab-orbit .ring.r2 .sat { background: var(--a3); box-shadow: 0 0 14px 2px var(--a3); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lab-orbit .ring, .lab-orbit .core { animation: none !important; }
}
.lab-foot { margin-top: 50px; color: var(--text-faint); font-size: .9rem; }
.lab-foot a { color: var(--text-soft); font-weight: 600; }
.lab-foot a:hover { color: var(--text); }

/* hidden helper used by form scripts */
[hidden] { display: none !important; }
