/* ============================================================
   Nestragl IT - dark SaaS redesign
   Tokens, primitives, and shared components
   ============================================================ */

:root {
  /* Base ink */
  --bg-0: #060814;
  --bg-1: #0a0d1c;
  --bg-2: #11152a;
  --bg-3: #161b34;
  --bg-card: #0e1226;
  --bg-card-hi: #14182f;

  /* Borders */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-glow: rgba(94, 234, 212, 0.35);

  /* Text */
  --text-1: #f4f6fb;
  --text-2: #a3aac0;
  --text-3: #6a7088;
  --text-4: #4a4f66;

  /* Accents */
  --acc: #5eead4;        /* electric mint */
  --acc-2: #818cf8;      /* indigo */
  --acc-3: #f0abfc;      /* magenta - sparingly */
  --acc-warm: #fbbf24;   /* warning/amber - sparingly */

  /* Gradients */
  --grad-1: linear-gradient(135deg, #5eead4 0%, #818cf8 60%, #c084fc 100%);
  --grad-2: linear-gradient(180deg, rgba(94, 234, 212, 0.18), rgba(129, 140, 248, 0));
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(94, 234, 212, 0.18), transparent 60%);

  /* Type */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.85, 0, 0.15, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(94, 234, 212, 0.12), 0 18px 60px -12px rgba(94, 234, 212, 0.25);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 32px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

body {
  background:
    radial-gradient(1100px 600px at 80% -200px, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 10%, rgba(94, 234, 212, 0.10), transparent 55%),
    var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(94, 234, 212, 0.35); color: #fff; }

/* ----- Layout ----- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding: clamp(60px, 9vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--acc), transparent);
}

.h-display {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(40px, 7vw, 92px);
  text-wrap: balance;
}
.h-1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(32px, 4.6vw, 56px);
  text-wrap: balance;
  margin: 0 0 .6em;
}
.h-2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 .4em;
}
.lede {
  color: var(--text-2);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 60ch;
  line-height: 1.55;
}
.kicker-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--acc);
  text-transform: uppercase;
}

/* ----- NAV ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(6, 8, 20, 0.78), rgba(6, 8, 20, 0.55));
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding: 10px 0; }

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.nav-brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad-1);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px -6px rgba(94, 234, 212, 0.5);
}
.nav-brand-mark::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 5px;
  background: var(--bg-0);
}
.nav-brand-mark::before {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--grad-1);
  z-index: 1;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.04); }

.lang-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.02);
  margin-left: 8px;
}
.lang-pill button {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.lang-pill button.is-active {
  background: var(--text-1);
  color: var(--bg-0);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--text-1);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 13, 28, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    padding: 14px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all .25s var(--ease);
  }
  .nav-links .nav-link { padding: 12px 14px; border-radius: 12px; }
  .nav.is-open .nav-links { transform: translateY(0); opacity: 1; visibility: visible; }
  .lang-pill { margin: 4px 14px 4px; align-self: flex-start; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  font-family: inherit;
  background: transparent;
  color: var(--text-1);
}
.btn-primary {
  background: var(--text-1);
  color: var(--bg-0);
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(94, 234, 212, 0.4), 0 0 0 1px rgba(94, 234, 212, 0.4);
}
.btn-primary .btn-arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-1);
}
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255, 255, 255, 0.03); }

.btn-glow {
  position: relative;
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.12), rgba(129, 140, 248, 0.12));
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--text-1);
}
.btn-glow:hover {
  border-color: var(--acc);
  box-shadow: var(--shadow-glow);
}
.btn-lg { padding: 16px 26px; font-size: 15px; }

.btn-arrow {
  width: 14px; height: 14px;
  display: inline-grid;
  place-items: center;
}

/* ----- Status pill ----- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-2);
  margin-bottom: 28px;
}
.status-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--acc);
  opacity: 0.6;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.6; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ----- Chips ----- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 60px;
  align-items: center;
  width: 100%;
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-stack { display: flex; flex-direction: column; gap: 18px; }

.hero-title {
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}
.hero-title .accent {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .subtle { color: var(--text-3); }
.hero-title .price-cluster {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.hero-sub {
  color: var(--text-2);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 56ch;
  line-height: 1.55;
  margin: 8px 0 8px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-meta-row {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.hero-meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-meta-item .v {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.hero-meta-item .l {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.hero-meta-divider { width: 1px; height: 28px; background: var(--line); }

/* ----- Hero visual: M365 orbit ----- */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.orbit {
  position: absolute;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  inset: 0;
}
.orbit::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
  top: -4px; left: 50%;
}
.orbit-1 { inset: 0; animation: spin 28s linear infinite; }
.orbit-2 { inset: 12%; border-color: rgba(129, 140, 248, 0.18); animation: spin 22s linear infinite reverse; }
.orbit-2::after { background: var(--acc-2); box-shadow: 0 0 12px var(--acc-2); }
.orbit-3 { inset: 24%; border-color: rgba(255, 255, 255, 0.05); animation: spin 18s linear infinite; }
.orbit-3::after { background: #fff; box-shadow: 0 0 10px #fff; width: 5px; height: 5px; top: -2.5px; }

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

.orbit-core {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.7), rgba(129, 140, 248, 0.4) 60%, transparent 80%);
  filter: blur(2px);
  display: grid;
  place-items: center;
}
.orbit-core::after {
  content: "";
  inset: 14%;
  position: absolute;
  background: var(--bg-0);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(94, 234, 212, 0.2);
}
.orbit-core-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--acc);
  text-transform: uppercase;
}

.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(14, 18, 38, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.orbit-chip-mark {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.orbit-chip[data-svc="teams"] { top: 8%; left: 10%; }
.orbit-chip[data-svc="teams"] .orbit-chip-mark { background: #6264a7; }
.orbit-chip[data-svc="sharepoint"] { top: 12%; right: 6%; }
.orbit-chip[data-svc="sharepoint"] .orbit-chip-mark { background: #038387; }
.orbit-chip[data-svc="outlook"] { bottom: 18%; left: 4%; }
.orbit-chip[data-svc="outlook"] .orbit-chip-mark { background: #0078d4; }
.orbit-chip[data-svc="power"] { bottom: 6%; right: 12%; }
.orbit-chip[data-svc="power"] .orbit-chip-mark { background: #742774; }
.orbit-chip[data-svc="entra"] { top: 50%; right: -4%; }
.orbit-chip[data-svc="entra"] .orbit-chip-mark { background: #00a4ef; }

@media (max-width: 1080px) {
  .hero-visual { max-width: 360px; margin: 12px auto 0; }
}
@media (max-width: 600px) {
  .hero-visual { max-width: 280px; }
  .orbit-chip { padding: 6px 9px; font-size: 11px; }
}

/* ============================================================
   COUNTER STRIP (numbers row)
   ============================================================ */
.counter-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.05), transparent 30%, transparent 70%, rgba(129, 140, 248, 0.05));
  padding: 32px 0;
}
.counter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.counter-row > div {
  padding: 14px 24px;
  border-left: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.counter-row > div:first-child { border-left: 0; padding-left: 0; }

.count-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.count-value .unit {
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 0;
  font-weight: 500;
}
.count-label {
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 720px) {
  .counter-row { grid-template-columns: repeat(2, 1fr); }
  .counter-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .counter-row > div { border-bottom: 1px dashed var(--line); padding: 14px; }
  .counter-row > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ============================================================
   STACK / SERVICES
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.stack-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-1));
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.stack-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.stack-card .ic {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.stack-card .name { font-weight: 500; color: var(--text-1); font-size: 14px; }
.stack-card .role { font-size: 12px; color: var(--text-3); margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================================
   PROBLEM TERMINAL
   ============================================================ */
.terminal {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #0a0d20, #060814);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 14px;
  box-shadow: var(--shadow-card);
}
.term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a2f48; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #f7bd2e; }
.term-dot.g { background: #28c93f; }
.term-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.term-body { padding: 22px 24px; line-height: 1.85; }
.term-line { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; }
.term-prompt { color: var(--acc); flex: 0 0 auto; }
.term-cmd { color: var(--text-2); }
.term-out { color: var(--text-3); padding-left: 26px; }
.term-cmd .strike { text-decoration: line-through; color: var(--text-3); }
.term-pipe { color: var(--text-4); }
.term-hl { color: var(--acc); }
.term-warn { color: var(--acc-warm); }
.term-bad { color: #fca5a5; }
.term-ok { color: var(--acc); }

.term-cursor::after {
  content: "▍";
  color: var(--acc);
  animation: blink 1s steps(2) infinite;
  margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   DELIVERABLES
   ============================================================ */
.deliv-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.deliv-item {
  position: relative;
  padding: 22px 22px 22px 64px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.deliv-item:hover { border-color: var(--line-strong); background: var(--bg-card-hi); }
.deliv-num {
  position: absolute;
  top: 22px; left: 22px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acc);
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.06);
}
.deliv-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--text-1); }
.deliv-item p { margin: 0; color: var(--text-3); font-size: 13.5px; line-height: 1.55; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
  position: relative;
}
.process-rail {
  position: relative;
  width: 1px;
  background: var(--line);
  justify-self: center;
}
.process-rail::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: var(--rail-progress, 0%);
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
  box-shadow: 0 0 8px var(--acc);
  transition: height .8s var(--ease);
}
.process-step {
  position: relative;
  padding: 0 0 36px 0;
}
.process-step:last-child { padding-bottom: 0; }
.process-num {
  position: absolute;
  left: -45px;
  top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  transition: all .35s var(--ease);
}
.process-step.is-active .process-num {
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
}
.process-step h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.process-step p { margin: 0; color: var(--text-3); font-size: 14px; max-width: 56ch; }
.process-step .tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
  background: rgba(94, 234, 212, 0.07);
  border-radius: 4px;
}

/* ============================================================
   BEFORE/AFTER DRAG
   ============================================================ */
.ba-stage {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  user-select: none;
  cursor: ew-resize;
  height: clamp(360px, 50vh, 480px);
  box-shadow: var(--shadow-card);
}
.ba-side {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}
.ba-side .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.ba-before {
  background: linear-gradient(180deg, rgba(252, 165, 165, 0.04), transparent 60%), var(--bg-card);
}
.ba-before .label { color: #fca5a5; }
.ba-before .label::before { content: "✕"; }
.ba-after {
  clip-path: inset(0 0 0 var(--ba, 50%));
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.06), transparent 60%), var(--bg-card-hi);
}
.ba-after .label { color: var(--acc); }
.ba-after .label::before { content: "✓"; }

.ba-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-2);
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.ba-after .ba-row { color: var(--text-1); }
.ba-row .v { color: var(--text-3); white-space: nowrap; }
.ba-after .ba-row .v { color: var(--acc); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba, 50%);
  width: 1px;
  background: var(--acc);
  box-shadow: 0 0 16px var(--acc);
  transform: translateX(-0.5px);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: var(--ba, 50%);
  width: 56px; height: 56px;
  background: var(--bg-0);
  border: 1px solid var(--acc);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  box-shadow: var(--shadow-glow);
  transition: transform .15s var(--ease);
}
.ba-knob:hover { transform: translate(-50%, -50%) scale(1.06); }
.ba-knob::before, .ba-knob::after {
  content: "";
  width: 6px; height: 10px;
  border-left: 1.5px solid var(--acc);
  border-right: 1.5px solid var(--acc);
}
.ba-helper {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(6, 8, 20, 0.8);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  pointer-events: none;
}

@media (max-width: 600px) {
  .ba-side { padding: 24px 22px; font-size: 12px; }
  .ba-side .label { font-size: 10px; }
}

/* ============================================================
   APPS
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.app-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(94, 234, 212, 0.08), transparent 60%),
    var(--bg-card);
  padding: 22px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  flex: 0 0 auto;
  background: var(--grad-1);
  display: grid;
  place-items: center;
  color: var(--bg-0);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 18px -6px rgba(94, 234, 212, 0.5);
}
.app-icon[data-app="payeek"] { background: linear-gradient(135deg, #5eead4, #38bdf8); }
.app-icon[data-app="db"] { background: linear-gradient(135deg, #f0abfc, #818cf8); }
.app-icon[data-app="nt"] { background: linear-gradient(135deg, #fbbf24, #f97316); }
.app-meta .kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--acc); text-transform: uppercase; }
.app-meta .name { font-weight: 600; font-size: 17px; color: var(--text-1); }
.app-card .desc { color: var(--text-2); font-size: 14px; line-height: 1.55; flex: 1; }
.app-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.app-foot .platform {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.app-foot .arrow {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  transition: all .25s var(--ease);
}
.app-card:hover .app-foot .arrow {
  background: var(--text-1);
  color: var(--bg-0);
  border-color: var(--text-1);
  transform: translateX(2px);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--acc); }
.faq-toggle {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  position: relative;
  transition: transform .3s var(--ease), background .25s var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--text-2);
  transition: opacity .25s var(--ease);
}
.faq-toggle::before { width: 10px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 10px; }
.faq-item.is-open .faq-toggle { background: var(--acc); border-color: var(--acc); transform: rotate(180deg); }
.faq-item.is-open .faq-toggle::before { background: var(--bg-0); }
.faq-item.is-open .faq-toggle::after { opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  transition: max-height .4s var(--ease), padding-bottom .3s var(--ease);
}
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 22px; }
.faq-a-inner { max-width: 70ch; }

/* ============================================================
   TRUST / GUARANTEE
   ============================================================ */
.guarantee-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 36px;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(94, 234, 212, 0.08), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(129, 140, 248, 0.07), transparent 60%),
    var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 60px;
}
.guarantee-card::before {
  content: '"';
  position: absolute;
  top: -40px; left: 16px;
  font-size: 220px;
  font-family: 'Georgia', serif;
  color: rgba(94, 234, 212, 0.08);
  font-weight: 700;
}
.guarantee-q {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-1);
  position: relative;
  margin: 0;
  text-wrap: balance;
  flex: 1;
  min-width: 0;
}
.badge-row { display: flex; flex-direction: column; gap: 10px; flex: 0 0 260px; }
@media (max-width: 768px) {
  .guarantee-card { flex-direction: column; align-items: flex-start; gap: 24px; }
  .guarantee-q { margin: 0; }
  .badge-row { flex-direction: row; flex-wrap: wrap; flex: none; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
}
.badge::before {
  content: "✓";
  color: var(--acc);
  font-weight: 700;
}

/* ============================================================
   CTA BAR (booking)
   ============================================================ */
.cta-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(94, 234, 212, 0.10), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(129, 140, 248, 0.10), transparent 60%),
    var(--bg-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}
@media (max-width: 800px) { .cta-card { grid-template-columns: 1fr; } }
.cta-card h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.cta-card p { color: var(--text-2); margin: 0; max-width: 60ch; }
.cta-bullets { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.cta-bullets li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.cta-bullets li::before {
  content: "→";
  color: var(--acc);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 50px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--text-3); font-size: 14px; max-width: 30ch; line-height: 1.55; }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col a, .foot-col p {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 8px;
  transition: color .15s var(--ease);
}
.foot-col a:hover { color: var(--acc); }
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   BOOKING MODAL
   ============================================================ */
.modal-backdrop-x {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 4, 12, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop-x.is-open { display: flex; }
.modal-x {
  width: min(960px, 100%);
  max-height: min(90vh, 800px);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.modal-head p { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }
.modal-close {
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  font-size: 16px;
  flex: 0 0 auto;
}
.modal-close:hover { color: var(--text-1); border-color: var(--text-2); }
.modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.modal-body iframe {
  width: 100%; height: 600px; border: 0; display: block;
}
.modal-foot {
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.modal-foot a { color: var(--acc); }

/* ============================================================
   APP PAGE: phone mock
   ============================================================ */
.phone-stage {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.phone-glow {
  position: absolute;
  inset: 18% 12%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.18), transparent 70%);
  filter: blur(20px);
}
.phone {
  position: absolute;
  width: 44%;
  aspect-ratio: 9/19;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #0a0d20, #050714);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(94, 234, 212, 0.04);
  overflow: hidden;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-2);
  will-change: transform;
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 14px;
  background: #000;
  border-radius: 999px;
}

.phone-1 { left: 0; top: 22%; transform: rotate(-9deg); animation: float-a 7s ease-in-out infinite; }
.phone-2 { left: 28%; top: 2%; transform: rotate(1deg); animation: float-b 7.5s ease-in-out infinite; z-index: 2; }
.phone-3 { right: 0; top: 22%; transform: rotate(9deg); animation: float-c 8s ease-in-out infinite; }

@keyframes float-a { 0%,100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-12px); } }
@keyframes float-b { 0%,100% { transform: rotate(1deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-16px); } }
@keyframes float-c { 0%,100% { transform: rotate(9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-10px); } }

.phone-screen {
  margin-top: 22px;
  flex: 1;
  border-radius: 16px;
  background: var(--bg-card);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.ph-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.ph-row.hi { background: linear-gradient(90deg, rgba(94, 234, 212, 0.22), rgba(129, 140, 248, 0.18)); color: #fff; }
.ph-row.warn { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.ph-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 4px 8px;
}
.ph-bar i {
  display: block;
  height: 100%;
  background: var(--grad-1);
  width: 0%;
}
.ph-title { font-size: 8px; color: var(--text-3); padding: 0 8px; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; }
.ph-h1 { font-size: 11px; color: #fff; padding: 6px 8px 2px; font-weight: 700; letter-spacing: -0.02em; }
.ph-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 6px auto;
  background: conic-gradient(var(--acc) calc(var(--p, 60) * 1%), rgba(255,255,255,0.06) 0);
  display: grid; place-items: center;
}
.ph-circle::after {
  content: ""; width: 70%; height: 70%; background: var(--bg-card); border-radius: 50%;
}

/* App page hero */
.appero {
  padding: 130px 0 60px;
  display: flex;
  align-items: center;
  min-height: 86vh;
  position: relative;
  overflow: hidden;
}
.appero-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 60px;
  align-items: center;
}
@media (max-width: 1080px) { .appero-grid { grid-template-columns: 1fr; gap: 30px; } }

.appero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  margin-bottom: 22px;
  font-weight: 700;
  font-size: 26px;
  color: var(--bg-0);
  position: relative;
}
.appero-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: all .25s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.feature-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature-card .ic {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acc);
  letter-spacing: 0.1em;
}
.feature-card h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text-1); }
.feature-card p { margin: 0; color: var(--text-3); font-size: 13.5px; line-height: 1.55; }

/* ----- Reveal animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger] > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ----- Sticky mobile CTA ----- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 14px; left: 14px; right: 14px;
  z-index: 30;
}
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 80px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
