/* =========================================================
   DataLight — premium redesign · 2026-06-01
   Visual turbo pass. Same markup & copy, elevated surface.
   ========================================================= */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #05060d;
  --bg-2: #090c17;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #f5f8ff;
  --muted: #a6afc6;
  --quiet: #6c7589;

  /* accents */
  --blue: #5b8cff;
  --blue-2: #84b4ff;
  --violet: #b27cff;
  --cyan: #4ee6da;
  --warm: #ffba6e;

  /* radii */
  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  /* shadows */
  --shadow-soft: 0 12px 44px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 36px 90px rgba(0, 0, 0, 0.55);
  --glow-blue: 0 0 60px rgba(91, 140, 255, 0.35);

  /* type */
  --font-sans: "Inter Tight", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Apple Garamond", Georgia, serif;

  /* easings */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@property --grad-angle {
  syntax: "<angle>";
  initial-value: 120deg;
  inherits: false;
}

@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  font-optical-sizing: auto;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(91, 140, 255, 0.32);
  color: #fff;
}

/* slim custom scrollbar (where supported) */
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.16) transparent; }
}

/* ---------- scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 45%, var(--violet) 100%);
  box-shadow: 0 0 16px rgba(91, 140, 255, 0.6);
  pointer-events: none;
  will-change: transform;
}

/* ---------- ambient background layers ---------- */

.bg-stack {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  inset: -25% -10% auto -10%;
  height: 120vh;
  filter: blur(82px) saturate(150%);
  opacity: 0.72;
  background:
    radial-gradient(38% 58% at 16% 20%, rgba(91, 140, 255, 0.6), transparent 70%),
    radial-gradient(34% 52% at 80% 26%, rgba(178, 124, 255, 0.46), transparent 72%),
    radial-gradient(40% 52% at 52% 80%, rgba(78, 230, 218, 0.34), transparent 75%),
    radial-gradient(26% 38% at 88% 72%, rgba(255, 186, 110, 0.2), transparent 72%);
  animation: aurora-drift 26s var(--ease-spring) infinite alternate;
  transform: translate3d(0, var(--aurora-y, 0), 0);
}

@keyframes aurora-drift {
  0%   { transform: translate3d(-3%, calc(var(--aurora-y, 0px) - 2%), 0) rotate(-2deg) scale(1); }
  50%  { transform: translate3d(2%, calc(var(--aurora-y, 0px) + 3%), 0) rotate(2deg) scale(1.06); }
  100% { transform: translate3d(-1%, calc(var(--aurora-y, 0px) + 1%), 0) rotate(-1deg) scale(1.03); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 82% 62% at 50% 28%, rgba(0, 0, 0, 0.92), transparent 76%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.97 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, transparent 30%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.88)),
    radial-gradient(80% 50% at 50% 100%, rgba(91, 140, 255, 0.05), transparent 70%);
}

/* ---------- shell ---------- */

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 38px) 60px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.66);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transition: box-shadow 320ms var(--ease-out), background 320ms var(--ease-out), border-color 320ms var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(7, 10, 18, 0.82);
  border-color: var(--border);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: conic-gradient(from var(--spin, 220deg), #3774ff, #6bdfff, #b078ff, #ffc34d, #3774ff);
  box-shadow: 0 0 28px rgba(91, 140, 255, 0.35);
  clip-path: polygon(0 0, 70% 18%, 100% 50%, 70% 82%, 0 100%);
  animation: brand-spin 9s linear infinite;
}

@keyframes brand-spin {
  to { --spin: 580deg; }
}

.brand-mark span {
  width: 20px;
  height: 24px;
  border-radius: 0 18px 18px 0;
  background: #07101d;
}

.brand-word {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.desktop-nav a {
  position: relative;
  padding: 11px clamp(12px, 1.6vw, 22px);
  border-radius: 999px;
  color: var(--muted);
  font-size: clamp(0.74rem, 0.92vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 200ms var(--ease-out);
  white-space: nowrap;
}

.desktop-nav a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a:hover::before,
.desktop-nav a.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.lang-switch a {
  display: inline-flex;
  width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.lang-switch a:hover { color: var(--text); }

.lang-switch .is-active {
  color: #060810;
  background: #f7fbff;
}

/* ---------- buttons ---------- */

.header-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  isolation: isolate;
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out), filter 240ms var(--ease-out);
  will-change: transform;
}

.header-cta,
.button.primary {
  color: #06101e;
  background: linear-gradient(135deg, #ffffff 0%, #bcd8ff 36%, #5b8cff 76%, #b27cff);
  box-shadow:
    0 18px 46px rgba(91, 140, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.header-cta:hover,
.button.primary:hover {
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    0 22px 58px rgba(91, 140, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-cta::after,
.button.primary::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}

.header-cta:hover::after,
.button.primary:hover::after { transform: translateX(120%); }

.button.secondary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: var(--border);
  backdrop-filter: blur(10px);
}

.button.secondary::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 50%);
  -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 240ms var(--ease-out);
}

.button.secondary:hover::before { opacity: 1; }

.button.secondary:hover { border-color: var(--border-strong); }

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta span,
.button span.arrow {
  margin-left: 8px;
  transition: transform 280ms var(--ease-spring);
}

.header-cta:hover span,
.button:hover span.arrow {
  transform: translateX(3px);
}

/* magnetic wrapper */
.magnetic {
  display: inline-block;
  transition: transform 320ms var(--ease-spring);
  will-change: transform;
}

/* ---------- menu toggle ---------- */

.menu-toggle {
  display: none;
  position: relative;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 280ms var(--ease-spring), opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.8px) rotate(-45deg);
}

/* ---------- mobile overlay ---------- */

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 110px 22px 32px;
  background: rgba(6, 8, 16, 0.9);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.mobile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-spring);
}

.mobile-panel a::after {
  content: "→";
  color: var(--muted);
  font-weight: 400;
  transition: transform 220ms var(--ease-spring), color 220ms ease;
}

.mobile-panel a:hover::after { transform: translateX(4px); color: var(--text); }

.mobile-panel.is-open a {
  opacity: 1;
  transform: none;
}

.mobile-panel.is-open a:nth-child(1) { transition-delay: 80ms; }
.mobile-panel.is-open a:nth-child(2) { transition-delay: 130ms; }
.mobile-panel.is-open a:nth-child(3) { transition-delay: 180ms; }
.mobile-panel.is-open a:nth-child(4) { transition-delay: 230ms; }
.mobile-panel.is-open a:nth-child(5) { transition-delay: 280ms; }

.mobile-panel-cta {
  margin-top: auto;
  padding-top: 28px;
}

/* ---------- sticky mobile CTA bar ---------- */

.mobile-cta-bar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 48;
  display: none;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px);
  transform: translateY(140%);
  transition: transform 380ms var(--ease-spring);
}

.mobile-cta-bar.is-visible { transform: none; }

.mobile-cta-bar .button { width: 100%; min-height: 48px; }

/* ---------- sections ---------- */

.section {
  padding: clamp(80px, 9vw, 144px) 0 0;
}

/* ---------- typography ---------- */

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  margin: 0 0 28px;
  padding: 9px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.028);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.eyebrow .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.eyebrow .dot::after {
  position: absolute;
  inset: -4px;
  content: "";
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--blue);
  opacity: 0.45;
  animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.7; }
  80%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: clamp(2.95rem, 6.4vw, 6.7rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  max-width: 14ch;
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 4.6vw, 4.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(120deg, #c8ddff 0%, #5b8cff 28%, #b27cff 58%, #4ee6da 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: text-shift 11s linear infinite;
}

@keyframes text-shift {
  to { background-position: 220% 0; }
}

.hero-lead,
.section-heading p,
.studio-panel > p,
.contact-copy p {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.18vw, 1.22rem);
  line-height: 1.7;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 130px);
  padding-top: clamp(52px, 7vw, 100px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.proof-line span,
.studio-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 999px;
  color: #bccadd;
  background: rgba(91, 140, 255, 0.05);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  transition: border-color 240ms ease, background 240ms ease, color 240ms ease, transform 240ms var(--ease-spring);
}

.proof-line span:hover,
.studio-tags span:hover {
  border-color: rgba(91, 140, 255, 0.45);
  background: rgba(91, 140, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

/* ---------- spotlight cards (mouse-follow gradient) ---------- */

.spotlight {
  position: relative;
}

.spotlight::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(91, 140, 255, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
}

.spotlight:hover::before { opacity: 1; }

/* gradient border on hover (mask trick) */
.spotlight::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.55), rgba(178, 124, 255, 0.4) 50%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
}

.spotlight:hover::after { opacity: 1; }

/* 3D tilt (driven by JS via --rx/--ry) */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transform-style: preserve-3d;
  transition: transform 220ms var(--ease-out);
}

/* ---------- card system ---------- */

.system-card,
.solution-card,
.work-card,
.timeline article,
.studio-panel,
.contact-card,
.metrics,
.faq-list details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transition: transform 340ms var(--ease-spring), box-shadow 340ms var(--ease-out), border-color 280ms ease;
}

.solution-card:hover,
.work-card:hover,
.timeline article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border);
}

.system-card {
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: var(--r-xl);
}

.system-card::before,
.work-card::before,
.studio-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

.system-card-top,
.project-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.system-card-top strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.system-card-top strong::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.system-card h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.1vw, 3.1rem);
}

.system-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.7;
}

.flow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.flow-grid article {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease-spring);
}

.flow-grid article:hover {
  border-color: rgba(91, 140, 255, 0.34);
  background: rgba(91, 140, 255, 0.05);
  transform: translateY(-2px);
}

.flow-grid small,
.card-index,
.timeline span.step {
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.flow-grid h3 {
  margin: 8px 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flow-grid span:not(.step) {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- logo strip ---------- */

.logo-strip {
  margin-top: clamp(60px, 7vw, 88px);
  padding: 24px clamp(18px, 3vw, 36px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(14px);
}

.logo-strip-label {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.logo-strip-label::before,
.logo-strip-label::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: clamp(36px, 5vw, 64px);
  width: max-content;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  opacity: 0.78;
  transition: opacity 220ms ease, color 220ms ease;
}

.logo-item:hover { opacity: 1; color: var(--text); }

.logo-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  border-radius: var(--r-lg);
  background: var(--border-soft);
  margin-top: clamp(64px, 7vw, 100px);
}

.metrics div {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: calc(var(--r-lg) - 1px);
  background: rgba(7, 10, 18, 0.86);
  overflow: hidden;
  transition: background 280ms ease;
}

.metrics div::after {
  position: absolute;
  inset: auto auto -40% -10%;
  width: 70%;
  height: 80%;
  content: "";
  background: radial-gradient(circle, rgba(91, 140, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.metrics div:hover::after { opacity: 1; }

.metrics strong {
  display: block;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-feature-settings: "tnum" 1, "lnum" 1;
  background: linear-gradient(180deg, #f4f7ff 28%, #88a8e0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.metrics span {
  display: block;
  max-width: 22ch;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- split / sections ---------- */

.split {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-heading { position: sticky; top: 124px; }

.section-heading.compact {
  position: relative;
  top: auto;
  max-width: 820px;
}

/* ---------- solution cards ---------- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.solution-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--r-lg);
}

.solution-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}

.solution-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.18), rgba(178, 124, 255, 0.09));
  color: var(--blue-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 360ms var(--ease-spring), box-shadow 360ms var(--ease-out);
}

.solution-card:hover .solution-icon {
  transform: translateY(-3px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 30px rgba(91, 140, 255, 0.28);
}

.solution-icon svg { width: 26px; height: 26px; }

.card-index {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--quiet);
}

.solution-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
}

.solution-card p,
.work-card p,
.timeline p,
.contact-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.66;
}

.solution-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--border-soft);
  margin-top: 24px;
}

.solution-card li {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #d9e2f0;
  font-size: 0.95rem;
  font-weight: 500;
}

.solution-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  flex-shrink: 0;
}

/* ---------- work cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 14px;
  margin-top: 38px;
}

.work-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: var(--r-lg);
}

.work-card.featured { grid-row: span 2; }

.project-visual {
  position: relative;
  z-index: 1;
  height: 230px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 20%, rgba(91, 140, 255, 0.3), transparent 32%),
    radial-gradient(circle at 80% 72%, rgba(78, 230, 218, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(12, 24, 45, 0.98), rgba(9, 13, 24, 0.9));
  transition: transform 480ms var(--ease-spring);
}

.work-card:hover .project-visual { transform: scale(1.02); }

.project-visual::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  content: "";
}

.project-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

.visual-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  gap: 7px;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(4, 8, 16, 0.62);
  backdrop-filter: blur(12px);
}

.visual-toolbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.visual-toolbar b {
  margin-left: auto;
  color: rgba(214, 226, 244, 0.7);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.train-map span {
  position: absolute;
  z-index: 2;
  width: 54%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
  transform-origin: left;
}

.train-map span:nth-of-type(1) { top: 48%; left: 18%; transform: rotate(18deg); }
.train-map span:nth-of-type(2) { top: 62%; left: 24%; transform: rotate(-12deg); }
.train-map span:nth-of-type(3) { top: 74%; left: 14%; transform: rotate(7deg); }

.map-node {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(5, 7, 13, 0.9);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 26px rgba(70, 225, 213, 0.6);
  animation: pulse-node 3.2s ease-in-out infinite;
}

@keyframes pulse-node {
  0%, 100% { box-shadow: 0 0 20px rgba(70, 225, 213, 0.4); }
  50%      { box-shadow: 0 0 34px rgba(70, 225, 213, 0.75); }
}

.node-a { top: 46%; left: 22%; }
.node-b { top: 59%; left: 58%; background: var(--blue); box-shadow: 0 0 26px rgba(91, 140, 255, 0.6); animation-delay: 0.6s; }
.node-c { top: 72%; left: 42%; background: var(--warm); box-shadow: 0 0 26px rgba(255, 178, 103, 0.55); animation-delay: 1.2s; }

.ios-app { display: block; padding: 0; }

.phone-shell {
  position: absolute;
  inset: 22px auto 22px 50%;
  z-index: 2;
  width: 124px;
  padding: 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.16), rgba(255, 255, 255, 0.045));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%) rotate(-4deg);
  transition: transform 520ms var(--ease-spring);
}

.work-card:hover .phone-shell { transform: translateX(-50%) rotate(-2deg) translateY(-4px); }

.phone-notch {
  width: 36px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.phone-hero {
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.phone-list,
.phone-list.short {
  height: 12px;
  margin-top: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.phone-list.short { width: 68%; }

.ios-app > div:not(.phone-shell) {
  position: absolute;
  z-index: 1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.ios-app > div:nth-of-type(2) { top: 76px; left: 28px; width: 88px; height: 50px; }
.ios-app > div:nth-of-type(3) { right: 28px; bottom: 44px; width: 96px; height: 62px; }
.ios-app > div:nth-of-type(4) { bottom: 36px; left: 44px; width: 64px; height: 18px; border-radius: 999px; }

.pulse-ring,
.chart-line {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 26px;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(70, 225, 213, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 32px rgba(70, 225, 213, 0.08), 0 0 34px rgba(70, 225, 213, 0.14);
}

.pulse-ring::before,
.pulse-ring::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  border: 1px solid rgba(70, 225, 213, 0.3);
  animation: pulse-ring 3s var(--ease-out) infinite;
}

.pulse-ring::after { animation-delay: 1.5s; }

@keyframes pulse-ring {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.radio-monitor {
  display: flex;
  gap: 9px;
  align-items: end;
  padding: 74px 22px 24px;
}

.radio-monitor span,
.analytics span {
  display: block;
  position: relative;
  z-index: 2;
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: 0.82;
}

.radio-monitor span:nth-child(1) { height: 38%; }
.radio-monitor span:nth-child(2) { height: 70%; }
.radio-monitor span:nth-child(3) { height: 52%; }
.radio-monitor span:nth-child(4) { height: 86%; }

.analytics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  padding: 76px 22px 24px;
}

.chart-line {
  right: 26px;
  bottom: 42px;
  width: 58%;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
  transform: rotate(-13deg);
  box-shadow: 0 0 20px rgba(91, 140, 255, 0.4);
}

.analytics span:nth-child(1) { height: 48%; }
.analytics span:nth-child(2) { height: 84%; }
.analytics span:nth-child(3) { height: 62%; }
.analytics span:nth-child(4) { height: 74%; }

.project-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  letter-spacing: 0.06em;
  transition: color 200ms ease;
}

.project-meta a:hover { color: var(--blue-2); }

.work-card h3,
.work-card p,
.work-card details,
.project-meta {
  position: relative;
  z-index: 1;
}

.work-card h3 { margin: 4px 0 10px; }

.work-card details {
  margin-top: auto;
  padding-top: 22px;
}

.work-card summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms ease;
}

.work-card summary::-webkit-details-marker { display: none; }

.work-card summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 400;
  transition: transform 240ms var(--ease-spring), background 220ms ease;
}

.work-card details[open] summary::before {
  content: "−";
  background: rgba(91, 140, 255, 0.16);
  transform: rotate(180deg);
}

.work-card summary:hover { color: var(--text); }

.work-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.work-card dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
}

.work-card dt {
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.timeline article {
  position: relative;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--r-lg);
}

.timeline article::after {
  position: absolute;
  top: 44px;
  right: -10px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--blue);
  font-size: 0.7rem;
  content: "→";
}

.timeline article:last-child::after { display: none; }

.timeline span.step {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.08);
  font-size: 0.7rem;
}

.timeline h3 { margin: 38px 0 12px; }

/* ---------- studio ---------- */

.studio-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
}

.studio-panel > * { position: relative; z-index: 1; }

.studio-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 38px;
}

.faq-list details {
  border-radius: var(--r-md);
  padding: 0;
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.1rem;
  transition: transform 280ms var(--ease-spring), background 220ms ease, color 220ms ease;
}

.faq-list details[open] summary::after {
  content: "−";
  background: rgba(91, 140, 255, 0.18);
  color: var(--text);
  transform: rotate(180deg);
}

.faq-list details[open] { background: rgba(255, 255, 255, 0.05); border-color: var(--border); }

.faq-list details:hover { border-color: var(--border); }

.faq-list details > p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--r-lg);
}

.contact-card h3 { margin-bottom: 14px; }

.email-output {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 14px;
  color: var(--text);
  background: rgba(91, 140, 255, 0.09);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.email-output::before {
  content: "✉";
  color: var(--blue-2);
  font-size: 1.1rem;
}

/* ---------- footer ---------- */

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 100px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border-soft);
  color: var(--quiet);
  font-size: 0.9rem;
}

.footer .brand-word { color: var(--text); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms var(--ease-spring), transform 760ms var(--ease-spring);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .gradient-text, .logo-marquee-track, .map-node, .pulse-ring::before, .pulse-ring::after, .eyebrow .dot::after, .brand-mark { animation: none !important; }
  .reveal, .header-cta, .button, .magnetic, .tilt { transition: none !important; }
  .tilt { transform: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header-actions { justify-content: end; }
  .hero, .split, .studio-panel, .contact { grid-template-columns: 1fr; }
  .section-heading { position: relative; top: auto; }
  .system-card { max-width: 760px; }
  .timeline article::after { display: none; }
}

@media (max-width: 860px) {
  .page-shell { padding: 12px 14px 100px; }

  .site-header {
    top: 10px;
    min-height: 60px;
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
  }

  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 0.92rem; }

  .lang-switch a { width: 38px; height: 36px; font-size: 0.74rem; }

  .header-cta { display: none; }

  .hero { min-height: auto; padding-top: 48px; }

  h1 {
    max-width: none;
    font-size: clamp(2.5rem, 10.5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  h2 { font-size: clamp(2.05rem, 9.4vw, 3.4rem); }

  .hero-lead,
  .section-heading p,
  .studio-panel > p,
  .contact-copy p {
    font-size: 1.03rem;
    line-height: 1.66;
  }

  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .magnetic, .hero-actions .button { width: 100%; }
  .button { width: 100%; }

  .proof-line { gap: 6px; }
  .proof-line span { font-size: 0.72rem; }

  .flow-grid, .strip, .solution-grid, .work-grid, .timeline {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .solution-card, .work-card { min-height: auto; }

  .project-visual { height: 180px; }

  .work-card dl div { grid-template-columns: 1fr; gap: 2px; }

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .mobile-cta-bar { display: block; }

  /* spotlight + tilt disabled on touch */
  .spotlight::before { display: none; }
  .tilt { transform: none !important; }
}

@media (max-width: 420px) {
  .brand-word { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .logo-strip-label { gap: 12px; font-size: 0.66rem; letter-spacing: 0.16em; }
}

@media (hover: none) {
  .spotlight::before, .spotlight::after { display: none; }
  .magnetic { transform: none !important; }
  .tilt { transform: none !important; }
}
