/* ==========================================================================
   Evolutech site styles

   Theming: every color derives from the tokens below. Day (paper) is the
   default. Night (plum) applies when the visitor's system prefers dark, or
   when data-theme="dark" is set on <html>; data-theme="light" forces day.
   ========================================================================== */

/* ---------- Day tokens (paper) ---------- */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #f6f4ee;
  --bg-2: #edeae2;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-2: rgba(21, 23, 28, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.8);
  --surface-faint: rgba(21, 23, 28, 0.02);
  --border: rgba(21, 23, 28, 0.1);
  --border-strong: rgba(21, 23, 28, 0.18);
  --border-hover: rgba(21, 23, 28, 0.32);
  --glass-bg: rgba(255, 255, 255, 0.74);
  --header-bg: rgba(246, 244, 238, 0.82);
  --panel-bg: rgba(246, 244, 238, 0.98);
  --grid-line: rgba(21, 23, 28, 0.06);
  --shimmer: rgba(255, 255, 255, 0.6);
  --shadow-lg: 0 30px 80px -30px rgba(21, 23, 28, 0.28);
  --card-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 12px 32px -16px rgba(21, 23, 28, 0.14);

  /* Text */
  --text: #15171c;
  --muted: #5a6070;
  --faint: #7b8090;

  /* Accent */
  --accent: #1f47e6;
  --accent-2: #5b3df5;
  --on-accent: #ffffff;
  --orb-a: rgba(31, 71, 230, 0.26);
  --orb-b: rgba(255, 122, 89, 0.26);
  --orb-c: rgba(255, 190, 92, 0.22);

  /* Terminal card (dark in both modes) */
  --term-bg: #140f1c;
  --term-accent: #8fb0ff;

  /* Derived from the accent */
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-soft-2: color-mix(in srgb, var(--accent-2) 14%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 28%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 55%, transparent);
  --accent-shadow: color-mix(in srgb, var(--accent) 50%, transparent);
  --selection: color-mix(in srgb, var(--accent) 30%, transparent);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --display-weight: 600;
  --display-weight-h1: 600;
  --display-tracking: -0.015em;
  --display-tracking-h1: -0.025em;

  /* Motion, layout, shape */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ---------- Night tokens (plum) ----------
   Declared twice on purpose: once for the system preference (unless the visitor
   forced day), once for an explicit data-theme="dark" from the header toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #130f1a;
    --bg-2: #1a1424;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --surface-faint: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-hover: rgba(255, 255, 255, 0.28);
    --glass-bg: rgba(31, 23, 42, 0.72);
    --header-bg: rgba(19, 15, 26, 0.72);
    --panel-bg: rgba(19, 15, 26, 0.96);
    --grid-line: rgba(255, 255, 255, 0.045);
    --shimmer: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --card-shadow: none;
    --text: #f3eef7;
    --muted: #a89fb4;
    --faint: #7a7089;
    --accent: #f5b556;
    --accent-2: #ff7b72;
    --on-accent: #2a1a05;
    --orb-a: rgba(245, 181, 86, 0.32);
    --orb-b: rgba(255, 123, 114, 0.3);
    --orb-c: rgba(168, 102, 255, 0.3);
    --term-bg: #0f0b15;
    --term-accent: #f5b556;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #130f1a;
  --bg-2: #1a1424;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-faint: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.28);
  --glass-bg: rgba(31, 23, 42, 0.72);
  --header-bg: rgba(19, 15, 26, 0.72);
  --panel-bg: rgba(19, 15, 26, 0.96);
  --grid-line: rgba(255, 255, 255, 0.045);
  --shimmer: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --card-shadow: none;
  --text: #f3eef7;
  --muted: #a89fb4;
  --faint: #7a7089;
  --accent: #f5b556;
  --accent-2: #ff7b72;
  --on-accent: #2a1a05;
  --orb-a: rgba(245, 181, 86, 0.32);
  --orb-b: rgba(255, 123, 114, 0.3);
  --orb-c: rgba(168, 102, 255, 0.3);
  --term-bg: #0f0b15;
  --term-accent: #f5b556;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img,
svg {
  display: block;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4.8rem);
  font-weight: var(--display-weight-h1);
  letter-spacing: var(--display-tracking-h1);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem);
  letter-spacing: var(--display-tracking-h1);
}

h3 {
  font-size: 1.25rem;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--selection);
}

/* ---------- Utilities ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pulse {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll reveal: only applied when JS is running, so content is never hidden without it.
   Stagger is handled in JS by reading the --delay custom property. */
:where(.js) .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

:where(.js) .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.btn-primary {
  background: var(--gradient);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px var(--accent-shadow);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -10px var(--accent-shadow);
}

.btn .icon {
  transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition: transform 0.5s var(--ease-spring);
}

.brand-mark .bar {
  fill: var(--on-accent);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Day / night toggle */
.mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.4s var(--ease-spring);
}

.mode-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.mode-toggle:active {
  transform: scale(0.94);
}

.mode-toggle .icon {
  width: 20px;
  height: 20px;
}

.mode-toggle .icon-sun,
.mode-toggle[data-mode="dark"] .icon-moon {
  display: none;
}

.mode-toggle[data-mode="dark"] .icon-sun {
  display: block;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - var(--header-h)), 900px);
  min-height: min(calc(100svh - var(--header-h)), 900px);
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  top: -120px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, var(--orb-a), transparent 65%);
}

.orb-b {
  top: 10%;
  right: -200px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 60% 40%, var(--orb-b), transparent 65%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.orb-c {
  bottom: -200px;
  left: 40%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--orb-c), transparent 65%);
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

:where(.js) .hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}

:where(.js) .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
:where(.js) .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
:where(.js) .hero-copy > :nth-child(3) { animation-delay: 0.25s; }
:where(.js) .hero-copy > :nth-child(4) { animation-delay: 0.35s; }
:where(.js) .hero-copy > :nth-child(5) { animation-delay: 0.45s; }

.lead {
  max-width: 56ch;
  margin-top: 24px;
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--muted);
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 36px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
}

/* Floating domain cards */
.hero-visual {
  position: relative;
  height: 520px;
}

.hero-ring {
  position: absolute;
  inset: 6% 4%;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.hero-card-wrap {
  position: absolute;
}

:where(.js) .hero-card-wrap {
  animation: rise 1s var(--ease) both;
  animation-delay: calc(0.4s + var(--i, 0) * 0.15s);
}

/* Composition: the hub sits in the centre of the ring, the domain tiles orbit it */
.hero-pos-hub {
  inset: 0;
  z-index: 2;
  width: max-content;
  height: max-content;
  margin: auto;
}

.hero-pos-a { top: 4%; left: 0; }
.hero-pos-b { top: 19%; right: 0; }
.hero-pos-c { bottom: 13%; left: 3%; }
.hero-pos-more { right: 8%; bottom: 5%; }

/* Featured "custom solutions" card */
.hero-hub {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 20px 20px 16px;
  border-radius: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg), 0 0 0 8px var(--accent-soft);
  animation: float 8s ease-in-out infinite;
}

/* Gradient hairline border */
.hero-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-hub-badge {
  position: absolute;
  top: -13px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -6px var(--accent-shadow);
}

.hero-hub-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.hero-hub-main .hero-card-icon {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--gradient);
  color: var(--on-accent);
}

.hero-hub-main .hero-card-icon .icon {
  width: 24px;
  height: 24px;
}

.hero-hub-main .hero-card-text strong {
  font-size: 1.15rem;
}

.hero-hub-main .hero-card-text .sub {
  font-size: 0.86rem;
}

.hero-hub-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-hub-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-hub-steps li + li::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--border-strong);
}

.hero-hub-steps li:last-child {
  color: var(--accent);
}

/* "Your domain" hint */
.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px dashed var(--border-hover);
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transform: rotate(var(--r, 0deg));
  animation: float 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -2.3s);
}

.hero-more .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 236px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transform: rotate(var(--r, 0deg));
  animation: float 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -2.3s);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}

.hero-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent);
}

.hero-card-icon .icon {
  width: 20px;
  height: 20px;
}

.hero-card-text {
  display: block;
}

.hero-card-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-card-text .sub {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-card-status {
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: 100%;
    max-width: 520px;
    height: 460px;
    margin: 0 auto;
  }

  .hero-pos-a { top: 0; }
  .hero-pos-b { top: 15%; }
  .hero-pos-c { bottom: 12%; left: 0; }
  .hero-pos-more { right: 4%; bottom: 2%; }
}

@media (max-width: 480px) {
  .hero-visual {
    height: 440px;
  }

  .hero-card {
    min-width: 210px;
    padding: 10px 12px;
  }

  .hero-hub {
    width: 290px;
    padding: 18px 16px 14px;
  }

  .hero-hub-steps {
    gap: 5px;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .hero-hub-steps li + li::before {
    width: 8px;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-faint);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

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

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.marquee-group span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--display-weight);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--muted);
}

.marquee-group .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

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

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-alt {
  background: linear-gradient(
    180deg,
    transparent,
    var(--surface-faint) 20%,
    var(--surface-faint) 80%,
    transparent
  );
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-lead {
  max-width: 60ch;
  margin-top: 18px;
  font-size: clamp(1.02rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--muted);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition:
    transform 0.5s var(--ease),
    opacity 0.8s var(--ease),
    border-color 0.5s var(--ease),
    background-color 0.5s var(--ease);
}

/* Pointer-following spotlight (coordinates set in JS) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-soft),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

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

.card > * {
  position: relative;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
}

.card .badge {
  margin-bottom: 16px;
}

/* Icon plus a label pill on the same row at the top of a card */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.card-top .icon-badge,
.card-top .badge {
  margin: 0;
}

.icon-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent);
}

.icon-badge .icon {
  width: 24px;
  height: 24px;
}

.icon-badge.small {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 11px;
}

.icon-badge.small .icon {
  width: 20px;
  height: 20px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--accent);
}

.link .icon {
  transition: transform 0.35s var(--ease);
}

.link:hover .icon {
  transform: translateX(4px);
}

/* What we do */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar h3 {
  font-size: 1.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chips li {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 800px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* Expertise */
.domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.domain h3 {
  font-size: 1.2rem;
}

.domain-more {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.domain-more .icon-badge {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
}

@media (max-width: 1024px) {
  .domains {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .domains {
    grid-template-columns: 1fr;
  }
}

/* Process */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong) 10%,
    var(--border-strong) 90%,
    transparent
  );
}

.step {
  position: relative;
}

.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease-spring);
}

.step:hover .step-icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  transform: scale(1.05);
}

.step-icon .icon {
  width: 22px;
  height: 22px;
}

.step-evolve .step-icon {
  border-color: transparent;
  background: var(--gradient);
  color: var(--on-accent);
}

.step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.values {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.values li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.values strong {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.values p {
  margin-top: 4px;
  font-size: 0.97rem;
  color: var(--muted);
}

/* The terminal card stays dark in every theme, so it redefines its own tokens */
.terminal {
  --text: #e8ecf4;
  --muted: #9aa4b8;
  --faint: #6b7589;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --surface-faint: rgba(255, 255, 255, 0.02);

  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--term-bg);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-faint);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-bar em {
  margin-left: auto;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--faint);
}

.terminal-body {
  padding: 22px 24px 24px;
  line-height: 1.95;
  color: var(--muted);
}

.terminal-body .row {
  display: flex;
}

.terminal-body .prompt { color: var(--term-accent); }
.terminal-body .cmd { color: var(--text); }

.terminal-body .key {
  flex: none;
  width: 12ch;
  color: var(--faint);
}

.terminal-body .val {
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.terminal-body .val.hl { color: var(--term-accent); }

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--term-accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.products-visual {
  position: relative;
}

.products-visual .glow {
  position: absolute;
  inset: 15% -5% -5% 15%;
  background: radial-gradient(closest-side, var(--orb-b), transparent);
  filter: blur(40px);
}

.product-mock {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  box-shadow: var(--shadow-lg);
}

.mock-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  height: calc(100% - 39px);
}

.mock-side {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
}

.mock-side i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: var(--border);
}

.mock-side i:first-child {
  background: var(--accent-glow);
}

.mock-main {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
}

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-tile {
  position: relative;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.mock-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, var(--shimmer) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite;
}

.mock-tile:nth-child(2)::after { animation-delay: 0.4s; }
.mock-tile:nth-child(3)::after { animation-delay: 0.8s; }

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.mock-chart {
  position: relative;
  height: 120px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-faint);
}

.mock-chart svg {
  width: 100%;
  height: 100%;
}

.mock-grid {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.mock-area {
  fill: url(#brand-gradient);
  opacity: 0;
  transition: opacity 1s var(--ease) 1.6s;
}

.mock-line {
  fill: none;
  stroke: url(#brand-gradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}

.is-visible .mock-line {
  animation: draw 2.2s var(--ease) 0.5s forwards;
}

.is-visible .mock-area {
  opacity: 0.14;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.mock-lines {
  display: grid;
  gap: 10px;
}

.mock-lines i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: var(--border);
}

.mock-lines i:first-child { width: 62%; }
.mock-lines i:last-child { width: 38%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.badge-glow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge-glow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s infinite;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-visual {
    order: 2;
  }
}

@media (max-width: 600px) {
  .product-mock {
    aspect-ratio: 1 / 1;
  }
}

/* Contact */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface), var(--surface-faint));
  box-shadow: var(--card-shadow);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 50% 120%, color-mix(in srgb, var(--orb-a) 45%, transparent), transparent 70%),
    radial-gradient(500px 260px at 15% -20%, color-mix(in srgb, var(--orb-b) 40%, transparent), transparent 70%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-panel .section-lead {
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 22px;
}

.footer-links a {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--faint);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  :where(.js) .reveal {
    opacity: 1;
    transform: none;
  }

  .is-visible .mock-area {
    opacity: 0.14;
  }
}
