/* ============================================================
   SECUREVAST — Design System
   Brand: Dark base, green accent (#7FF898 primary, #2ECC6E mid)
   Fonts: CY Grotesk Key (display) → Poppins (body)
   ============================================================ */

/* ── Google Fonts (Poppins only; CY Grotesk via @font-face if available) ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CY Grotesk Key — fallback stack if file not present ── */
@font-face {
  font-family: 'CY Grotesk Key';
  src: local('CY Grotesk Key'), local('CYGroteskKey');
  /* Path: Go up one level, then into 'font' folder */
  src: url('https://securevast.com/assets/font/CyGrotesk-KeyRegular.otf') format('opentype');
  /* font-weight: 400 700; */
  /* font-weight: normal; */
  /* font-style: normal; */
  font-display: swap;
}

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  /* Brand Greens */
  --clr-accent:       #7FF898;   /* highlight green per brand doc */
  --clr-accent-mid:   #2ECC6E;
  --clr-accent-deep:  #1A7A41;
  --clr-accent-dim:   rgba(127,248,152,.12);
  --clr-accent-glow:  rgba(127,248,152,.18);

  /* Dark Canvas */
  --clr-base:         #060C07;
  --clr-surface-1:    #0C1410;
  --clr-surface-2:    #111C14;
  --clr-surface-3:    #172219;
  --clr-surface-4:    #1D2A1F;

  /* Borders */
  --clr-border:       rgba(127,248,152,.10);
  --clr-border-mid:   rgba(127,248,152,.20);
  --clr-border-strong:rgba(127,248,152,.35);

  /* Text */
  --clr-text-primary: #EBF7EE;
  --clr-text-secondary:#8DAE96;
  --clr-text-muted:   #4F6E57;
  --clr-text-dim:     #2E4234;

  /* Typography */
  --font-display: 'CY Grotesk Key', 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;
  --font-mono:    'DM Mono', 'Fira Code', monospace;

  /* Scale */
  --text-xs:   clamp(.6rem,  1vw, .7rem);
  --text-sm:   clamp(.78rem, 1.2vw, .85rem);
  --text-base: clamp(.9rem,  1.4vw, 1rem);
  --text-md:   clamp(1rem,   1.8vw, 1.1rem);
  --text-lg:   clamp(1.15rem,2.2vw, 1.3rem);
  --text-xl:   clamp(1.4rem, 2.8vw, 1.75rem);
  --text-2xl:  clamp(1.8rem, 3.5vw, 2.4rem);
  --text-3xl:  clamp(2.2rem, 4.5vw, 3.2rem);
  --text-hero: clamp(2.6rem, 6vw,  4.2rem);

  /* Spacing */
  --sp-1:  4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Radius */
  --r-sm:  3px;
  --r-md:  6px;
  --r-lg:  12px;
  --r-xl:  20px;
  --r-pill:100px;

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(0,0,0,.4);
  --shadow-md:    0 4px 28px rgba(0,0,0,.5);
  --shadow-green: 0 0 40px rgba(127,248,152,.10);
  --shadow-glow:  0 0 60px rgba(127,248,152,.18);

  /* Transitions */
  --ease:   cubic-bezier(.4,0,.2,1);
  --t-fast: .18s;
  --t-mid:  .28s;
  --t-slow: .5s;

  /* Layout */
  --max-w:   1200px;
  --header-h: 68px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
 * SCROLLBAR FIX
 * Problem: both html and body were independently scrollable, producing two
 * overlapping scrollbars, jagged first-scroll behaviour, and a phantom gap
 * after the footer.
 *
 * Solution: make html the single, authoritative scroll container.
 *   - html:  overflow-x clipped; overflow-y is the ONE scroll root.
 *   - body:  width locked to 100%; overflow on both axes suppressed so it
 *            can never create its own scroll context or exceed the viewport.
 *   - width: 100% (not 100vw) avoids the scrollbar-width gap on desktop and
 *            the over-wide layout on mobile.
 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Single scroll root — X clipped, Y scrolls normally */
  overflow-x: hidden;
  overflow-y: auto;
  /* Guarantee the page always fills the viewport exactly */
  min-height: 100%;
  /* Prevent layout width exceeding viewport on mobile (scale: 1.0) */
  width: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.72;
  background: var(--clr-base);
  color: var(--clr-text-primary);
  -webkit-font-smoothing: antialiased;
  /* Body must never scroll independently — html is the sole scroll container */
  overflow: hidden;
  /* Lock body to the html frame; never wider than the viewport */
  width: 100%;
  min-height: 100%;
  /* Ensure body exactly matches html so there is no gap after the footer */
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── SKIP LINK (accessibility) ────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: var(--sp-4);
  background: var(--clr-accent); color: var(--clr-base);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md);
  font-weight: 600; z-index: 9999; transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ── LAYOUT UTILS ─────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.section        { padding-block: var(--sp-24); }
.section--alt   { background: var(--clr-surface-1); }
.section--alt2  { background: var(--clr-surface-2); }
.section--sm    { padding-block: var(--sp-16); }

/* Brand accent left-edge line — from social media DNA */
.section--accent-edge {
  position: relative;
}
.section--accent-edge::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.heading-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.heading-1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.018em;
}
.heading-2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.heading-3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}
.heading-4 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
}
.body-lg   { font-size: var(--text-md);  line-height: 1.8; }
.body-base { font-size: var(--text-base); line-height: 1.72; }
.body-sm   { font-size: var(--text-sm);   line-height: 1.7; }
.body-xs   { font-size: var(--text-xs);   line-height: 1.6; }
.text-muted    { color: var(--clr-text-secondary); }
.text-dim      { color: var(--clr-text-muted); }
.text-accent   { color: var(--clr-accent); }
.text-mono {
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

/* Eyebrow / tag label */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-accent);
}
.eyebrow::before {
  content: '';
  display: block; width: 18px; height: 1.5px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

/* Accent underline for headings */
.line-accent {
  display: block;
  width: 44px; height: 2.5px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-mid));
  border-radius: 2px;
  margin-block: var(--sp-5) var(--sp-8);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: .04em;
  padding: 13px 26px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-base);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--clr-accent-mid);
  box-shadow: 0 0 32px rgba(127,248,152,.3);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-border-mid);
}
.btn--outline:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-dim);
  box-shadow: var(--shadow-green);
}
.btn--ghost {
  background: transparent;
  color: var(--clr-text-secondary);
  border: 1.5px solid var(--clr-border);
}
.btn--ghost:hover {
  color: var(--clr-text-primary);
  border-color: var(--clr-border-mid);
}
.btn--sm { padding: 9px 18px; font-size: var(--text-xs); }
.btn--lg { padding: 16px 34px; font-size: var(--text-md); }
.btn--full { width: 100%; }

.btn .btn__icon { font-size: .9em; transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--clr-accent), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.card:hover {
  border-color: var(--clr-border-mid);
  box-shadow: var(--shadow-green);
  transform: translateY(-3px);
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--clr-border-mid);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  font-size: 1.1rem;
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}

/* ── GLASS PANEL ──────────────────────────────────────────── */
.glass {
  background: rgba(127,248,152,.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 100%;
  /* overflow-x: hidden removed — was creating a local scroll context and
     an intermittent inner scrollbar on some sections */
}

/* Constrain page-hero content width without creating a scroll context.
   Using max-width instead of overflow-x:hidden avoids a local scrollbar. */
.page-hero,
.page-hero .container,
.company-overview-grid {
  max-width: 100%;
}

/* ── GRID HELPERS ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ── REVEAL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal.reveal--visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }
.reveal--delay-5 { transition-delay: .5s; }
.reveal--left  { transform: translateX(-24px); }
.reveal--right { transform: translateX( 24px); }
.reveal--left.reveal--visible,
.reveal--right.reveal--visible { transform: translateX(0); }

/* ── BRAND BG ELEMENTS ────────────────────────────────────── */
/* Subtle grid lines — brand social DNA */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--clr-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--clr-border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .45;
}

/* Radial glow spot */
.bg-glow {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,248,152,.07) 0%, transparent 70%);
}

/* S-watermark (brand peculiarity) */
.bg-s-mark {
  position: absolute; pointer-events: none; z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(180px, 28vw, 340px);
  font-weight: 800;
  color: rgba(127,248,152,.025);
  user-select: none;
  line-height: 1;
  letter-spacing: -.05em;
}

/* Left-edge accent line (brand peculiarity) */
.brand-edge {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
    var(--clr-accent) 0%,
    var(--clr-accent-mid) 40%,
    transparent 100%);
  pointer-events: none;
}

/* ── PRELOADER ────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--clr-base);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-8);
  transition: opacity .7s var(--ease), visibility .7s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__logo { animation: preloaderPulse .9s ease infinite alternate; }
@keyframes preloaderPulse {
  from { filter: drop-shadow(0 0 8px rgba(127,248,152,.2)); }
  to   { filter: drop-shadow(0 0 28px rgba(127,248,152,.5)); }
}
.preloader__layers {
  display: flex; flex-direction: column;
  gap: 7px; align-items: center;
}
.preloader__layer {
  height: 2.5px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-mid));
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  animation: layerSlide .5s var(--ease) forwards;
}
.preloader__layer:nth-child(1) { width: 110px; animation-delay: .15s; }
.preloader__layer:nth-child(2) { width: 84px;  animation-delay: .28s; opacity:.7; }
.preloader__layer:nth-child(3) { width: 58px;  animation-delay: .41s; opacity:.45;}
.preloader__layer:nth-child(4) { width: 34px;  animation-delay: .54s; opacity:.22;}
@keyframes layerSlide {
  to { transform: scaleX(1); opacity: 1; }
}
.preloader__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--clr-text-primary);
  opacity: 0;
  animation: fadeUp .5s .75s forwards;
}
.preloader__wordmark span { color: var(--clr-accent); }
.preloader__tagline {
  font-size: var(--text-xs);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  opacity: 0;
  animation: fadeUp .4s .95s forwards;
}

/* ── HEADER ───────────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  /* Use max-width:100% instead of width:100% + box-sizing so the header
     never bleeds past the viewport edge on any scale */
  width: 100%; max-width: 100%; box-sizing: border-box;
  z-index: 500;
  height: var(--header-h);
  background: rgba(6,12,7,.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--t-mid), border-color var(--t-mid);
  /* Prevent header content from ever causing a local horizontal scroll */
  overflow: hidden;
}
#header.scrolled {
  background: rgba(6,12,7,.96);
  border-bottom-color: var(--clr-border-mid);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-top: 15px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo__mark { width: 32px; height: auto; }
.logo__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--clr-text-primary);
  line-height: 1;
}
.logo__wordmark span { color: var(--clr-accent); }

/* Desktop nav */
.nav {
  display: flex; align-items: center; gap: var(--sp-8);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--clr-text-secondary);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--clr-accent);
  transition: width var(--t-mid) var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--clr-text-primary); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: var(--sp-2); cursor: pointer;
}
.hamburger__bar {
  display: block; width: 22px; height: 2px;
  background: var(--clr-text-primary);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
#mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: rgba(6,12,7,.97);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-6) clamp(20px,4vw,40px) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-5);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
  z-index: 490;
  /* Contain nav content — no local scroll */
  overflow: hidden;
}
#mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav__link {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--clr-text-secondary);
  transition: color var(--t-fast);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
}
.mobile-nav__link:hover, .mobile-nav__link.is-active {
  color: var(--clr-accent);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg-glow-1 {
  width: 800px; height: 700px;
  top: -200px; right: -200px;
}
.hero__bg-glow-2 {
  width: 600px; height: 600px;
  bottom: -100px; left: -150px;
  opacity: .5;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding-block: var(--sp-24);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--clr-accent-dim);
  border: 1px solid var(--clr-border-mid);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .18em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-8);
  opacity: 0;
  animation: fadeUp .5s .2s forwards;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clr-accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(127,248,152,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(127,248,152,0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  opacity: 0;
  animation: fadeUp .6s .35s forwards;
  margin-bottom: var(--sp-6);
}
.hero__title em {
  font-style: normal;
  color: var(--clr-accent);
  display: block;
}
.hero__sub {
  font-size: var(--text-md);
  color: var(--clr-text-secondary);
  max-width: 540px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp .5s .5s forwards;
  margin-bottom: var(--sp-10);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  opacity: 0;
  animation: fadeUp .5s .68s forwards;
}
.hero__scroll {
  position: absolute; bottom: var(--sp-10);
  left: clamp(20px,4vw,40px);
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .18em;
  color: var(--clr-text-dim);
  writing-mode: initial;
  opacity: 0;
  animation: fadeUp .4s 1.1s forwards;
}
.hero__scroll-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
}

/* ── INTRO STRIP ──────────────────────────────────────────── */
.intro-strip {
  background: var(--clr-surface-1);
  border-block: 1px solid var(--clr-border);
  padding-block: var(--sp-16);
  position: relative;
}
.intro-strip__text {
  font-size: var(--text-md);
  color: var(--clr-text-secondary);
  line-height: 1.85;
  max-width: 860px;
}
.intro-strip__text strong { color: var(--clr-text-primary); font-weight: 500; }

/* ── SERVICE PREVIEW ──────────────────────────────────────── */
.svc-card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: all var(--t-mid) var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-text-dim);
  letter-spacing: .15em;
  margin-bottom: var(--sp-4);
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.svc-card:hover {
  border-color: var(--clr-border-mid);
  box-shadow: var(--shadow-green);
  transform: translateY(-4px);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card h3 { font-size: var(--text-md); font-weight: 600; margin-bottom: var(--sp-3); }
.svc-card p  { font-size: var(--text-sm); color: var(--clr-text-secondary); }

/* ── VALUE PROPS ──────────────────────────────────────────── */
.vp-item {
  display: flex; gap: var(--sp-5);
  align-items: flex-start;
  padding: var(--sp-6);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid);
}
.vp-item:hover { border-color: var(--clr-border-mid); }
.vp-item__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--clr-accent-dim);
  border: 1px solid var(--clr-border-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-accent);
}
.vp-item h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--sp-2); }
.vp-item p  { font-size: var(--text-sm); color: var(--clr-text-secondary); }

/* ── STAT BAR ─────────────────────────────────────────────── */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--clr-border); /* gap color */
  gap: 1px;
}
.stat-bar__item {
  background: var(--clr-surface-2);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}
.stat-bar__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-bar__label {
  font-size: var(--text-xs);
  color: var(--clr-text-secondary);
  letter-spacing: .06em;
}

/* ── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border-mid);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p {
  color: var(--clr-text-secondary);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}
.cta-band__actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.page-hero {
  padding-block: var(--sp-20) var(--sp-16);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1   { max-width: 700px; margin-block: var(--sp-4) var(--sp-6); }
.page-hero p    { max-width: 600px; color: var(--clr-text-secondary); font-size: var(--text-md); }

.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mission-block__cell {
  background: var(--clr-surface-2);
  padding: var(--sp-10);
}
.mission-block__cell h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
}
.mission-block__cell p { font-size: var(--text-sm); color: var(--clr-text-secondary); line-height: 1.8; }

.philo-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-16);
}
.philo-sticky { position: sticky; top: calc(var(--header-h) + var(--sp-8)); }
.philo-item {
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--sp-6);
}
.philo-item:last-child { border-bottom: none; }
.philo-item h4 {
  display: flex; align-items: center; gap: var(--sp-3);
  font-weight: 500; font-size: var(--text-base);
  margin-bottom: var(--sp-2);
}
.philo-item h4::before {
  content: '';
  width: 7px; height: 7px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--clr-accent);
  background: var(--clr-accent-dim);
}
.philo-item p { font-size: var(--text-sm); color: var(--clr-text-secondary); line-height: 1.8; }

.team-card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color var(--t-mid);
}
.team-card:hover { border-color: var(--clr-border-mid); }
.team-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent-deep), var(--clr-surface-4));
  border: 1.5px solid var(--clr-border-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-accent); font-size: 1.2rem;
  margin-bottom: var(--sp-5);
}
.team-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
}

/* ── SERVICES PAGE ────────────────────────────────────────── */
.pillar {
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--clr-border);
}
.pillar:last-child { border-bottom: none; }
.pillar__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  margin-bottom: var(--sp-10);
}
.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--clr-border);
  margin-bottom: calc(-1 * var(--sp-3));
}
.svc-item {
  display: flex; gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5) var(--sp-6);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  transition: all var(--t-mid) var(--ease);
}
.svc-item:hover {
  border-color: var(--clr-border-mid);
  background: var(--clr-surface-3);
}
.svc-item__icon {
  flex-shrink: 0;
  color: var(--clr-accent); font-size: .95rem;
  margin-top: 2px;
}
.svc-item h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 3px; }
.svc-item p  { font-size: var(--text-xs); color: var(--clr-text-secondary); line-height: 1.7; }

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-info__item {
  display: flex; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.contact-info__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border-mid);
  background: var(--clr-accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-accent); font-size: .85rem;
}
.contact-info__label {
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-1);
}
.contact-info__value {
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
}
.contact-info__value a { color: var(--clr-accent); }

.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-8); }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-secondary);
  font-size: .9rem;
  transition: all var(--t-fast);
}
.social-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-dim);
}
.social-btn:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; }

/* Form */
.form-panel {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { margin-bottom: var(--sp-5); }
.field__label {
  display: flex; align-items: center; gap: var(--sp-1);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-2);
}
.field__label .req { color: var(--clr-accent); }
.field__input,
.field__textarea,
.field__select {
  width: 100%;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: var(--text-sm);
  color: var(--clr-text-primary);
  outline: none;
  appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__input::placeholder, .field__textarea::placeholder {
  color: var(--clr-text-dim);
}
.field__input:focus, .field__textarea:focus, .field__select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(127,248,152,.09);
}
.field__input.is-error, .field__select.is-error, .field__textarea.is-error {
  border-color: #FF5B5B;
}
.field__error {
  font-size: var(--text-xs);
  color: #FF7070;
  margin-top: var(--sp-1);
  display: none;
}
.field__error.is-visible { display: block; }
.field__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237FF898' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field__textarea { min-height: 120px; resize: vertical; }
.field__select option { background: var(--clr-surface-3); }

.consent-note {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}
.consent-note a { color: var(--clr-accent); }

/* Form states */
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-10) 0;
}
.form-success__icon { font-size: 2.8rem; color: var(--clr-accent); margin-bottom: var(--sp-4); }
.form-success h3 { margin-bottom: var(--sp-2); }
.form-success p { font-size: var(--text-sm); color: var(--clr-text-secondary); }

/* FAQs */
.faq-item { border-bottom: 1px solid var(--clr-border); }
.faq-trigger {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: none;
  padding-block: var(--sp-5);
  font-size: var(--text-base); font-weight: 500;
  color: var(--clr-text-primary);
  text-align: left; cursor: pointer;
  gap: var(--sp-4);
}
.faq-trigger:focus-visible { outline: 2px solid var(--clr-accent); border-radius: var(--r-sm); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--clr-border-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-accent); font-size: .7rem;
  transition: transform var(--t-mid) var(--ease), background var(--t-mid);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--clr-accent-dim);
}
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease);
}
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body__inner {
  overflow: hidden;
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  line-height: 1.8;
}
.faq-body__inner p { padding-bottom: var(--sp-5); }

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  background: var(--clr-surface-1);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--sp-16) var(--sp-8);
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.9fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  line-height: 1.75;
  margin-block: var(--sp-4) var(--sp-6);
  max-width: 260px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-5);
}
.footer__links li { margin-bottom: var(--sp-3); }
.footer__links a {
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--clr-accent); }

/* Newsletter */
.nl-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.nl-form__desc { font-size: var(--text-sm); color: var(--clr-text-secondary); }
.nl-form__row { display: flex; gap: var(--sp-2); }
.nl-form__input {
  flex: 1; min-width: 0;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: var(--text-sm);
  color: var(--clr-text-primary);
  outline: none;
  transition: border-color var(--t-fast);
}
.nl-form__input:focus { border-color: var(--clr-accent); }
.nl-form__input::placeholder { color: var(--clr-text-dim); }
.nl-submit {
  flex-shrink: 0;
  background: var(--clr-accent);
  color: var(--clr-base);
  border: none;
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background var(--t-fast);
  white-space: nowrap;
}
.nl-submit:hover { background: var(--clr-accent-mid); }
.nl-success {
  display: none;
  font-size: var(--text-xs);
  color: var(--clr-accent);
  align-items: center; gap: var(--sp-2);
}
.nl-success.is-visible { display: flex; }
.nl-privacy {
  font-size: var(--text-xs);
  color: var(--clr-text-dim);
}

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-border);
}
.footer__copy { font-size: var(--text-xs); color: var(--clr-text-dim); }
.footer__legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal a {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  transition: color var(--t-fast);
}
.footer__legal a:hover { color: var(--clr-accent); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: clamp(340px, calc(100% - 40px), 860px);
  max-width: 96vw;
  background: rgba(6, 12, 7, 0.98);
  border: 1px solid rgba(127, 248, 152, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  z-index: 9998;
  opacity: 1;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.cookie-banner__copy {
  color: var(--clr-text-primary);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex: 1 1 320px;
  min-width: 0;
}

.cookie-banner--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.cookie-banner__copy {
  color: var(--clr-text-primary);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex: 1 1 auto;
}

.cookie-banner__copy p {
  margin: 0;
}

.cookie-banner__copy a {
  color: var(--clr-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
}

.cookie-banner__accept,
.cookie-banner__reject {
  border-radius: var(--r-pill);
}

.cookie-banner__reject {
  color: var(--clr-text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 700px) {
  .cookie-banner {
    padding: var(--sp-4);
    bottom: 14px;
  }
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
    width: 100%;
  }
}

/* ── PAGE SYSTEM ──────────────────────────────────────────── */
.page { display: none; }
.page.is-active { display: block; }

/* ── KEYFRAMES ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
}

.company-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .philo-layout { grid-template-columns: 1fr; }
  .company-overview-grid { grid-template-columns: 1fr; }
  .philo-sticky { position: static; }
  .mission-block { grid-template-columns: 1fr; }
  .pillar__header { grid-template-columns: 1fr; gap: var(--sp-6); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .glass.glass--mobile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); width: 100%; max-width: 100%; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: var(--sp-10) var(--sp-6); }
  .hero__title { letter-spacing: -.02em; }
  .section { padding-block: var(--sp-16); }
}

@media (max-width: 400px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ── SCROLLBAR NORMALISATION ──────────────────────────────────
 *
 * Goal: one scrollbar, smooth UX, no phantom space after footer,
 *       always scale:1.0 on mobile.
 *
 * All rules here are additive — they do not change any visual
 * styling, layout, spacing, or component appearance.
 * ─────────────────────────────────────────────────────────── */

/*
 * 1. SECTION-LEVEL SCROLL CONTEXT ELIMINATION
 *    Sections that previously had overflow:hidden on X would
 *    intermittently generate their own inner scrollbar when content
 *    was clipped. Replace with clip — which prevents scroll context
 *    creation while still clipping overflow visually.
 *    (overflow:clip is supported in all modern browsers.)
 */
.hero,
.intro-strip,
.page-hero,
.cta-band,
#footer {
  overflow-x: clip;
}

/*
 * 2. MAIN CONTENT WRAPPER
 *    <main> must never scroll independently. It is a layout container,
 *    not a scroll root.
 */
#main-content {
  overflow: visible;
  width: 100%;
}

/*
 * 3. MOBILE FULL-WIDTH GUARANTEE (scale: 1.0)
 *    Ensures the layout never causes the viewport to scale or zoom
 *    on mobile devices, and the page always fills exactly 100% width.
 *    The meta viewport tag handles the initial scale; these rules
 *    prevent CSS from breaking it at runtime.
 */
@media (max-width: 900px) {
  html, body {
    width: 100%;
    max-width: 100%;
  }

  /* Ensure no child element can force the page wider than the viewport */
  #main-content,
  #header,
  #mobile-nav,
  #footer {
    max-width: 100vw;
    overflow-x: clip;
  }
}

/*
 * 4. FOOTER TRAILING SPACE ELIMINATION
 *    The phantom space after the footer was caused by body's scroll
 *    height exceeding html's visible area. With body now set to
 *    overflow:hidden and html as the sole scroll root, this is
 *    resolved. This rule is a belt-and-suspenders safeguard.
 */
#footer {
  /* Ensure footer is always the last painted element with no trailing gap */
  margin-bottom: 0;
  padding-bottom: var(--sp-8); /* preserve original bottom padding */
}

/*
 * 5. PRELOADER SCROLL LOCK
 *    While the preloader is visible, the page should not be scrollable.
 *    JS adds/removes a class on <html>; this rule acts on that class.
 *    If JS doesn't add this class, the rule is inert.
 */
html.preloader-active {
  overflow: hidden;
}
