/* ============================================================
   TensorStride — Premium one-page site
   Design system: light + dark, gradient-forward
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* ---- ONE accent, used sparingly ---- */
  --accent: #5B57E8;
  --accent-2: #7C78F0;
  --accent-ink: #4B47D6;

  /* Legacy brand slots all resolve to the single accent (keeps the page unified) */
  --brand-1: var(--accent);
  --brand-2: var(--accent);
  --brand-3: var(--accent);
  --brand-4: var(--accent);
  --brand-5: var(--accent);

  /* Gradients are now a whisper of one hue, not a rainbow */
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-alt: var(--grad);
  --grad-warm: var(--grad);
  --grad-cool: var(--grad);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Dark (default) */
:root, [data-theme="dark"] {
  --bg: #09090B;
  --bg-2: #0D0D10;
  --surface: #121216;
  --surface-2: #17171C;
  --surface-solid: #121216;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text: #E4E4E7;
  --text-strong: #FAFAFA;
  --muted: #8E8E99;
  --shadow: 0 16px 40px -16px rgba(0,0,0,.6);
  --shadow-sm: 0 4px 14px -6px rgba(0,0,0,.5);
  --glow: 0 0 0 1px rgba(91,87,232,.28);
  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F6F6F7;
  --surface-solid: #FFFFFF;
  --border: rgba(9,9,11,.09);
  --border-strong: rgba(9,9,11,.15);
  --text: #3F3F46;
  --text-strong: #18181B;
  --muted: #71717A;
  --shadow: 0 16px 40px -18px rgba(9,9,11,.14);
  --shadow-sm: 0 4px 14px -8px rgba(9,9,11,.12);
  --glow: 0 0 0 1px rgba(91,87,232,.2);
  color-scheme: light;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
::selection { background: rgba(91,87,232,.32); color: var(--text-strong); }

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

/* Accent word in a headline — solid colour, no animation */
.grad-text { color: var(--accent); }
[data-theme="dark"] .grad-text { color: var(--accent-2); }
.grad-bg { background: var(--grad); color: #fff; }

/* ---------- Ambient background ---------- */
/* Deliberately minimal: a flat canvas. One faint accent halo at the very top only. */
.bg-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg-ambient::before {
  content: ""; position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,87,232,.16), transparent 68%);
}
[data-theme="light"] .bg-ambient::before { background: radial-gradient(circle, rgba(91,87,232,.09), transparent 68%); }
.orb { display: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 45% at 50% 0%, #000 10%, transparent 70%);
  opacity: .5;
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(91,87,232,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-ink); box-shadow: 0 6px 18px -6px rgba(91,87,232,.5); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--surface); color: var(--text-strong); border: 1px solid var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-1); background: var(--surface-2); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: padding .3s var(--ease), background .3s; }
.nav.scrolled {
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: inline-flex; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.03em; color: var(--text-strong); }
/* single-colour wordmark reads cleanest */
.brand-accent { color: inherit; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s var(--ease); border-radius: 2px; }
.nav-links a:hover { color: var(--text-strong); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); display: grid; place-items: center; color: var(--text); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.06); border-color: var(--brand-1); }
.icon-sun { display: none; } .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; } [data-theme="light"] .icon-moon { display: none; }

/* Hamburger */
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 6px; padding: 12px 24px 22px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { justify-content: center; margin-top: 10px; border-bottom: none; color: #fff; }

/* ---------- Section basics ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-tag {
  display: inline-block; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2); padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); margin-bottom: 18px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding: 116px 0 44px; position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }

/* Hero background — living tensor network + light beams */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
[data-theme="light"] #netCanvas { opacity: .38; }
/* Light beams removed — the flat canvas reads cleaner */
.beam { display: none; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); padding: 7px 15px; border-radius: 999px; margin-bottom: 24px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(91,87,232,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(91,87,232,.55)} 70%{box-shadow:0 0 0 10px rgba(91,87,232,0)} 100%{box-shadow:0 0 0 0 rgba(91,87,232,0)} }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 18px; }
.hero-sub { font-size: 1.16rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; font-family: var(--font-display);
  color: #fff; margin-left: -10px; border: 2px solid var(--bg); background: var(--grad);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2){ background: var(--grad-alt);} .avatars span:nth-child(3){ background: var(--grad-warm);} .avatars span:nth-child(4){ background: linear-gradient(135deg,#22D3EE,#6D5EF6);} .avatars span:nth-child(5){ background: linear-gradient(135deg,#F59E0B,#EC4899);}
.hero-trust p { font-size: .88rem; color: var(--muted); }
.hero-trust strong { color: var(--text); font-weight: 600; }

/* Hero visual — orbital process wheel */
.hero-visual { position: relative; display: grid; place-items: center; }
.orbit { --R: 168px; position: relative; width: 470px; height: 470px; max-width: 100%; }

/* Rotating dashed track + travelling comet arc */
.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 3 8; transform-origin: center; animation: ring-spin 70s linear infinite; }
.ring-glow {
  fill: none; stroke: url(#ringGrad); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 110 946; /* offset driven by JS so it can ignite stages */
  filter: drop-shadow(0 0 7px rgba(91,87,232,.85));
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* Center hub */
.orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 218px; height: 218px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 28px;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow), var(--glow);
}
.oc-tag { font-family: var(--font-display); font-weight: 800; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oc-text { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; line-height: 1.32; letter-spacing: -.01em; color: var(--text-strong); }
.oc-text.swap { animation: punch-in .55s var(--ease); }
@keyframes punch-in { 0% { opacity: 0; transform: translateY(12px) skewY(1.5deg); } 100% { opacity: 1; transform: none; } }

/* Stage nodes on the ring */
.orbit-node {
  --angle: 0deg;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(var(--angle)) translateX(var(--R)) rotate(calc(-1 * var(--angle)));
  scale: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 15px 16px 10px; border-radius: 18px; min-width: 122px;
  background: var(--surface-solid); border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm); text-align: center;
  transition: scale .5s var(--ease), box-shadow .5s, border-color .5s, background .5s, opacity .5s;
  opacity: .72;
}
.orbit-node i {
  font-style: normal; position: absolute; top: -13px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .66rem;
  background: var(--surface-solid); border: 1.5px solid var(--border-strong); color: var(--muted);
  transition: background .4s, color .4s, border-color .4s;
}
.orbit-node b { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--text-strong); letter-spacing: -.01em; }
.orbit-node small { font-size: .68rem; color: var(--muted); line-height: 1.3; }
.orbit-node:hover { opacity: 1; scale: 1.06; }
.orbit-node.active {
  opacity: 1; scale: 1.14; z-index: 2;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box;
  border-color: transparent;
  box-shadow: var(--shadow-sm), var(--glow);
}
.orbit-node.active i { background: var(--grad); color: #fff; border-color: transparent; }

/* Ignition — fired the instant the comet sweeps over a stage */
.orbit-node::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit;
  border: 2px solid var(--brand-2); opacity: 0; pointer-events: none;
}
.orbit-node.hit { animation: node-pop .75s var(--ease); }
.orbit-node.hit::after { animation: node-ripple .85s var(--ease); }
.orbit-node.hit i { animation: badge-flip .6s var(--ease); }
@keyframes node-pop { 0% { scale: 1.14; } 32% { scale: 1.32; } 62% { scale: 1.09; } 100% { scale: 1.14; } }
@keyframes node-ripple { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes badge-flip { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }

/* Stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 64px;
  padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem,3.2vw,2.4rem); color: var(--text-strong); letter-spacing: -.03em; }
.stat-label { font-size: .88rem; color: var(--muted); }

/* ---------- Logos marquee ---------- */
.logos { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.logos-caption { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text-strong); margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scroll-x 55s linear infinite; }
.marquee-dup { display: contents; }
.logo-group {
  display: inline-flex; align-items: center; align-self: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 6px 0 30px; position: relative;
}
.logo-group::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); margin-right: 9px;
}
.logo-chip {
  display: inline-flex; align-items: center; gap: 11px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.logo-chip img { width: 22px; height: 22px; object-fit: contain; }
.logo-chip img.logo-wide { width: auto; height: 15px; max-width: 130px; }
[data-theme="light"] .logo-chip img.logo-invert-light { filter: invert(1); }
.logo-chip b { font-family: var(--font-display); font-weight: 600; font-size: .94rem; color: var(--muted); transition: color .25s; }
.logo-chip:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.logo-chip:hover b { color: var(--text-strong); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Services: two pillars, everything visible ---------- */
.service-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px 28px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.pillar::after { content: none; }
.pillar-alt::before { background: var(--grad-cool); }
.pillar-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; position: relative; }
.pillar-badge {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; background: var(--grad); box-shadow: 0 10px 24px -8px rgba(91,87,232,.55);
}
.pillar-alt .pillar-badge { background: var(--grad-cool); box-shadow: 0 10px 24px -8px rgba(91,87,232,.4); }
.pillar-head h3 { font-size: 1.34rem; margin-bottom: 3px; }
.pillar-punch { font-size: .92rem; color: var(--muted); }
.pillar-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.pillar-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.pillar-list li:hover { background: var(--surface-2); border-color: var(--border); transform: translateX(5px); }
.pl-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--brand-1);
}
.pillar-alt .pl-ico { color: var(--brand-4); }
.pl-ico img { width: 22px; height: 22px; object-fit: contain; }
/* Wide wordmark logos (e.g. Oracle NetSuite) */
.pl-ico.pl-wide { width: auto; min-width: 44px; padding: 0 12px; }
.pl-ico.pl-wide img { width: auto; height: 12px; max-width: 110px; }
[data-theme="light"] .pl-ico img.logo-invert-light { filter: invert(1); }
/* Vivid gradient icon tiles (service rows) */
.pl-ico[class*="grad-bg-"] { border: none; color: #fff; box-shadow: 0 8px 20px -6px rgba(91,87,232,.45); }
.pillar-list b { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--text-strong); letter-spacing: -.01em; }
.pillar-list small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.pillar-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: .96rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pillar-cta svg { color: var(--brand-2); transition: transform .25s var(--ease); }
.pillar-cta:hover svg { transform: translateX(4px); }
.pillar-alt .pillar-cta { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; }
.pillar-alt .pillar-cta svg { color: var(--brand-4); }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 1fr; gap: 22px; }
.why-card {
  --cg: var(--grad);
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
/* no corner wash — flat surfaces read cleaner */
.why-card::after { content: none; }
/* gradient glow border on hover (padding-box mask trick) */
.why-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 1;
  background: var(--cg);
  -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;
}
.why-card > * { position: relative; z-index: 2; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.why-card:hover::before { opacity: 0; }
/* top row: badge + big number */
.why-badge {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; margin-bottom: 20px;
  color: #fff; background: var(--cg); box-shadow: 0 12px 26px -8px rgba(91,87,232,.55);
  transition: transform .4s var(--ease);
}
.why-card:hover .why-badge { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.why-num {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1;
  color: var(--muted); opacity: .5; letter-spacing: 0;
  transition: color .3s, opacity .3s;
}
.why-card:hover .why-num { color: var(--accent); opacity: 1; }
.why-card h3 { font-size: 1.26rem; margin-bottom: 12px; }
/* gradient divider under title */
.why-card h3::after {
  content: ""; display: block; width: 42px; height: 3px; border-radius: 3px; margin-top: 12px;
  background: var(--cg); transition: width .4s var(--ease);
}
.why-card:hover h3::after { width: 66px; }
.why-card p { color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* ---------- Technologies: logo tile bento ---------- */
.tech-groups { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 1fr; gap: 22px; }
.tech-group {
  --tg: var(--grad);
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tech-group::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tg); }
.tech-group:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.tech-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.tech-badge {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; background: var(--tg); box-shadow: 0 8px 20px -6px rgba(91,87,232,.45);
}
.tech-group h4 { font-size: 1.05rem; margin-bottom: 1px; }
.tech-punch { font-size: .8rem; color: var(--muted); }
.tech-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-content: start; }
.tech-tile {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.tech-tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-sm); background: var(--surface); }
/* wide labels span the full row */
.tech-tile--wide { grid-column: 1 / -1; }
/* logo sits in its own rounded chip so every mark stays legible in both themes */
.tech-tile img, .tech-tile i { width: 28px; height: 28px; flex-shrink: 0; padding: 6px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px -2px rgba(0,0,0,.25); }
.tech-tile img { object-fit: contain; }
.tech-tile img.tile-wide { width: auto; min-width: 28px; height: 22px; max-width: 70px; padding: 5px 7px; background: #10131f; }
.tech-tile i { padding: 0; background: var(--tg); box-shadow: none; }
.tech-tile b { font-weight: 600; padding-right: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3)); opacity: .4; }
.tl-step { text-align: center; position: relative; }
.tl-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px -8px rgba(91,87,232,.6); position: relative; z-index: 1; transition: transform .3s var(--ease);
}
.tl-step:hover .tl-num { transform: scale(1.12) translateY(-4px); }
.tl-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tl-body p { font-size: .9rem; color: var(--muted); }

/* ---------- Portfolio / case studies ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 1fr; gap: 18px; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.work-media { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 14px; overflow: hidden; flex-shrink: 0; }
.work-media::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 40%); pointer-events: none; }
.work-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.work-card:hover .work-shot { transform: scale(1.07); }
.grad-bg-1 { background: linear-gradient(135deg,#5B57E8,#7C78F0); }
.grad-bg-2 { background: linear-gradient(135deg,#7C78F0,#7C78F0); }
.grad-bg-3 { background: linear-gradient(135deg,#5B57E8,#7C78F0); }
.grad-bg-4 { background: linear-gradient(135deg,#7C78F0,#7C78F0); }
.grad-bg-5 { background: linear-gradient(135deg,#5B57E8,#7C78F0); }
.grad-bg-6 { background: linear-gradient(135deg,#5B57E8,#7C78F0); }
.work-cat { position: relative; z-index: 1; font-family: var(--font-display); font-size: .72rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.35); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.work-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.08rem; margin-bottom: 7px; }
.work-body p { font-size: .86rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.work-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: .84rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work-link svg { color: var(--brand-2); transition: transform .25s var(--ease); }
.work-card:hover .work-link svg { transform: translate(3px, -3px); }
/* CTA card closing the grid — spans 2 cols so the grid stays a clean 4x2 */
.work-card--span2 { grid-column: span 2; }
.work-card--cta { background: var(--grad); border: none; }
.work-card--cta .work-cta-inner { display: flex; flex-direction: column; flex: 1; padding: 26px 22px; }
.work-card--cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.work-card--cta p { color: rgba(255,255,255,.88); font-size: .9rem; margin-bottom: 18px; }
.work-card--cta .work-link { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; }
.work-card--cta .work-link svg { color: #fff; }
.work-card--cta:hover .work-link svg { transform: translateX(4px); }

/* ---------- Testimonials ---------- */
.testi-slider { max-width: 820px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; transition: transform .5s var(--ease); }
.testi-card { min-width: 100%; padding: 12px; }
.testi-card blockquote { font-family: var(--font-display); font-size: clamp(1.2rem,2.4vw,1.7rem); font-weight: 500; line-height: 1.45; color: var(--text-strong); letter-spacing: -.01em; margin-bottom: 26px; }
.stars { color: var(--brand-4); letter-spacing: 3px; margin-bottom: 18px; font-size: 1.05rem; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad-alt); }
.testi-card figcaption strong { display: block; color: var(--text-strong); }
.testi-card figcaption small { color: var(--muted); }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.testi-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); font-size: 1.4rem; color: var(--text); display: grid; place-items: center; transition: background .25s, transform .25s, border-color .25s; }
.testi-btn:hover { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.08); }
.testi-dots { display: flex; gap: 9px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); transition: width .3s, background .3s; }
.testi-dots button.active { width: 26px; border-radius: 999px; background: var(--grad); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ind-card {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.ind-card:hover { transform: translateY(-4px); border-color: var(--brand-1); background: var(--surface-2); }
.ind-emoji { font-size: 1.7rem; }
.ind-card h3 { font-size: 1rem; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: 40px 0; }
.cta-inner {
  position: relative; text-align: center; padding: 64px 32px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, rgba(91,87,232,.16), rgba(91,87,232,.14)); border: 1px solid var(--border-strong);
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(91,87,232,.25), transparent 60%); z-index: -1; }
.cta-inner h2 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 14px; }
.cta-inner p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; font-size: 1.05rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-copy .section-tag { margin-bottom: 18px; }
.about-copy .section-title { text-align: left; }
.about-copy > p { color: var(--muted); font-size: 1.04rem; margin-bottom: 18px; }
.about-values { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.value { padding-left: 18px; border-left: 3px solid transparent; border-image: var(--grad) 1; }
.value strong { display: block; color: var(--text-strong); font-family: var(--font-display); }
.value span { color: var(--muted); font-size: .94rem; }
.about-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.about-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.about-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.about-stat span:last-child { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy .section-title { text-align: left; }
.contact-copy .section-lead { margin-bottom: 30px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s var(--ease), border-color .25s; }
a.contact-method:hover { transform: translateX(4px); border-color: var(--brand-1); }
.cm-icon { font-size: 1.4rem; }
.contact-method strong { display: block; color: var(--text-strong); font-size: .96rem; }
.contact-method small { color: var(--muted); }
.book-btn { width: 100%; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 8px; font-family: var(--font-display); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: .96rem; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(91,87,232,.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; }
.err { display: block; font-size: .78rem; color: #ef4444; margin-top: 6px; min-height: 0; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 16px; }
.form-success { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 18px; background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(34,211,238,.1)); border: 1px solid rgba(16,185,129,.4); border-radius: var(--radius); }
.fs-check { width: 38px; height: 38px; border-radius: 50%; background: #10B981; color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.form-success strong { color: var(--text-strong); }
.form-success p { font-size: .88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--muted); font-size: .93rem; margin: 16px 0 20px; max-width: 340px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--muted); transition: background .25s, color .25s, transform .25s, border-color .25s; }
.social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); border-color: transparent; }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: .9rem; padding: 5px 0; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--text-strong); padding-left: 5px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; }
.footer-bottom p { color: var(--muted); font-size: .86rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); font-size: .86rem; transition: color .2s; }
.footer-legal a:hover { color: var(--text-strong); }

/* ---------- Thank-you page ---------- */
.ty-wrap { min-height: 100vh; display: grid; place-items: center; padding: 130px 0 70px; }
.ty-inner { max-width: 640px; text-align: center; }
.ty-check {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.ty-check-ring { stroke-dasharray: 151; stroke-dashoffset: 151; animation: ty-ring .6s var(--ease) forwards; opacity: .3; }
.ty-check-mark { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ty-mark .4s var(--ease) .45s forwards; }
@keyframes ty-ring { to { stroke-dashoffset: 0; } }
@keyframes ty-mark { to { stroke-dashoffset: 0; } }
.ty-tag { margin-bottom: 18px; }
.ty-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 16px; }
.ty-lead { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0 auto 40px; }
.ty-lead strong { color: var(--text-strong); font-weight: 600; }
/* steps */
.ty-steps {
  display: flex; flex-direction: column; gap: 2px; text-align: left; margin-bottom: 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.ty-step { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; }
.ty-step + .ty-step { border-top: 1px solid var(--border); }
.ty-step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; color: #fff; background: var(--accent);
}
.ty-step b { display: block; font-family: var(--font-display); font-size: .98rem; color: var(--text-strong); letter-spacing: -.01em; }
.ty-step small { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.ty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.ty-note { font-size: .88rem; color: var(--muted); }
.ty-note a { color: var(--accent); font-weight: 500; }
.ty-note a:hover { text-decoration: underline; }
.ty-footer { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; }
.ty-footer p { color: var(--muted); font-size: .86rem; }
@media (max-width: 620px) {
  .ty-wrap { padding: 110px 0 50px; }
  .ty-cta .btn { width: 100%; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-grid, .work-grid { grid-template-columns: repeat(2,1fr); }
  .service-pillars { grid-template-columns: 1fr; }
  .tech-groups { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .timeline::before { display: none; }
  .ind-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .section { padding: 78px 0; }
  .stats-strip { grid-template-columns: repeat(2,1fr); gap: 26px 12px; }
  .why-grid, .work-grid, .ind-grid { grid-template-columns: 1fr; }
  .work-card--span2 { grid-column: auto; }
  .tech-groups { grid-template-columns: 1fr; }
  /* full-width chips on phones so labels never truncate */
  .tech-tiles { grid-template-columns: 1fr; }
  .tech-tile--wide { grid-column: auto; }
  .pillar { padding: 26px 20px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .orbit { --R: 128px; width: 336px; height: 336px; }
  .orbit-center { width: 164px; height: 164px; padding: 18px; gap: 5px; }
  .oc-text { font-size: .84rem; }
  .orbit-node { min-width: 0; padding: 12px 12px 8px; border-radius: 14px; }
  .orbit-node b { font-size: .82rem; }
  .orbit-node small { display: none; }
  .orbit-node i { width: 22px; height: 22px; top: -11px; font-size: .6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
