/* =====================================================================
   CLOUDFECTION — core stylesheet
   ---------------------------------------------------------------------
   Design system v2 — crimson & gold on warm near-black.
   Editorial serif display (Fraunces) + geometric sans body (Manrope).

   Organisation:
     01. Tokens (CSS variables)
     02. Reset & base
     03. Layout primitives (container, section)
     04. Typography & shared components (eyebrow, buttons, tags)
     05. Navigation
     06. Hero
     07. Approach / stack diagram
     08. Services
     09. Partners
     10. Insights
     11. CTA / contact form
     12. Footer
     13. Threat ticker
     14. Animations & utilities
     15. Responsive
   ===================================================================== */


/* 01. TOKENS ---------------------------------------------------------- */
:root {
  /* Palette — warm near-black base */
  --bg-0:        #0A0708;
  --bg-1:        #120C0F;
  --bg-2:        #1A1216;
  --bg-3:        #241A1F;
  --border:      rgba(247, 242, 238, 0.08);
  --border-2:    rgba(247, 242, 238, 0.14);

  --text-0:      #F7F2EE;   /* warm near-white */
  --text-1:      #B8ADA7;
  --text-2:      #7A706B;
  --text-3:      #4A4240;

  /* Brand — deep crimson */
  --ruby:        #D1294F;
  --ruby-deep:   #9E1B3A;
  --ruby-soft:   rgba(209, 41, 79, 0.14);
  --ruby-glow:   rgba(209, 41, 79, 0.32);

  /* Verified / clean / premium signal — warm gold */
  --gold:        #E8B84C;
  --gold-soft:   rgba(232, 184, 76, 0.14);
  --gold-glow:   rgba(232, 184, 76, 0.25);

  /* Active threat — hot orange (distinct from brand crimson) */
  --alert:       #FF6B3D;
  --alert-soft:  rgba(255, 107, 61, 0.14);

  /* Type */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Spacing / layout */
  --container:   min(1240px, 92vw);
  --radius:      14px;
  --radius-sm:   8px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}


/* 02. RESET & BASE ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 96px;   /* leave room for fixed ticker */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--ruby); color: var(--text-0); }

body::before {
  /* subtle global grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* 03. LAYOUT PRIMITIVES ---------------------------------------------- */
.container { width: var(--container); margin: 0 auto; }

.section {
  position: relative;
  padding: 120px 0;
}
.section + .section { border-top: 1px solid var(--border); }

.section__head { max-width: 820px; margin-bottom: 60px; }
.section__head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; max-width: none;
}

.section__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-0);
  margin: 20px 0 24px;
  font-variation-settings: 'opsz' 96;
}
.section__title .muted {
  color: var(--text-2);
  font-weight: 500;
  font-style: italic;
}

.section__lede {
  font-size: 1.05rem;
  color: var(--text-1);
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}
.section__lede--right { max-width: 420px; text-align: left; }


/* 04. SHARED COMPONENTS --------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ruby);
  padding: 6px 12px;
  border: 1px solid var(--ruby-soft);
  border-radius: 99px;
  background: rgba(209, 41, 79, 0.04);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 10px var(--ruby-glow);
  animation: pulse 2s infinite;
}

/* The signature italic "Prove" word in the hero — and a reusable accent class */
.accent {
  color: var(--ruby);
  font-style: italic;
  font-weight: 500;
}

.text-clean { color: var(--gold); }
.muted { color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 6px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn--small { padding: 9px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--ruby);
  color: var(--text-0);
  box-shadow: 0 0 0 0 var(--ruby-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  background: #DD3258;
  box-shadow: 0 12px 32px -8px var(--ruby-glow);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--text-0);
  border: 1px solid var(--border-2);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ruby);
  color: var(--ruby);
}

/* Tags */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.tag--clean {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(232, 184, 76, 0.3);
}
.tag--alert {
  background: var(--alert-soft);
  color: var(--alert);
  border: 1px solid rgba(255, 107, 61, 0.3);
}

.link-arrow {
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--ruby);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ruby-soft);
  padding-bottom: 4px;
  transition: all 0.2s var(--ease);
}
.link-arrow:hover { border-color: var(--ruby); }


/* 05. NAV ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 7, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 16px 0;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ruby);
}
.logo__mark { width: 28px; height: 28px; }
.logo__word {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: var(--text-0);
}

.nav__links {
  display: flex; gap: 28px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a { color: var(--text-1); }
.nav__links a:hover { color: var(--ruby); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--text-0);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}


/* 06. HERO ----------------------------------------------------------- */
.hero {
  position: relative;
  padding: 80px 0 140px;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(209, 41, 79, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(209, 41, 79, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 40%, transparent 90%);
}
.hero__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 15%, rgba(209, 41, 79, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 90%, rgba(232, 184, 76, 0.06), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-0);
  margin: 24px 0 28px;
  font-variation-settings: 'opsz' 144;
}

.hero__sub {
  font-size: 1.08rem;
  color: var(--text-1);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__proof {
  display: flex; align-items: flex-start;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__proof-item { flex: 1; }
.hero__proof-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--text-0);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
}
.hero__proof-num span {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-left: 8px;
  vertical-align: middle;
}
.hero__proof-lbl {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 8px;
  max-width: 180px;
  line-height: 1.4;
}
.hero__proof-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

/* --- Live panel --- */
.hero__panel { position: relative; }

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(209, 41, 79, 0.05),
    0 0 80px -20px rgba(209, 41, 79, 0.15);
}
.panel__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.panel__dots { display: flex; gap: 6px; }
.panel__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-3);
}
.panel__title {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  flex: 1;
}
.panel__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ruby);
  letter-spacing: 0.15em;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 10px var(--ruby-glow);
  animation: pulse 1.6s infinite;
}

.panel__body { position: relative; padding: 8px; }

.panel__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px;
  border-radius: 8px;
  transition: background 0.3s var(--ease);
}
.panel__row + .panel__row { border-top: 1px solid var(--border); }
.panel__row--alert {
  background: linear-gradient(90deg, rgba(255, 107, 61, 0.06), transparent 80%);
}

.panel__asset { display: flex; align-items: center; gap: 12px; }
.panel__asset-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.85rem;
}
.panel__asset-icon--alert { color: var(--alert); border-color: rgba(255, 107, 61, 0.3); }
.panel__asset-name {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--text-0);
}
.panel__asset-meta {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  margin-top: 2px;
}
.panel__asset-meta--alert { color: var(--alert); }

.panel__scan {
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ruby), transparent);
  box-shadow: 0 0 12px var(--ruby);
  opacity: 0.7;
  animation: scan 3.2s ease-in-out infinite;
  pointer-events: none;
}

.panel__foot {
  display: flex; gap: 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.panel__foot-item {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
}
.panel__foot-item + .panel__foot-item { border-left: 1px solid var(--border); }
.panel__foot-item span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.panel__foot-item strong { color: var(--text-0); font-weight: 500; }


/* 07. APPROACH / STACK ---------------------------------------------- */
.section--gap { background: var(--bg-1); }

.stack {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 10px;
}
.stack__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}
.stack__label-main {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-0);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 24;
}
.stack__label-sub {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.stack__bar {
  height: 54px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.stack__fill {
  height: 100%;
  width: var(--w);
  display: flex; align-items: center;
  padding: 0 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-right: 2px solid var(--text-3);
  position: relative;
  animation: fillIn 1.2s var(--ease) both;
}
.stack__fill span {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text-1);
}
.stack__fill--gap {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 107, 61, 0.08),
    rgba(255, 107, 61, 0.08) 8px,
    rgba(255, 107, 61, 0.15) 8px,
    rgba(255, 107, 61, 0.15) 16px
  );
  border-right-color: var(--alert);
}
.stack__fill--gap span { color: var(--alert); }
.stack__fill--clean {
  background: linear-gradient(90deg, rgba(232, 184, 76, 0.22), rgba(232, 184, 76, 0.06));
  border-right-color: var(--gold);
}
.stack__fill--clean span { color: var(--gold); }


/* 08. SERVICES ------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--ruby), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  border-color: rgba(209, 41, 79, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6),
              0 0 60px -20px rgba(209, 41, 79, 0.2);
}
.card:hover::before { opacity: 1; }

.card__num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ruby);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.card__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--text-0);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-variation-settings: 'opsz' 32;
}

.card__body {
  font-size: 0.96rem;
  color: var(--text-1);
  margin: 0 0 24px;
  line-height: 1.6;
}

.card__list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.card__list li {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text-2);
  padding: 6px 0 6px 22px;
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 1px;
  background: var(--ruby);
}


/* 09. PARTNERS ------------------------------------------------------ */
.section--partners {
  background: var(--bg-1);
  overflow: hidden;
}

.partners {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.partner-cards {
  display: grid; gap: 20px;
}

.partner-card {
  padding: 36px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.partner-card:hover { border-color: var(--border-2); }

.partner-card--featured {
  background:
    linear-gradient(180deg, rgba(209, 41, 79, 0.08), transparent 80%),
    var(--bg-2);
  border-color: rgba(209, 41, 79, 0.3);
}
.partner-card--featured:hover { border-color: rgba(209, 41, 79, 0.5); }

.partner-card__logo {
  color: var(--text-0);
  margin-bottom: 20px;
  height: 36px;
}
.partner-card__logo svg { height: 36px; width: auto; }

.partner-card__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-0);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-variation-settings: 'opsz' 24;
}
.partner-card__body {
  font-size: 0.95rem;
  color: var(--text-1);
  margin: 0 0 20px;
  line-height: 1.6;
}
.partner-card__tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--bg-3);
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.partner-card__tag--featured {
  background: var(--ruby-soft);
  color: var(--ruby);
}


/* 10. INSIGHTS ------------------------------------------------------ */
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.insight {
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  display: flex; flex-direction: column;
  min-height: 280px;
  cursor: pointer;
}
.insight:hover {
  border-color: rgba(209, 41, 79, 0.3);
  transform: translateY(-3px);
}

.insight--feature {
  grid-column: span 2;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(209, 41, 79, 0.08), transparent 60%),
    var(--bg-2);
  border-color: rgba(209, 41, 79, 0.22);
}

.insight__cat {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ruby);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.insight__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.22;
  color: var(--text-0);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 28;
}
.insight--feature .insight__title {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 48;
}

.insight__body {
  font-size: 0.93rem;
  color: var(--text-1);
  margin: 0 0 auto;
  padding-bottom: 20px;
  line-height: 1.6;
}

.insight__meta {
  display: flex; gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}


/* 11. CTA ----------------------------------------------------------- */
.section--cta { background: var(--bg-1); }

.cta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  padding: 60px 56px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(209, 41, 79, 0.12), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
}

.cta__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-0);
  margin: 20px 0 20px;
  font-variation-settings: 'opsz' 72;
}
.cta__body { color: var(--text-1); margin: 0 0 36px; }

.cta__contacts {
  display: grid; gap: 4px;
}
.cta__contact {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  transition: color 0.2s var(--ease);
}
.cta__contact:last-child { border-bottom: 1px solid var(--border); }
a.cta__contact:hover { color: var(--ruby); }

.cta__contact-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
}
.cta__contact-value {
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--text-0);
}

.cta__form {
  display: grid; gap: 16px;
}

.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-0);
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ruby);
  box-shadow: 0 0 0 3px var(--ruby-soft);
}
.field__note {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ruby);
  margin: 4px 0 0;
  min-height: 18px;
}


/* 12. FOOTER -------------------------------------------------------- */
.footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding: 80px 0 60px;
}
.footer__tag {
  color: var(--text-2);
  margin: 20px 0 0;
  max-width: 280px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-1);
  padding: 6px 0;
}
.footer__col a:hover { color: var(--ruby); }

.footer__bar {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer__mono { font-family: var(--f-mono); }


/* 13. THREAT TICKER ------------------------------------------------- */
.ticker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10, 7, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-2);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  transition: transform 0.4s var(--ease);
}
.ticker.is-minimised { transform: translateY(calc(100% - 32px)); }

.ticker__toggle {
  position: absolute;
  top: -20px; right: 20px;
  width: 40px; height: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--text-2);
  display: grid; place-items: center;
  transition: color 0.2s var(--ease);
}
.ticker__toggle:hover { color: var(--ruby); }
.ticker.is-minimised .ticker__toggle svg { transform: rotate(180deg); }

.ticker__row {
  display: flex; align-items: center;
  height: 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.ticker__row:last-child { border-bottom: 0; }

/* Absolute-positioned badge sits ON TOP of the scrolling track.
   Background is double-layered: the translucent tint on top of a solid
   bg-0 underlay, so content scrolling beneath is fully occluded. */
.ticker__badge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px;
  background:
    linear-gradient(var(--alert-soft), var(--alert-soft)),
    var(--bg-0);
  color: var(--alert);
  font-weight: 500;
  letter-spacing: 0.15em;
  border-right: 1px solid rgba(255, 107, 61, 0.2);
}
/* Fade from badge into track so the edge is soft, not hard */
.ticker__badge::after {
  content: "";
  position: absolute;
  left: 100%; top: 0; bottom: 0;
  width: 32px;
  background: linear-gradient(to right, var(--bg-0), transparent);
  pointer-events: none;
}
.ticker__badge--alt {
  background:
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    var(--bg-0);
  color: var(--gold);
  border-right-color: rgba(232, 184, 76, 0.2);
}

.ticker__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 8px rgba(255, 107, 61, 0.6);
  animation: pulse 1.6s infinite;
}
.ticker__dot--alt {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.ticker__track {
  display: flex;
  gap: 48px;
  padding-left: 180px;
  white-space: nowrap;
  animation: marquee 90s linear infinite;
  will-change: transform;
}
.ticker__row--regional .ticker__track { animation-duration: 75s; }

.ticker__item { display: inline-flex; align-items: center; gap: 10px; }
.ticker__item-time {
  color: var(--text-3);
  font-size: 0.72rem;
}
.ticker__item-sev {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.06);
}
.ticker__item-sev--high { color: var(--alert); background: var(--alert-soft); }
.ticker__item-sev--med  { color: var(--gold);  background: var(--gold-soft); }
.ticker__item-sev--low  { color: var(--text-1); background: rgba(255, 255, 255, 0.06); }

.ticker__item-text { color: var(--text-1); }
.ticker__row:hover .ticker__track { animation-play-state: paused; }


/* 14. ANIMATIONS ---------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@keyframes scan {
  0%   { top: 0;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fillIn {
  from { width: 0; }
  to   { width: var(--w); }
}

/* Intersection-observed reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* 15. RESPONSIVE ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .partners    { grid-template-columns: 1fr; gap: 40px; }
  .cta         { grid-template-columns: 1fr; gap: 40px; padding: 40px 28px; }
  .insights    { grid-template-columns: repeat(2, 1fr); }
  .insight--feature { grid-column: span 2; }
  .section__head--split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner .btn { display: none; }

  .hero { padding: 48px 0 80px; }
  .hero__proof { flex-wrap: wrap; gap: 18px; }
  .hero__proof-sep { display: none; }
  .hero__proof-item { min-width: 45%; }

  .cards, .insights { grid-template-columns: 1fr; }
  .insight--feature { grid-column: span 1; }

  .stack__row { grid-template-columns: 1fr; gap: 6px; }
  .stack__bar { height: 44px; }

  .footer__bar-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr 1fr; }

  .ticker__badge { padding: 0 12px; font-size: 0.7rem; }
  .ticker__track { padding-left: 130px; }
  .ticker { font-size: 0.72rem; }

  body { padding-bottom: 120px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.5rem; }
  .cta { padding: 32px 20px; }
}

/* Mobile nav open state */
.nav.is-open .nav__links {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker__track { animation: none; }
}
