/* ==========================================================================
   SRF CORPORATION — Science · Research · Future
   Dark, luminous, futuristic theme built around the brand mark:
   deep royal blue #1565D8 → light blue #2196F3 → cyan #38BDF8 on near-black.
   ========================================================================== */

/* ---------- Design tokens (dark = default; light via html[data-theme="light"]) ---------- */
:root {
  color-scheme: dark;

  --bg:        #05070D;
  --bg-2:      #0A0F1A;
  --bg-3:      #0D1424;
  --surface:   rgba(148, 178, 255, 0.04);
  --surface-2: rgba(148, 178, 255, 0.07);
  --line:      rgba(148, 178, 255, 0.14);
  --line-soft: rgba(148, 178, 255, 0.08);

  --ink:       #EAF1FF;
  --ink-2:     #C4D2EC;
  --muted:     #93A5C4;

  --blue:      #1565D8;
  --blue-2:    #2196F3;
  --cyan:      #38BDF8;

  --grad:         linear-gradient(100deg, #0D50B5 0%, #1565D8 50%, #1B74D9 100%);
  --grad-soft:    linear-gradient(135deg, rgba(21, 101, 216, 0.55), rgba(56, 189, 248, 0.12));
  --glow-blue:    0 0 24px rgba(33, 150, 243, 0.35);
  --glow-strong:  0 10px 40px rgba(21, 101, 216, 0.45);

  --grad-text: linear-gradient(95deg, #4D9FFF 0%, #38BDF8 60%, #7DD3FC 100%);

  --ambient:
    radial-gradient(900px 520px at 85% -5%,  rgba(21, 101, 216, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(33, 150, 243, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 110% 75%, rgba(56, 189, 248, 0.07), transparent 60%);

  --header-bg:     rgba(5, 7, 13, 0.82);
  --header-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --nav-bg:        rgba(5, 7, 13, 0.96);
  --nav-shadow:    0 30px 50px rgba(0, 0, 0, 0.5);

  --grid-line:   rgba(148, 178, 255, 0.05);
  --chip-bg:     rgba(10, 15, 26, 0.85);
  --chip-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);

  --marquee-bg: rgba(10, 15, 26, 0.6);
  --band-bg: linear-gradient(180deg, transparent, rgba(10, 15, 26, 0.7) 30%, rgba(10, 15, 26, 0.7) 70%, transparent);

  --cta-bg:
    radial-gradient(560px 300px at 12% 0%, rgba(33, 150, 243, 0.35), transparent 60%),
    radial-gradient(480px 320px at 95% 110%, rgba(21, 101, 216, 0.35), transparent 60%),
    linear-gradient(120deg, #0C1830, #0A1226);
  --shadow-cta: 0 30px 70px rgba(3, 8, 20, 0.55), 0 0 60px rgba(21, 101, 216, 0.18);

  --shadow-card:   0 24px 50px rgba(3, 8, 20, 0.6), 0 0 34px rgba(33, 150, 243, 0.18);
  --shadow-card-2: 0 18px 44px rgba(3, 8, 20, 0.5);
  --shadow-form:   0 24px 60px rgba(3, 8, 20, 0.5);

  --input-bg:    rgba(5, 7, 13, 0.6);
  --placeholder: rgba(147, 165, 196, 0.55);

  --footer-bg:  linear-gradient(180deg, rgba(10, 15, 26, 0.5), #04060B);
  --accent-soft: rgba(56, 189, 248, 0.75);

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head:    "Montserrat", system-ui, sans-serif;
  --font-accent:  "Comfortaa", "Inter", sans-serif;

  --radius:    14px;
  --radius-lg: 22px;

  --header-h:  78px;
  --container: 1180px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
  color-scheme: light;

  --bg:        #F4F7FC;
  --bg-2:      #FFFFFF;
  --bg-3:      #EAF1FA;

  --surface:   rgba(21, 101, 216, 0.05);
  --surface-2: rgba(21, 101, 216, 0.09);
  --line:      rgba(13, 38, 76, 0.16);
  --line-soft: rgba(13, 38, 76, 0.09);

  --ink:       #0B1B36;
  --ink-2:     #253B5E;
  --muted:     #5A6E93;

  --blue:      #1565D8;
  --blue-2:    #0F5BC5;   /* darker than dark-mode blue-2: legible on white */
  --cyan:      #0369A1;

  --grad-soft:    linear-gradient(135deg, rgba(21, 101, 216, 0.35), rgba(56, 189, 248, 0.28));
  --glow-blue:    0 0 24px rgba(33, 150, 243, 0.28);
  --glow-strong:  0 10px 40px rgba(21, 101, 216, 0.30);

  --grad-text: linear-gradient(95deg, #0F5BC5 0%, #0369A1 60%, #0E7490 100%);

  --ambient:
    radial-gradient(900px 520px at 85% -5%,  rgba(21, 101, 216, 0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(33, 150, 243, 0.09), transparent 60%),
    radial-gradient(1000px 700px at 110% 75%, rgba(56, 189, 248, 0.12), transparent 60%);

  --header-bg:     rgba(255, 255, 255, 0.85);
  --header-shadow: 0 8px 30px rgba(13, 38, 76, 0.10);
  --nav-bg:        rgba(255, 255, 255, 0.97);
  --nav-shadow:    0 30px 50px rgba(13, 38, 76, 0.18);

  --grid-line:   rgba(21, 101, 216, 0.09);
  --chip-bg:     rgba(255, 255, 255, 0.92);
  --chip-shadow: 0 12px 30px rgba(13, 38, 76, 0.14);

  --marquee-bg: rgba(255, 255, 255, 0.6);
  --band-bg: linear-gradient(180deg, transparent, rgba(224, 235, 250, 0.85) 30%, rgba(224, 235, 250, 0.85) 70%, transparent);

  --cta-bg:
    radial-gradient(560px 300px at 12% 0%, rgba(33, 150, 243, 0.22), transparent 60%),
    radial-gradient(480px 320px at 95% 110%, rgba(21, 101, 216, 0.16), transparent 60%),
    linear-gradient(120deg, #FFFFFF, #E4EEFB);
  --shadow-cta: 0 30px 70px rgba(13, 38, 76, 0.16), 0 0 60px rgba(21, 101, 216, 0.10);

  --shadow-card:   0 24px 50px rgba(13, 38, 76, 0.14), 0 0 34px rgba(33, 150, 243, 0.12);
  --shadow-card-2: 0 18px 44px rgba(13, 38, 76, 0.12);
  --shadow-form:   0 24px 60px rgba(13, 38, 76, 0.12);

  --input-bg:    #F1F5FB;
  --placeholder: rgba(90, 110, 147, 0.55);

  --footer-bg:  linear-gradient(180deg, rgba(224, 235, 250, 0.55), #E8F0FA);
  --accent-soft: #0F5BC5;
}

html[data-theme="light"] ::selection { background: rgba(33, 150, 243, 0.22); color: var(--ink); }
html[data-theme="light"] .form-note.is-success { color: #15803D; }
html[data-theme="light"] .form-note.is-error   { color: #DC2626; }

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

html {
  scroll-padding-top: calc(var(--header-h) + 14px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background-color: var(--bg);
  /* layered ambient glows behind everything */
  background-image: var(--ambient);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--cyan); }

::selection { background: rgba(33, 150, 243, 0.35); color: #fff; }

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

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              border-color 0.25s, background-color 0.25s, color 0.25s;
  overflow: hidden;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 22px rgba(21, 101, 216, 0.35);
}
.btn-primary::after {           /* sheen sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
  color: #fff;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: #0A1428;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(56, 189, 248, 0.4); color: var(--blue); }

.btn-lg    { padding: 16px 34px; font-size: 1rem; border-radius: 12px; }
.btn-sm    { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, height 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 66px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--header-shadow);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.45));
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand:hover { color: var(--ink); }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateX(1px);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Theme toggle (light / dark) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.theme-toggle {
  display: none;                      /* no JS → no toggle, dark stays default */
}
.js .theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s, background-color 0.25s;
}
.js .theme-toggle:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: var(--glow-blue);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle:active svg { transform: rotate(-20deg) scale(0.9); }
.theme-toggle svg { transition: transform 0.3s var(--ease-out); }

/* dark theme shows the sun (switch to light); light theme shows the moon */
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 560px at 62% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(720px 560px at 62% 40%, #000 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.eyebrow-diamond {
  width: 9px;
  height: 9px;
  background: var(--grad);
  transform: rotate(45deg);
  box-shadow: var(--glow-blue);
  flex: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }

/* --- KPI row (stat tiles) --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px 40px;
  margin: 0;
  padding: 22px 26px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: baseline; }
.stat-key {
  grid-row: 1 / span 2;
  width: 3px;
  height: 30px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  align-self: center;
}
.stat-value {                      /* value: strong sans, proportional figures */
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}
.stat-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; }

/* --- Hero visual --- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.emblem-wrap { position: relative; width: min(400px, 76vw); aspect-ratio: 1; }

.emblem {
  position: absolute;
  inset: 18%;
  width: 64%;
  height: 64%;
  z-index: 2;
  filter: drop-shadow(0 0 34px rgba(33, 150, 243, 0.55));
  animation: float 7s ease-in-out infinite;
}

.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; }

.spin-slow { transform-origin: 240px 240px; animation: spin 40s linear infinite; }

.emblem-wrap::before {              /* core glow */
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.28) 0%, transparent 65%);
  filter: blur(10px);
  animation: pulse 5s ease-in-out infinite;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  box-shadow: var(--chip-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.chip-a { top: 16%; right: -6%; animation: float 6s 0.5s ease-in-out infinite; }
.chip-b { bottom: 14%; left: -8%;  animation: float 8s 1.2s ease-in-out infinite; }

/* --- Scroll hint --- */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 14px;
  position: relative;
  transition: border-color 0.3s;
}
.scroll-hint:hover .mouse { border-color: rgba(56, 189, 248, 0.7); }
.wheel {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  position: relative;
  padding: 18px 0;
  border-block: 1px solid var(--line-soft);
  background: var(--marquee-bg);
  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;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-star { color: var(--blue-2); font-size: 0.8rem; }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section { padding: 110px 0; position: relative; }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0 auto; max-width: 60ch; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-panel {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(340px 340px at 70% 25%, rgba(33, 150, 243, 0.16), transparent 65%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-logo {
  width: 52%;
  filter: drop-shadow(0 18px 50px rgba(21, 101, 216, 0.5));
  animation: float 7s ease-in-out infinite;
}

.about-badge {
  position: absolute;
  right: -20px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow-strong);
  max-width: 180px;
}
.about-badge-num { font-family: var(--font-head); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.about-badge-text { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.92; }

.about-chevron {
  position: absolute;
  width: 130%;
  height: 46px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.14), transparent);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}
.ch-1 { top: 12%; left: -15%; transform: rotate(-9deg); }
.ch-2 { bottom: 8%; right: -15%; transform: rotate(-9deg); }

.about-copy .section-title { text-align: left; margin-bottom: 20px; }
.about-copy p { color: var(--muted); }

.check-list {
  list-style: none;
  margin: 28px 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--grad);
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.4);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--band-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 34px 28px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad-soft) border-box;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {              /* cursor-following sheen (JS sets --mx/--my) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--cyan);
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--grad-soft) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 0 18px rgba(33, 150, 243, 0.12);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.service-icon svg { width: 27px; height: 27px; }
.service-card:hover .service-icon {
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: var(--glow-blue);
}

.service-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.service-text { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }

.service-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.service-link span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.service-link:hover { color: var(--cyan); }
.service-link:hover span { transform: translateX(5px); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band {
  position: relative;
  padding: 70px 0;
  background:
    linear-gradient(100deg, rgba(21, 101, 216, 0.16), rgba(56, 189, 248, 0.06) 60%, transparent),
    var(--bg-2);
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
}
.stats-band::before, .stats-band::after {  /* angular accent echoes */
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  transform: rotate(45deg);
}
.stats-band::before { top: -140px; left: -80px; }
.stats-band::after  { bottom: -140px; right: -80px; }

.stats-band-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.band-item { display: grid; justify-items: center; gap: 6px; }
.band-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--ink);
  line-height: 1.1;
}
.band-label { font-size: 0.88rem; color: var(--muted); letter-spacing: 0.04em; }

/* ==========================================================================
   Products & core values (tile grids reuse .sector-tile)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.sector-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.sector-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--surface-2);
}
.sector-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid var(--line-soft);
}
.sector-icon svg { width: 24px; height: 24px; }
.sector-tile h3 { grid-column: 2; font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.sector-tile p  { grid-column: 2; font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   Vision & Mission
   ========================================================================== */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  position: relative;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px 240px at 15% 0%, rgba(33, 150, 243, 0.14), transparent 65%),
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad-soft) border-box;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.vm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.vm-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--cyan);
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--grad-soft) border-box;
  border: 1px solid transparent;
}
.vm-icon svg { width: 27px; height: 27px; }
.vm-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.vm-card p { font-size: 1.02rem; color: var(--ink-2); margin: 0; }

/* ==========================================================================
   Clients (tabs + chip cloud)
   ========================================================================== */
.clients { background: var(--band-bg); }

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.tab-btn:hover { border-color: rgba(56, 189, 248, 0.5); color: var(--ink); transform: translateY(-2px); }
.tab-btn.is-active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(21, 101, 216, 0.4);
}
.tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
}
.tab-btn.is-active .tab-count { background: rgba(255, 255, 255, 0.2); color: #fff; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-in 0.5s var(--ease-out); }
.panel-caption {
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
}
.chip-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 980px;
  margin-inline: auto;
}
.client-chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.client-chip:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: var(--ink);
  transform: translateY(-2px);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { padding: 40px 0 110px; }
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 64px;
  border-radius: 28px;
  background: var(--cta-bg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: var(--shadow-cta);
  overflow: hidden;
}
.cta-inner::after {                  /* angular chevron accent */
  content: "";
  position: absolute;
  top: -30%;
  right: -4%;
  width: 300px;
  height: 160%;
  background: linear-gradient(100deg, transparent, rgba(56, 189, 248, 0.07) 45%, rgba(56, 189, 248, 0.07) 55%, transparent);
  clip-path: polygon(30% 0, 38% 0, 8% 100%, 0 100%);
  pointer-events: none;
}
.cta-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; }
.cta-text { color: var(--ink-2); margin: 0; max-width: 46ch; position: relative; z-index: 1; }
.cta-inner .btn { position: relative; z-index: 1; flex: none; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-info > p { color: var(--muted); max-width: 46ch; }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.info-card:hover { border-color: rgba(56, 189, 248, 0.4); transform: translateY(-3px); }
.info-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(33, 150, 243, 0.1);
}
.info-icon svg { width: 21px; height: 21px; }
.info-card h3 { font-size: 0.92rem; font-weight: 700; margin: 0 0 5px; }
.info-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.info-card a { color: var(--ink-2); }
.info-card a:hover { color: var(--cyan); }

.contact-form {
  padding: 38px 34px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad-soft) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-form);
}
.form-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--placeholder); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
}
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: rgba(248, 113, 113, 0.7); }

.form-note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  min-height: 1.4em;
  color: var(--muted);
}
.form-note.is-success { color: #4ADE80; }
.form-note.is-error   { color: #F87171; }

/* Honeypot (spam trap) — present for bots, out of reach for humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Divider between the form and the WhatsApp channel */
.form-alt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-alt::before,
.form-alt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* WhatsApp lead channel */
.btn-whatsapp {
  margin-top: 12px;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  background: #25D366;
  color: #06130B;
  border-color: #25D366;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--footer-bg);
  padding-top: 74px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-blurb { font-size: 0.9rem; color: var(--muted); max-width: 34ch; }

.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.socials svg { width: 17px; height: 17px; }
.socials a:hover {
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}

.footer-col h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }
.footer-contact li { color: var(--muted); font-size: 0.9rem; }

.footer-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.footer-science { font-family: var(--font-accent); letter-spacing: 0.12em; color: var(--accent-soft); }

/* ==========================================================================
   Reveal-on-scroll (active only when JS is present)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.12); }
}
@keyframes wheel {
  0%   { opacity: 1; transform: translateY(0); }
  70%  { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(0); }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual   { order: -1; margin-top: 10px; }
  .emblem-wrap   { width: min(300px, 60vw); }
  .hero-stats    { grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
  .about-grid    { grid-template-columns: 1fr; gap: 56px; }
  .about-panel   { margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid   { grid-template-columns: repeat(3, 1fr); }
  .vm-grid       { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 22px 24px 26px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--nav-shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-header.is-scrolled .site-nav { top: 66px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { display: block; padding: 12px 14px; font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: var(--surface-2); border-radius: 10px; }
  .nav-cta { margin-top: 10px; justify-content: center; }
}

@media (max-width: 720px) {
  .section        { padding: 80px 0; }
  .hero           { padding-top: calc(var(--header-h) + 16px); min-height: auto; }
  .hero-stats     { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .hero-actions   { margin-bottom: 38px; }
  .scroll-hint    { display: none; }
  .services-grid,
  .products-grid,
  .values-grid   { grid-template-columns: 1fr; }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .check-list     { grid-template-columns: 1fr; }
  .cta-inner      { flex-direction: column; align-items: flex-start; padding: 42px 30px; }
  .info-cards     { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .about-badge    { right: 10px; }
}

/* ==========================================================================
   Reduced motion — disable decoration, keep content
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { transform: none; }
  html { scroll-behavior: auto; }
}
