:root {
  --navy: #111827;
  --navy-mid: #1A2342;
  --navy-light: #243057;
  --red: #E63030;
  --red-dark: #C42020;
  --white: #FFFFFF;
  --off-white: #F8F9FB;
  --gray-100: #F1F3F7;
  --gray-200: #E2E6EE;
  --gray-400: #9AA0B2;
  --gray-600: #5A6278;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--navy); overflow-x: hidden; }

.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--red); color: white; padding: 12px 24px; border-radius: 0 0 6px 6px;
  font-weight: 700; font-size: 0.9rem; z-index: 200; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 800; font-size: 1.25rem; color: var(--white); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand { color: var(--white); }
.nav-brand span { color: var(--red); }
.nav-logo .tag {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  background: var(--red); color: white; padding: 2px 7px; border-radius: 3px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--red); color: white; padding: 9px 22px; border-radius: 6px;
  font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); }

/* ── HERO ── */
.hero {
  min-height: 100vh; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 5% 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(230,48,48,0.06) 60%, rgba(230,48,48,0.02) 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em;
  color: var(--red); text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--red); }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.04em;
  color: var(--white); max-width: 800px; margin-bottom: 12px;
}
.hero h1 .accent { color: var(--red); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 400;
  color: rgba(255,255,255,0.55); max-width: 580px;
  line-height: 1.6; margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 72px; }
.btn-primary {
  background: var(--red); color: white; padding: 16px 36px;
  border-radius: 6px; font-weight: 800; font-size: 1rem;
  text-decoration: none; display: inline-block; transition: all 0.2s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,48,48,0.4); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8);
  padding: 16px 36px; border-radius: 6px; font-weight: 600; font-size: 1rem;
  text-decoration: none; display: inline-block; transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: white; }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stat .num {
  font-size: 2.5rem; font-weight: 900; color: var(--white);
  letter-spacing: -0.05em; line-height: 1;
}
.hero-stat .num span { color: var(--red); }
.hero-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.4); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; }

/* ── SECTION SHARED ── */
section { padding: 96px 5%; }
.section-tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--red); font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--gray-600); max-width: 560px;
  line-height: 1.65; margin-bottom: 56px;
}

/* ── PROBLEM ── */
.problem { background: var(--off-white); }
.problem .section-title { color: var(--navy); }
.problem-quote {
  background: var(--navy); color: white; padding: 32px 40px;
  border-left: 4px solid var(--red); border-radius: 0 8px 8px 0;
  font-size: 1.2rem; font-style: italic; font-weight: 500;
  line-height: 1.5; max-width: 680px; margin-bottom: 56px;
}
.problem-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.problem-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 32px;
  border-top: 3px solid var(--red);
  transition: box-shadow 0.2s;
}
.problem-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.problem-card .icon { font-size: 1.5rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.problem-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ── PILLARS ── */
.pillars { background: var(--white); }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.pillar {
  padding: 40px 32px; border-radius: 12px;
  background: var(--navy); color: white; position: relative; overflow: hidden;
}
.pillar::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 100px; height: 100px;
  background: rgba(230,48,48,0.08);
  border-radius: 50%; transform: translate(30px, 30px);
}
.pillar .num {
  font-family: var(--mono); font-size: 3.5rem; font-weight: 700;
  color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.pillar h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.pillar p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* ── IMPACT ── */
.impact { background: var(--navy); }
.impact .section-title { color: white; }
.impact .section-subtitle { color: rgba(255,255,255,0.5); }
.impact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 64px; background: rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; }
.impact-stat {
  padding: 48px 40px; background: rgba(255,255,255,0.02); text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
.impact-stat:hover { background: rgba(255,255,255,0.05); }
.impact-stat .big { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -0.05em; margin-bottom: 8px; }
.impact-stat .big .unit { font-size: 0.5em; color: rgba(255,255,255,0.3); }
.impact-stat .title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 12px; }
.impact-stat .desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.55; }
.proof-points {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.proof-point {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 20px; border-radius: 8px;
  font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500;
}
.proof-point::before { content: '\2713'; color: var(--red); font-weight: 800; }

/* ── ARCHITECTURE ── */
.architecture { background: var(--off-white); }
.arch-stack { max-width: 780px; margin: 0 auto; }
.arch-layer {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 28px; margin-bottom: 4px; border-radius: 8px;
  background: white; border: 1px solid var(--gray-200);
  cursor: default; transition: all 0.2s;
  position: relative;
}
.arch-layer:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(230,48,48,0.1); transform: translateX(4px); }
.arch-layer .layer-num {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  color: white; background: var(--navy); width: 32px; height: 32px;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.arch-layer.highlight .layer-num { background: var(--red); }
.arch-layer .layer-name { font-weight: 800; color: var(--navy); min-width: 180px; font-size: 0.95rem; }
.arch-layer .layer-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.45; }
.arch-arrow { text-align: center; color: var(--gray-400); padding: 4px 0; font-size: 0.8rem; font-family: var(--mono); }

/* ── OUT OF BOX ── */
.outofbox { background: white; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  padding: 28px; border-radius: 10px; background: var(--gray-100);
  border: 1px solid var(--gray-200); transition: all 0.2s;
}
.feature-card:hover { border-color: var(--red); background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.feature-card .tag {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em;
  color: var(--red); text-transform: uppercase; font-weight: 700;
  margin-bottom: 10px;
}
.feature-card h4 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }

/* ── SECURITY ── */
.security { background: var(--navy); }
.security .section-title { color: white; }
.security .section-subtitle { color: rgba(255,255,255,0.5); }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.risk-card {
  padding: 28px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.risk-badge {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  font-weight: 700; text-transform: uppercase; margin-bottom: 14px;
}
.risk-badge.critical { background: var(--red); color: white; }
.risk-badge.high { background: rgba(230,48,48,0.25); color: #ff6b6b; }
.risk-badge.blocker { background: #1A1A1A; color: #ff4444; border: 1px solid #ff4444; }
.risk-card h4 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 10px; }
.risk-card p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.cost-banner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: rgba(230,48,48,0.15); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(230,48,48,0.2);
}
.cost-cell { padding: 36px 32px; background: rgba(255,255,255,0.02); text-align: center; }
.cost-cell .val { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; color: var(--red); letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.cost-cell .lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); font-family: var(--mono); }
.cost-cell .src { font-size: 0.75rem; color: rgba(255,255,255,0.25); margin-top: 6px; }

/* ── PRICING ── */
.pricing { background: var(--off-white); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; }
.pricing-card {
  background: white; border: 1.5px solid var(--gray-200);
  border-radius: 14px; padding: 44px 40px; position: relative;
  transition: all 0.25s;
}
.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.pricing-card.popular {
  background: var(--navy); border-color: var(--red);
  box-shadow: 0 8px 32px rgba(230,48,48,0.2);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: white; padding: 4px 16px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.pricing-card .plan { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400); margin-bottom: 12px; font-weight: 600; }
.pricing-card.popular .plan { color: rgba(255,255,255,0.4); }
.pricing-card .price { font-size: 2.8rem; font-weight: 900; color: var(--navy); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.pricing-card.popular .price { color: white; }
.pricing-card .price-note { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 28px; }
.pricing-card.popular .price-note { color: rgba(255,255,255,0.4); }
.pricing-divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.pricing-card.popular .pricing-divider { background: rgba(255,255,255,0.1); }
.pricing-features { list-style: none; }
.pricing-features li {
  padding: 8px 0; font-size: 0.9rem; color: var(--gray-600);
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-card.popular .pricing-features li { color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.06); }
.pricing-features li::before { content: '\2192'; color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-card .btn-plan {
  display: block; text-align: center; text-decoration: none;
  margin-top: 32px; padding: 14px; border-radius: 8px;
  font-weight: 800; font-size: 0.95rem; transition: all 0.2s;
  border: 1.5px solid var(--gray-200); color: var(--navy);
}
.pricing-card .btn-plan:hover { border-color: var(--navy); background: var(--navy); color: white; }
.pricing-card.popular .btn-plan { background: var(--red); border-color: var(--red); color: white; }
.pricing-card.popular .btn-plan:hover { background: var(--red-dark); }

/* ── CTA ── */
.cta-section {
  background: var(--navy); text-align: center; padding: 120px 5%;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(230,48,48,0.08), transparent);
  pointer-events: none;
}
.cta-section .label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 24px;
}
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; color: white;
  letter-spacing: -0.04em; max-width: 700px; margin: 0 auto 16px;
  line-height: 1.05;
}
.cta-section .quote {
  font-style: italic; color: rgba(255,255,255,0.35); font-size: 1rem;
  margin-bottom: 48px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.services-grid { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.service-item {
  padding: 12px 20px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.875rem; font-weight: 500;
}
.service-item::before { content: '\2192 '; color: var(--red); }

/* ── FOOTER ── */
footer {
  background: #0A0F1C; padding: 40px 5%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer .logo { font-weight: 800; color: white; font-size: 1.1rem; }
footer .logo span { color: var(--red); }
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */

/* Safety rule for any future images/media */
img, svg, video { max-width: 100%; height: auto; }

/* Large tablet / small desktop (1024px and below) */
@media (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.82rem; }

  .impact-stats { grid-template-columns: 1fr 1fr; }

  .arch-layer .layer-name { min-width: 140px; }

  .features-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  section { padding: 72px 5%; }
  .hero { padding: 80px 5% 60px; min-height: auto; }
  .hero h1 br { display: none; }
  .hero-sub { margin-bottom: 36px; }
  .hero-actions { margin-bottom: 48px; }
  .hero-stats { gap: 28px; }

  nav .nav-links { display: none; }

  .section-title br { display: none; }
  .cta-section h2 br { display: none; }

  .problem-quote { padding: 24px 28px; font-size: 1.05rem; }

  .impact-stats { grid-template-columns: 1fr; }
  .impact-stat { padding: 36px 28px; }

  .arch-layer { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
  .arch-layer .layer-name { min-width: auto; font-size: 0.9rem; }
  .arch-layer .layer-desc { font-size: 0.82rem; }
  .arch-layer:hover { transform: none; }

  .risk-grid { grid-template-columns: 1fr; }
  .cost-banner { grid-template-columns: 1fr; }
  .cost-cell { padding: 28px 24px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .pricing-card { padding: 36px 28px; }
  .pricing-card .price { font-size: 2.4rem; }
  .pricing-card:hover { transform: none; }

  .cta-section { padding: 80px 5%; }

  .proof-points { gap: 10px; }
  .proof-point { padding: 10px 16px; font-size: 0.82rem; }

  footer { flex-direction: column; text-align: center; gap: 12px; }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  section { padding: 56px 5%; }
  .hero { padding: 72px 5% 48px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; text-align: center; padding: 14px 24px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat .num { font-size: 2rem; }

  .section-subtitle { font-size: 1rem; margin-bottom: 36px; }

  .problem-quote { font-size: 1rem; padding: 20px 20px; }
  .problem-cards { grid-template-columns: 1fr; }

  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { padding: 32px 24px; }

  .features-grid { grid-template-columns: 1fr; }

  .arch-layer .layer-name { min-width: auto; width: 100%; }

  .pricing-card .price { font-size: 2rem; }

  .cta-section { padding: 64px 5%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { width: 100%; text-align: center; }
  .services-grid { flex-direction: column; align-items: stretch; }
  .service-item { text-align: center; }

  .proof-points { flex-direction: column; }
  .proof-point { justify-content: center; }

  .nav-cta { padding: 8px 16px; font-size: 0.8rem; }
}

/* Touch devices — disable hover transforms */
@media (hover: none) {
  .arch-layer:hover { transform: none; box-shadow: none; border-color: var(--gray-200); }
  .pricing-card:hover { transform: none; box-shadow: none; }
  .problem-card:hover { box-shadow: none; }
  .feature-card:hover { border-color: var(--gray-200); background: var(--gray-100); box-shadow: none; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: fadeUp 0.7s ease both; }
.hero-eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.5s; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
