/* =====================================================================
   Layer Security Services — Design System
   Dark, premium, navy (#0D1644) + silver (#C6C6C6) + electric azure accent.
   Complements Tailwind (Play CDN). Loaded in <head> so the dark base paints
   immediately (no white flash) before Tailwind hydrates.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand + surfaces */
  --navy-950: #070B22;
  --navy-900: #0A0E2A;
  --navy-800: #0D1644;
  --navy-700: #131C52;
  --navy-600: #1B2668;
  --navy-500: #26326F;

  /* Text */
  --ink: #F5F7FF;
  --body: #C9CEE6;
  --silver: #C6C6C6;
  --silver-dim: #9AA3C0;

  /* Accent */
  --accent: #C6C6C6;
  --accent-2: #D9DEE9;
  --accent-soft: #7BA9FF;
  --accent-grad: linear-gradient(180deg, #F5F7FB 0%, #D2D8E4 55%, #B7BFCE 100%);
  --btn-grad: linear-gradient(135deg, #4F8CFF 0%, #38E1FF 100%);

  /* Feedback */
  --danger: #F87171;
  --success: #34D399;

  /* Lines */
  --border: rgba(198, 198, 198, 0.12);
  --border-strong: rgba(198, 198, 198, 0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.28s;

  --header-h: 82px;
  --radius: 16px;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--navy-900);
  color: var(--body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: rgba(198,202,214, 0.32); color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ------------------------- Typographic scale ------------------------- */
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.32rem); color: var(--silver); line-height: 1.6; }
.muted { color: var(--silver-dim); }
.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num.text-gradient { background-image: var(--btn-grad); }

/* ------------------------------ Layout ------------------------------ */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-sm { padding-block: clamp(44px, 6vw, 72px); }
.divider { height: 1px; background: var(--border); border: 0; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--btn-grad);
  border-radius: 2px;
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
  --btn-py: 0.85rem; --btn-px: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: 12px; border: 1px solid transparent;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background-color var(--dur), border-color var(--dur), color var(--dur);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary {
  background-image: var(--btn-grad);
  color: #06122E;
  box-shadow: 0 8px 24px -10px rgba(198,202,214, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(198,202,214, 0.85); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(198, 198, 198, 0.04);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #4F8CFF; background: rgba(79,140,255, 0.1); transform: translateY(-2px); }
.btn-light { background: var(--ink); color: var(--navy-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(255,255,255,0.4); }
.btn-lg { --btn-py: 1.05rem; --btn-px: 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(198,198,198,0.03);
  font-size: 0.86rem; font-weight: 500; color: var(--silver);
}
.chip svg { width: 1.05em; height: 1.05em; color: #38E1FF; }

/* ------------------------------ Cards ------------------------------ */
.card {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(79,140,255, 0.55);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(79,140,255,0.16) inset;
}
/* Accent wash that fades in on hover */
.card-hover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 0% 0%, rgba(79,140,255,0.14), transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease-out); pointer-events: none;
}
.card-hover:hover::before { opacity: 1; }

/* Icon tile */
.icon-tile {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(198,202,214, 0.12);
  border: 1px solid rgba(198,202,214, 0.25);
  color: var(--accent-2);
  transition: transform 0.4s var(--ease-out), background 0.4s;
}
.icon-tile svg { width: 26px; height: 26px; }
.card-hover:hover .icon-tile { transform: scale(1.08) rotate(-3deg); background: rgba(198,202,214,0.2); }

/* ------------------------------ Header ------------------------------ */
.topbar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--silver-dim);
}
.topbar a:hover { color: var(--accent-soft); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: background var(--dur), backdrop-filter var(--dur), border-color var(--dur), box-shadow var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 42, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 30px -20px rgba(0,0,0,0.9);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand-shield { flex: none; }
.brand-word { flex: none; }
.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand-name { font-family: 'Lexend', sans-serif; font-weight: 700; color: #F2F5FB; line-height: 1; letter-spacing: 0.03em; font-size: 1.5rem; white-space: nowrap; }
.brand-sub { display: block; font-size: 0.72rem; letter-spacing: 0.34em; color: var(--silver); font-weight: 500; margin-top: 4px; }
@media (max-width: 640px) { .brand-shield { height: 46px !important; } .brand-word { height: 42px !important; } }

.nav-link {
  position: relative; font-family: 'Lexend', sans-serif; font-weight: 500;
  font-size: 0.96rem; color: var(--body); padding: 0.4rem 0.1rem;
  transition: color var(--dur);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--btn-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu */
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(198,198,198,0.04); align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; color: var(--ink); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: rgba(7, 11, 34, 0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 20px) clamp(20px,6vw,40px) 40px;
  gap: 0.5rem; transform: translateX(100%); transition: transform 0.4s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a.m-link {
  font-family: 'Lexend', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--ink);
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a.m-link:hover { color: var(--accent-soft); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 70;
  background: var(--btn-grad); box-shadow: 0 0 12px rgba(79,140,255,0.7);
  transition: width 0.1s linear;
}

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 4.5vw, 56px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(198,198,198,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,198,198,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(170,182,205,0.30), transparent 64%); top: -120px; right: -80px; animation: floatY 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(150,166,196,0.20), transparent 64%); bottom: -160px; left: -100px; animation: floatY 18s ease-in-out infinite reverse; }
.hero-glow-line { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(178,189,210,0.09), transparent 72%); }

/* ------------------------------ Stats ------------------------------ */
.stat-num { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat-label { color: var(--silver-dim); font-size: 0.95rem; margin-top: 0.4rem; }

/* --------------------------- Logo marquee --------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--silver-dim); letter-spacing: 0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.6rem; }
.marquee-item svg { width: 1.3em; height: 1.3em; color: var(--silver-dim); }

/* ------------------------- Process / steps ------------------------- */
.step-num {
  font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.1rem;
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent-2); background: rgba(198,202,214,0.12); border: 1px solid rgba(198,202,214,0.28);
}

/* ------------------------- Testimonials ------------------------- */
.slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.slide.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.slider-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--navy-500); border: 0; transition: width 0.3s, background 0.3s; }
.slider-dot.active { width: 28px; background-image: var(--btn-grad); }
.slider-btn { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(198,198,198,0.04); color: var(--ink); display: grid; place-items: center; transition: border-color var(--dur), background var(--dur), transform var(--dur); }
.slider-btn:hover { border-color: #4F8CFF; background: rgba(79,140,255,0.12); }
.slider-btn svg { width: 20px; height: 20px; }

/* ------------------------------ Forms ------------------------------ */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-family: 'Lexend', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--silver); }
.field label .req { color: var(--accent-2); }
.control {
  width: 100%; background: var(--navy-800); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 0.85rem 1rem; color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.control::placeholder { color: #6A7196; }
.control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,202,214,0.16); background: var(--navy-700); }
textarea.control { min-height: 140px; resize: vertical; }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%239AA3C0' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field.invalid .control { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(248,113,113,0.14); }
.error-text { color: var(--danger); font-size: 0.82rem; min-height: 1.1em; display: none; }
.field.invalid .error-text { display: block; }
.form-status { border-radius: 12px; padding: 0.9rem 1.1rem; font-weight: 500; display: none; }
.form-status.success { display: block; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: #A7F3D0; }
.form-status.error { display: block; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.4); color: #FECACA; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--border); color: var(--silver-dim); }
.footer-title { font-family: 'Lexend', sans-serif; font-weight: 600; color: var(--ink); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-link { display: block; padding: 0.35rem 0; color: var(--silver-dim); transition: color var(--dur), transform var(--dur); }
.footer-link:hover { color: var(--accent-soft); transform: translateX(3px); }
.social-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--silver); transition: border-color var(--dur), color var(--dur), background var(--dur); }
.social-btn:hover { border-color: var(--accent); color: var(--accent-soft); background: rgba(198,202,214,0.1); }

/* ------------------------- Section background ------------------------- */
.bg-deep { background: var(--navy-950); }
.bg-panel { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.hairline-top { border-top: 1px solid var(--border); }
.glow-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(198,202,214,0.5), transparent); border: 0; }

/* ------------------------------ Reveal ------------------------------ */
/* Only hide when JS is active; if JS/CSS fails, content stays visible. */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
html.js .reveal[data-delay="1"].is-visible { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"].is-visible { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"].is-visible { transition-delay: 0.24s; }
html.js .reveal[data-delay="4"].is-visible { transition-delay: 0.32s; }
html.js .reveal[data-delay="5"].is-visible { transition-delay: 0.40s; }

/* ------------------------------ Keyframes ------------------------------ */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-40px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulseGlow { 0%,100% { opacity: 0.5; } 50% { opacity: 0.85; } }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
}

/* ------------------------- Reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .orb { animation: none; }
}

/* Print niceties */
@media print { .site-header, .topbar, .scroll-progress, .mobile-menu { display: none !important; } body { background: #fff; color: #000; } }
