/* ==========================================================================
   SamiLabs — static stylesheet (dark, brand palette)
   Design tokens first, then layout, then components.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand palette — sampled from the SL ribbon logo */
  --brand-primary: #6753D5;
  --brand-primary-hover: #5034AD;
  --brand-secondary: #8376F3;
  --brand-periwinkle: #8D91FB;
  --brand-lavender: #B7ADFB;
  --brand-gradient: linear-gradient(135deg, #5034AD 0%, #8376F3 55%, #8D91FB 100%);

  /* Dark neutrals (deep plum) */
  --page-background: #0B0614;
  --surface: #150D24;
  --surface-soft: #1D1432;
  --surface-raised: #241A3D;
  --glass: linear-gradient(180deg, rgba(36, 26, 61, 0.72), rgba(21, 13, 36, 0.66));
  --text-primary: #F4F0FF;
  --text-muted: #B8ADD6;
  --border: rgba(183, 173, 251, 0.14);
  --border-strong: rgba(183, 173, 251, 0.3);

  /* Usage rules (WCAG AA against page/surface/surface-soft/surface-raised):
     - Text: --text-primary (≥14:1), --text-muted (≥7.7:1), --accent-text (lavender ≥8:1),
       --brand-periwinkle (≥5.8:1), --brand-secondary (≥4.5:1).
     - --brand-primary is a fill (buttons with white text, 5.56:1), not a text colour on dark.
     - Control borders use --brand-secondary (≥4.5:1). */
  --accent-text: var(--brand-lavender);
  --accent-text-hover: #D6D0FF;
  --control-border: var(--brand-secondary);
  --focus-ring: var(--brand-lavender);
  --text-gradient: linear-gradient(96deg, #B7ADFB, #8D91FB 45%, #8376F3);
  --glow: rgba(103, 83, 213, 0.55);

  /* Semantic status colours */
  --error: #FF8A8A;
  --error-border: #F97066;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Space + shape */
  --wrap: 1240px;
  --pad-x: 22px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-mid: 0.32s var(--ease);
  --t-reveal: 0.7s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-text-hover); }
input, textarea, select, button { font: inherit; color: inherit; }
::selection { background: var(--brand-primary); color: #fff; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   Page shell + ambient background
   -------------------------------------------------------------------------- */

.page { position: relative; min-height: 100vh; isolation: isolate; }

.bg-grid,
.bg-blob,
.bg-noise { position: fixed; pointer-events: none; z-index: 0; }

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(141, 145, 251, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 145, 251, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0, #000 30%, transparent 78%);
}

.bg-blob--blue {
  top: -18vh; left: 50%;
  width: 90vw; max-width: 1100px; height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(103, 83, 213, .38), transparent 70%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite;
}

.bg-blob--violet {
  bottom: -20vh; right: -10vw;
  width: 70vw; max-width: 900px; height: 70vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(141, 145, 251, .2), transparent 70%);
  filter: blur(40px);
  animation: drift 28s ease-in-out infinite reverse;
}

.bg-noise { display: none; }

main { position: relative; z-index: 2; }

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 100px) var(--pad-x);
}

.band {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(29, 20, 50, 0.78), rgba(11, 6, 20, 0.35));
}
.band--top { border-bottom: 0; background: linear-gradient(180deg, rgba(29, 20, 50, 0.72), rgba(11, 6, 20, 0.3)); }
.band .section { padding-block: clamp(56px, 7vw, 110px); }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 6, 20, 0.55);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid), border-color var(--t-mid), backdrop-filter var(--t-mid);
}
.site-header.is-scrolled {
  background: rgba(11, 6, 20, 0.82);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--pad-x);
  display: flex; align-items: center; gap: 16px;
}

/* The symbol PNG keeps ~5% transparent padding, so the visible ribbon sits a
   little inside its box; the gap is trimmed to compensate. A soft periwinkle
   glow (not a recolour) keeps the darker folds readable on the dark header. */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.brand:hover { color: var(--text-primary); }
.brand__logo { height: 48px; width: auto; flex: none; filter: drop-shadow(0 0 8px rgba(141, 145, 251, 0.5)); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 1.5px; border-radius: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid);
}
.nav__link:hover { color: var(--text-primary); background: rgba(183, 173, 251, 0.08); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--text-primary); }

.nav__cta { margin-left: 10px; white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 40px;
  border: 1px solid var(--control-border);
  border-radius: var(--r-sm);
  background: rgba(131, 118, 243, 0.08);
  cursor: pointer;
  align-items: center; justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav-toggle:hover { border-color: var(--brand-lavender); background: rgba(131, 118, 243, 0.16); }
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text-primary); transition: background var(--t-fast); }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--text-primary);
  transition: transform var(--t-mid), top var(--t-mid);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    margin: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 0 var(--pad-x);
    background: rgba(11, 6, 20, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height var(--t-mid), opacity var(--t-mid), padding var(--t-mid);
  }
  .nav.is-open { max-height: 420px; opacity: 1; padding: 12px var(--pad-x) 20px; }
  .nav__link { padding: 12px 10px; font-size: 15px; }
  .nav__link::after { left: 10px; right: 10px; }
  .nav__cta { margin-left: 0; text-align: center; }
  .site-header__inner { position: relative; }
}

@media (max-width: 380px) {
  .brand__logo { height: 42px; }
  .brand__name { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border: 0; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn--lg { padding: 15px 26px; }

/* White text stays ≥5.56:1 across the whole fill (deep violet → primary). */
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(183, 173, 251, 0.25), 0 14px 38px -14px var(--glow);
}
.btn--primary:hover {
  color: #fff;
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(183, 173, 251, 0.55), 0 18px 46px -12px rgba(141, 145, 251, 0.6);
}
.btn--primary:active { transform: translateY(0); }

.nav__cta { padding: 11px 18px; font-size: 14px; }

.btn--ghost {
  color: var(--text-primary);
  border: 1px solid var(--control-border);
  background: rgba(131, 118, 243, 0.08);
}
.btn--ghost:hover { color: #fff; border-color: var(--brand-lavender); background: rgba(131, 118, 243, 0.16); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Shared typography blocks
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand-periwinkle);
}
.eyebrow--violet { color: var(--brand-lavender); }

.h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 4.2vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}
.h2--narrow { max-width: 24ch; }

.lead { margin: 0 0 18px; max-width: 60ch; font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.68; color: var(--text-muted); }

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

.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 44px;
}
.section__head .h2 { margin: 0; }
.section__head-note { margin: 0; max-width: 42ch; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }

.note { margin: 22px 0 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--text-muted); }

.grid { display: grid; gap: 16px; }
.grid--200 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
  padding-top: clamp(44px, 8vw, 110px);
  padding-bottom: clamp(40px, 8vw, 120px);
}

.pill {
   display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 26px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(131, 118, 243, 0.1);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-periwinkle); box-shadow: 0 0 10px 2px rgba(141, 145, 251, 0.85); animation: pulse 2.4s ease-in-out infinite; }
.pill__text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand-lavender); }

.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  text-wrap: balance;
}
.hero__lead { margin: 0 0 34px; max-width: 46ch; font-size: clamp(15.5px, 1.5vw, 19px); line-height: 1.64; color: var(--text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero__facts {
  margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.hero__facts dt { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.hero__facts dd { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* Hero orbit system: SL core with AI / Rapid Dev / Deploy / Fast Delivery
   nodes travelling one orbit. Decorative (aria-hidden on .orb). */
.orb { position: relative; aspect-ratio: 1 / 1; min-height: 280px; display: grid; place-items: center; }
.orbit { position: relative; width: min(88%, 500px); aspect-ratio: 1; display: grid; place-items: center; animation: orbit-float 8s ease-in-out infinite; }

.orbit__aura {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 145, 251, 0.38) 0 12%, rgba(103, 83, 213, 0.24) 32%, rgba(80, 52, 173, 0.1) 55%, transparent 70%);
  filter: blur(22px);
  animation: orbit-breathe 5s ease-in-out infinite;
}
.orbit__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit__ring--outer { inset: 1%; border: 1px solid rgba(183, 173, 251, 0.12); }
.orbit__ring--dash { inset: 10%; border: 1px dashed rgba(141, 145, 251, 0.4); animation: spin 70s linear infinite; }
.orbit__ring--inner { inset: 27%; border: 1px solid rgba(131, 118, 243, 0.28); box-shadow: inset 0 0 40px rgba(103, 83, 213, 0.22), 0 0 30px rgba(103, 83, 213, 0.12); }

/* Radar-style light sweeping along the node orbit */
.orbit__sweep {
  position: absolute; inset: 10%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(141, 145, 251, 0.05) 78%, rgba(183, 173, 251, 0.75) 99%, transparent 100%);
  -webkit-mask: radial-gradient(closest-side, transparent 97%, #000 98%, #000 100%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 97%, #000 98%, #000 100%, transparent 100%);
  opacity: 0.85;
  animation: spin 5s linear infinite;
}

.orbit__carrier { position: absolute; inset: 10%; border-radius: 50%; animation: spin 32s linear infinite; }
.orbit__node { position: absolute; width: 0; height: 0; z-index: 4; }
.orbit__node--ai { left: 50%; top: 0; }
.orbit__node--dev { left: 100%; top: 50%; }
.orbit__node--deploy { left: 50%; top: 100%; }
.orbit__node--fast { left: 0; top: 50%; }
/* Counter-rotates at the carrier's speed so icons and labels stay upright. */
.orbit__upright { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: spin-rev 32s linear infinite; }

.orbit__tile {
  position: absolute; left: 0; top: 0;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(52, 38, 92, 0.92), rgba(21, 13, 36, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 26px rgba(103, 83, 213, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--brand-lavender);
  animation: node-glow 4s ease-in-out infinite;
}
.orbit__tile svg { width: 27px; height: 27px; }
.orbit__node--ai .orbit__tile { color: var(--brand-periwinkle); }
.orbit__node--dev .orbit__tile { color: var(--brand-lavender); animation-delay: -1s; }
.orbit__node--deploy .orbit__tile { color: var(--brand-periwinkle); animation-delay: -2s; }
.orbit__node--fast .orbit__tile { color: var(--brand-lavender); animation-delay: -3s; }

.orbit__label {
  position: absolute; left: 0; top: 36px;
  transform: translateX(-50%);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 6, 20, 0.78);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; color: var(--text-primary);
}

.orbit__core {
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  width: 31%; height: 31%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 35% 28%, rgba(183, 173, 251, 0.3), rgba(36, 26, 61, 0.94) 55%, #120A20 100%);
  box-shadow: 0 0 40px rgba(103, 83, 213, 0.6), 0 0 100px rgba(141, 145, 251, 0.22), inset 0 0 32px rgba(141, 145, 251, 0.25);
}
.orbit__core-ring {
  position: absolute; inset: -7%; border-radius: 50%;
  background: conic-gradient(from 0deg, #5034AD, #8376F3, #8D91FB, #B7ADFB, #5034AD);
  -webkit-mask: radial-gradient(closest-side, transparent 91%, #000 92%, #000 100%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 91%, #000 92%, #000 100%, transparent 100%);
  animation: spin 9s linear infinite;
}
.orbit__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(141, 145, 251, 0.55);
  animation: pulse-out 3.6s ease-out infinite;
}
.orbit__pulse--late { animation-delay: 1.8s; }
.orbit__logo { position: relative; height: 58%; width: auto; filter: drop-shadow(0 0 14px rgba(141, 145, 251, 0.6)); }

.orbit__spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--brand-lavender); box-shadow: 0 0 9px rgba(183, 173, 251, 0.9); animation: twinkle 3s ease-in-out infinite; }
.orbit__spark--one { left: 16%; top: 22%; }
.orbit__spark--two { right: 14%; top: 30%; animation-delay: -0.8s; }
.orbit__spark--three { left: 22%; bottom: 18%; animation-delay: -1.6s; }
.orbit__spark--four { right: 22%; bottom: 14%; animation-delay: -2.2s; }

.orb__chip {
  position: absolute; z-index: 5;
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(21, 13, 36, 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
}
.orb__chip--bl { left: -2%; bottom: -3%; color: var(--brand-lavender); animation: float 7s ease-in-out infinite; }
.orb__chip--tr { right: -2%; top: -3%; color: var(--brand-lavender); animation: float 9s ease-in-out infinite reverse; }

@media (max-width: 560px) {
  .orbit__tile { width: 46px; height: 46px; border-radius: 13px; }
  .orbit__tile svg { width: 22px; height: 22px; }
  .orbit__label { top: 29px; font-size: 9px; padding: 2px 7px; }
  .orb__chip { display: none; }
}

/* --------------------------------------------------------------------------
   Cards, services, tiles
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--glass);
  overflow: hidden;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-periwinkle), transparent);
  opacity: 0; transition: opacity var(--t-mid);
}
.card:hover { transform: translateY(-4px); border-color: rgba(183, 173, 251, 0.4); box-shadow: 0 22px 48px -26px var(--glow); }
.card:hover::before { opacity: 1; }
.card--violet:hover { border-color: rgba(141, 145, 251, 0.45); }
.card__title { margin: 0 0 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-primary); }
.card__text { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--text-muted); }

.icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 12px;
  transition: transform var(--t-mid), border-color var(--t-mid), background var(--t-mid);
}
.icon--cyan { border: 1px solid var(--border-strong); background: rgba(131, 118, 243, 0.12); }
.icon--violet { border: 1px solid rgba(141, 145, 251, 0.35); background: rgba(141, 145, 251, 0.12); }
.card:hover .icon,
.svc:hover .icon { transform: translateY(-2px) scale(1.06); }

.ic-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-periwinkle); box-shadow: 0 0 14px 2px rgba(141, 145, 251, 0.75); animation: pulse 3s ease-in-out infinite; }
.ic-lines { width: 16px; height: 3px; border-radius: 2px; background: var(--brand-lavender); box-shadow: 0 6px 0 rgba(183, 173, 251, 0.6), 0 -6px 0 rgba(183, 173, 251, 0.35), 0 0 12px rgba(141, 145, 251, 0.6); }
.ic-diamond { width: 14px; height: 14px; background: var(--brand-secondary); transform: rotate(45deg); box-shadow: 0 0 14px 2px rgba(131, 118, 243, 0.6); }
.ic-square { width: 15px; height: 15px; border: 2px solid var(--brand-periwinkle); border-radius: 4px; box-shadow: 0 0 12px rgba(141, 145, 251, 0.5); }
.ic-phone { width: 15px; height: 24px; border: 2px solid var(--brand-lavender); border-radius: 4px; box-shadow: 0 0 12px rgba(141, 145, 251, 0.45); }
.ic-window { width: 24px; height: 17px; border: 2px solid var(--brand-lavender); border-top-width: 6px; border-radius: 4px; box-shadow: 0 0 12px rgba(141, 145, 251, 0.45); }
.ic-card { width: 22px; height: 14px; border-radius: 3px; background: linear-gradient(var(--brand-lavender), var(--brand-secondary)); box-shadow: 0 0 12px rgba(141, 145, 251, 0.45); }
.ic-drop { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--brand-periwinkle); box-shadow: 0 0 12px rgba(141, 145, 251, 0.5); }
.ic-cross { position: relative; display: block; width: 20px; height: 6px; border-radius: 2px; background: var(--brand-lavender); box-shadow: 0 0 12px rgba(141, 145, 251, 0.5); }
.ic-cross span { position: absolute; left: 7px; top: -7px; width: 6px; height: 20px; border-radius: 2px; background: var(--brand-lavender); }
.ic-bars { display: flex; align-items: flex-end; gap: 3px; }
.ic-svg { width: 22px; height: 22px; color: var(--brand-lavender); filter: drop-shadow(0 0 6px rgba(141, 145, 251, 0.55)); }
.ic-bars span:nth-child(1) { width: 4px; height: 8px; background: var(--brand-secondary); }
.ic-bars span:nth-child(2) { width: 4px; height: 14px; background: var(--brand-periwinkle); }
.ic-bars span:nth-child(3) { width: 4px; height: 20px; background: var(--brand-lavender); box-shadow: 0 0 10px rgba(183, 173, 251, 0.6); }

.svc {
  display: block; position: relative;
  padding: 30px 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--glass);
  overflow: hidden;
  color: var(--text-primary);
  transition: transform var(--t-mid), border-color var(--t-mid), background var(--t-mid), box-shadow var(--t-mid);
}
.svc::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--t-mid);
  background: radial-gradient(320px 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(141, 145, 251, 0.18), transparent 70%);
}
.svc--violet::before { background: radial-gradient(320px 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(183, 173, 251, 0.18), transparent 70%); }
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; }
.svc:hover {
  color: var(--text-primary); transform: translateY(-5px);
  border-color: rgba(183, 173, 251, 0.42);
  box-shadow: 0 26px 54px -26px var(--glow);
}
.svc--violet:hover { border-color: rgba(141, 145, 251, 0.45); }
.svc__title { margin: 0 0 10px; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.svc__text { margin: 0 0 26px; font-size: 14.5px; line-height: 1.62; color: var(--text-muted); }
.svc__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-periwinkle);
}
.svc__more--violet { color: var(--brand-lavender); }
.svc__more span { transition: transform var(--t-mid); }
.svc:hover .svc__more { color: var(--accent-text-hover); }
.svc:hover .svc__more span { transform: translateX(5px); }

@media (hover: none) {
  .svc::before { display: none; }
}

.tile {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--glass);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.tile:hover { transform: translateY(-3px); border-color: rgba(183, 173, 251, 0.4); background: var(--surface-raised); }
.tile--violet:hover { border-color: rgba(141, 145, 251, 0.45); }
.tile__name { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.tile__text { display: block; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Stages (Built with AI)
   -------------------------------------------------------------------------- */

.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px;
}
.stage {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--glass);
  overflow: hidden;
  transition: transform var(--t-mid), border-color var(--t-mid);
}
.stage:hover { transform: translateY(-3px); border-color: rgba(183, 173, 251, 0.42); }
.stage--blue { border-color: var(--border); }
.stage--violet { border-color: var(--border); }
.stage__beam {
  position: absolute; left: 0; top: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--brand-periwinkle), transparent);
  animation: flow 3.2s linear infinite;
}
.stage--blue .stage__beam { background: linear-gradient(180deg, transparent, var(--brand-lavender), transparent); }
.stage--violet .stage__beam { background: linear-gradient(180deg, transparent, var(--brand-secondary), transparent); }
.stage:nth-child(2) .stage__beam { animation-delay: 0.5s; }
.stage:nth-child(3) .stage__beam { animation-delay: 1s; }
.stage:nth-child(4) .stage__beam { animation-delay: 1.5s; }
.stage:nth-child(5) .stage__beam { animation-delay: 2s; }
.stage:nth-child(6) .stage__beam { animation-delay: 2.5s; }
.stage__no { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--brand-periwinkle); margin-bottom: 12px; }
.stage__name { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.stage__text { display: block; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Panels (speed / cost / quality)
   -------------------------------------------------------------------------- */

.panels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel { padding: 34px 28px; background: rgba(15, 9, 27, 0.94); transition: background var(--t-mid); }
.panel:hover { background: var(--surface-soft); }
.panel__rule { display: block; width: 34px; height: 3px; margin-bottom: 24px; border-radius: 2px; transition: width var(--t-mid); }
.panel:hover .panel__rule { width: 52px; }
.panel__rule--cyan { background: var(--brand-periwinkle); box-shadow: 0 0 12px rgba(141, 145, 251, 0.8); }
.panel__rule--blue { background: var(--brand-lavender); box-shadow: 0 0 12px rgba(183, 173, 251, 0.7); }
.panel__rule--violet { background: var(--brand-secondary); box-shadow: 0 0 12px rgba(131, 118, 243, 0.8); }
.panel__title { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text-primary); }
.panel__text { margin: 0; font-size: 15px; line-height: 1.62; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.steps { position: relative; display: grid; }
.steps__track {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.steps__progress {
  display: block; width: 100%; height: 0;
  background: var(--brand-gradient);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(141, 145, 251, 0.6);
  transition: height 0.25s linear;
}
.step {
  position: relative;
  display: grid; grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  padding: 26px 0 26px 18px;
  border-top: 1px solid var(--border);
  transition: background var(--t-mid);
}
.step--last { border-bottom: 1px solid var(--border); }
.step.is-active { background: linear-gradient(90deg, rgba(131, 118, 243, 0.12), transparent 60%); }
.step__no { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; transition: text-shadow var(--t-mid); }
.step__no--cyan { color: var(--brand-periwinkle); }
.step__no--blue { color: var(--brand-lavender); }
.step__no--violet { color: var(--brand-secondary); }
.step.is-active .step__no { text-shadow: 0 0 14px currentColor; }
.step__title { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 28px); font-weight: 600; color: var(--text-primary); }
.step__text { margin: 0; max-width: 62ch; font-size: 15px; line-height: 1.62; color: var(--text-muted); }

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

/* --------------------------------------------------------------------------
   Why SamiLabs bullets
   -------------------------------------------------------------------------- */

.bullets {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px;
}
.bullet {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass);
  font-size: 14.5px; color: var(--text-primary);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.bullet:hover { transform: translateY(-2px); border-color: rgba(183, 173, 251, 0.4); background: var(--surface-raised); }
.bullet__dot { flex: none; margin-top: 7px; width: 6px; height: 6px; border-radius: 50%; }
.bullet__dot--cyan { background: var(--brand-periwinkle); box-shadow: 0 0 8px rgba(141, 145, 251, 0.9); }
.bullet__dot--blue { background: var(--brand-lavender); box-shadow: 0 0 8px rgba(183, 173, 251, 0.9); }
.bullet__dot--violet { background: var(--brand-secondary); box-shadow: 0 0 8px rgba(131, 118, 243, 0.9); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-wrap { padding: 0 var(--pad-x) clamp(50px, 7vw, 100px); }
.cta {
  position: relative;
  max-width: 1196px; margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) clamp(22px, 5vw, 72px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(103, 83, 213, 0.42), rgba(15, 9, 27, 0.94) 62%);
  text-align: center;
}
.cta__glow {
  position: absolute; inset: -40% 20% auto; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(141, 145, 251, 0.3), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite;
}
.cta__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(141, 145, 251, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 145, 251, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 50%, #000, transparent 75%);
}
.cta__inner { position: relative; }
.cta__title {
  margin: 0 auto 18px; max-width: 18ch;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; color: var(--text-primary);
}
.cta__text { margin: 0 auto 34px; max-width: 54ch; font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.65; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list__item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.contact-list__item:hover { border-color: rgba(183, 173, 251, 0.4); background: var(--surface-raised); }
.contact-list dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.contact-list dd { margin: 0; font-family: var(--font-display); font-size: 17px; overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-ic { width: 18px; height: 18px; flex: none; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; }
.footer__social .social-ic { width: 16px; height: 16px; }

.form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(36, 26, 61, 0.85), rgba(15, 9, 27, 0.88));
  box-shadow: 0 30px 70px -40px var(--glow);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.form label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--control-border);
  background: rgba(11, 6, 20, 0.7);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form select option { background: var(--surface); color: var(--text-primary); }
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder,
.form textarea::placeholder { color: var(--text-muted); opacity: 1; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  background: rgba(11, 6, 20, 0.9);
  box-shadow: 0 0 0 3px rgba(183, 173, 251, 0.25);
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { outline: none; }
.form [aria-invalid="true"] { border-color: var(--error-border); }
.field__error { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--error); text-transform: none; }

.form__submit { margin-top: 4px; font-size: 15.5px; border-radius: 11px; }
.form__submit[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.form__note { margin: 0; min-height: 20px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--brand-lavender); }
.form__note--error { color: var(--error); }
.form__note--success { color: var(--brand-lavender); }
.form__note a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.form__submit[aria-busy="true"] { cursor: progress; }
/* Spam trap: hidden from people and assistive tech, still visible to bots. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(8, 4, 15, 0.85);
}
.footer::before {
  content: "";
  position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-periwinkle), transparent);
}
.footer__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 5vw, 68px) var(--pad-x) 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px;
}
.footer__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer__logo { height: 40px; width: auto; flex: none; filter: drop-shadow(0 0 8px rgba(141, 145, 251, 0.45)); }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-primary); }
.footer__tag { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-periwinkle); }
.footer__line { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__heading { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-lavender); }
.footer__col a { font-size: 14.5px; color: var(--text-muted); width: fit-content; }
.footer__col a:hover { color: var(--text-primary); transform: translateX(2px); }
.footer__col a { transition: color var(--t-fast), transform var(--t-fast); }
.footer__bottom {
  max-width: var(--wrap); margin: 0 auto;
  padding: 20px var(--pad-x) 34px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.footer__bottom p { margin: 0; font-size: 13px; color: var(--text-muted); }
.footer__mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Scroll reveal + keyframes
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity var(--t-reveal), transform var(--t-reveal), filter var(--t-reveal);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

.grid > .reveal:nth-child(2),
.panels > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3),
.panels > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.12); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes flow {
  0% { transform: translateY(-100%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes orbit-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes orbit-breathe { 0%, 100% { opacity: 0.7; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pulse-out { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes node-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(103, 83, 213, 0.4); border-color: rgba(183, 173, 251, 0.3); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 34px rgba(141, 145, 251, 0.65); border-color: rgba(183, 173, 251, 0.6); }
}
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.8); } }

/* The blob keeps its own translateX centering while drifting. */
.bg-blob--blue { animation-name: drift-centered; }
@keyframes drift-centered {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-48%) translateY(-3%) scale(1.12); }
  100% { transform: translateX(-50%) scale(1); }
}

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