/* ============================================================
   NONLIMI INDUSTRIES — Clean Frost Theme
   Complete CSS — all selectors match flat HTML class naming
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:            #FFFFFF;
  --bg-alt:        #F8F9FB;
  --surface:       #F1F3F7;
  --surface-2:     #E6E9EF;
  --accent:        #0052FF;
  --accent-dim:    rgba(0, 82, 255, 0.06);
  --accent-glow:   rgba(0, 82, 255, 0.12);
  --accent-2:      #7B61FF;
  --red:           #E5484D;
  --text:          #0F1729;
  --text-2:        #5B6478;
  --text-3:        #98A1B3;
  --border:        rgba(15, 23, 41, 0.06);
  --border-accent: rgba(0, 82, 255, 0.12);
  --grad:          linear-gradient(135deg, #0052FF 0%, #7B61FF 100%);
  --nav-h:         72px;
  --font-display:  'Chakra Petch', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --font-body:     'Plus Jakarta Sans', sans-serif;

  /* Spacing & radius */
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 3px rgba(15,23,41,0.06), 0 1px 2px rgba(15,23,41,0.04);
  --shadow:        0 4px 16px rgba(15,23,41,0.08), 0 1px 4px rgba(15,23,41,0.06);
  --shadow-lg:     0 12px 40px rgba(15,23,41,0.10), 0 4px 16px rgba(15,23,41,0.06);
  --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Scroll-reveal ─────────────────────────────────────────── */
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  /* Fallback: if JS hasn't added .visible after 1.5s, show anyway */
  animation: revealFallback 0.65s 1.5s both;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(0, 82, 255, 0.25);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--surface-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* ── Section shared headings ──────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Section curve dividers ───────────────────────────────── */
.section-curve {
  display: block;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.section-curve svg {
  display: block;
  width: 100%;
  height: 56px;
}

.section-curve--white-to-gray {
  background: var(--bg);
}

.section-curve--gray-to-white {
  background: var(--bg-alt);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background var(--transition), border-color var(--transition),
              backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 32px;
  transition: background var(--transition), box-shadow var(--transition);
}

/* Scrolled state — glassmorphism */
.nav-inner.scrolled,
#main-nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-accent);
  box-shadow: 0 2px 24px rgba(15, 23, 41, 0.06);
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--accent);
}

.logo-bracket {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-links li a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links li a:hover {
  color: var(--accent);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* CTA button in nav */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.22);
}

.btn-nav:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.32);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-toggle:hover {
  background: var(--surface);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-2);
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 20px !important;
  background: var(--grad) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.22);
}

.mobile-cta:hover {
  opacity: 0.88;
  color: #fff !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--nav-h);
}

/* Canvas background */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Gradient blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.12) 0%, transparent 70%);
  top: -120px;
  left: -100px;
  animation: blobFloat1 12s ease-in-out infinite;
}

.hero-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.10) 0%, transparent 70%);
  bottom: 80px;
  right: -80px;
  animation: blobFloat2 15s ease-in-out infinite;
}

.hero-blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.07) 0%, transparent 70%);
  top: 40%;
  left: 55%;
  animation: blobFloat3 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-30px, -30px) scale(1.08); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -20px); }
}

/* Reticle corner decorations */
.reticle {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

.reticle::before,
.reticle::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.reticle::before {
  width: 100%;
  height: 1.5px;
}

.reticle::after {
  width: 1.5px;
  height: 100%;
}

.reticle-tl { top: 88px; left: 40px; }
.reticle-tl::before { top: 0; left: 0; }
.reticle-tl::after  { top: 0; left: 0; }

.reticle-tr { top: 88px; right: 40px; transform: scaleX(-1); }
.reticle-tr::before { top: 0; left: 0; }
.reticle-tr::after  { top: 0; right: 0; }

.reticle-bl { bottom: 40px; left: 40px; transform: scaleY(-1); }
.reticle-bl::before { bottom: 0; left: 0; }
.reticle-bl::after  { bottom: 0; left: 0; }

.reticle-br { bottom: 40px; right: 40px; transform: scale(-1); }
.reticle-br::before { bottom: 0; right: 0; }
.reticle-br::after  { bottom: 0; right: 0; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Hero label */
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition-delay: 0.1s;
}

.label-prefix {
  color: var(--accent);
  font-weight: 600;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  animation: cursorBlink 1s step-end infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hero headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  transition-delay: 0.15s;
}

/* Animated headline words */
.headline-word {
  display: inline-block;
  animation: wordReveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.3s);
}

/* Prevent wordReveal opacity from killing gradient-clipped text */
.headline-accent .headline-word {
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(20px) skewY(1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

/* Gradient shimmer accent text */
.headline-accent {
  display: inline;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  background-size: 200% auto;
  animation: shimmerShift 4s linear infinite;
}

.headline-accent[data-shimmer] {
  background: linear-gradient(
    90deg,
    #0052FF 0%,
    #7B61FF 25%,
    #0052FF 50%,
    #7B61FF 75%,
    #0052FF 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerShift 5s linear infinite;
}

@keyframes shimmerShift {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Hero subtext */
.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
  transition-delay: 0.2s;
}

.br-desktop {
  display: block;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
  transition-delay: 0.28s;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition-delay: 0.36s;
}

.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
}

.hstat-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.hstat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}

.hstat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  font-weight: 600;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ============================================================
   PLATFORM SECTION
   ============================================================ */
.section-platform {
  background: var(--bg-alt);
  padding: 100px 0;
}

/* Stack layers */
.stack-layers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stack-layer {
  background: var(--bg);
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
}

.stack-layer:last-child {
  border-bottom: none;
}

.stack-layer:hover {
  background: var(--bg-alt);
  z-index: 1;
}

/* Layer-specific accent borders */
.layer-1 {
  border-left: 3px solid var(--text-3);
}

.layer-2 {
  border-left: 3px solid var(--accent);
}

.layer-3 {
  border-left: 3px solid var(--red);
}

.layer-4 {
  border-left: 3px solid var(--accent-2);
}

.layer-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.layer-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Layer icons */
.layer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.layer-icon svg {
  width: 20px;
  height: 20px;
}

.layer-icon-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

.layer-icon-red {
  background: rgba(229, 72, 77, 0.06);
  color: var(--red);
  border-color: rgba(229, 72, 77, 0.12);
}

.layer-content {
  flex: 1;
  min-width: 0;
}

.layer-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
}

.layer-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Layer tags */
.layer-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid transparent;
}

.tag-free {
  background: rgba(15, 23, 41, 0.04);
  color: var(--text-3);
  border-color: var(--border);
}

.tag-cloud {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

.tag-enterprise {
  background: rgba(229, 72, 77, 0.06);
  color: var(--red);
  border-color: rgba(229, 72, 77, 0.12);
}

.tag-market {
  background: rgba(123, 97, 255, 0.07);
  color: var(--accent-2);
  border-color: rgba(123, 97, 255, 0.14);
}

/* ============================================================
   CAPABILITIES SECTION
   ============================================================ */
.section-capabilities {
  background: var(--bg);
  padding: 100px 0;
}

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

.cap-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cap-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow), 0 0 0 0 rgba(0, 82, 255, 0);
  transform: translateY(-3px);
}

.cap-card:hover .cap-glow {
  opacity: 1;
}

.cap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 16px;
  border: 1px solid var(--border-accent);
  transition: background var(--transition);
}

.cap-icon svg {
  width: 22px;
  height: 22px;
}

.cap-card:hover .cap-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cap-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.cap-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cap-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.cap-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ============================================================
   COMPARISON SECTION
   ============================================================ */
.section-comparison {
  background: var(--bg-alt);
  padding: 100px 0;
}

.comp-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.comp-table {
  width: 100%;
  background: var(--bg);
}

/* Header row */
.comp-header {
  display: grid;
  grid-template-columns: 2fr 3fr 3fr;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.comp-feature-col,
.comp-nlm-col,
.comp-legacy-col {
  padding: 18px 24px;
  display: flex;
  align-items: center;
}

.comp-nlm-col {
  border-left: 1px solid var(--border);
  background: rgba(0, 82, 255, 0.02);
}

.comp-legacy-col {
  border-left: 1px solid var(--border);
}

.comp-feature-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* Column badges */
.comp-col-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-nlm {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.2);
}

.badge-nlm .badge-bracket {
  opacity: 0.7;
  font-family: var(--font-mono);
  font-weight: 400;
}

.badge-legacy {
  background: var(--surface-2);
  color: var(--text-3);
}

/* Comparison rows */
.comp-row {
  display: grid;
  grid-template-columns: 2fr 3fr 3fr;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.comp-row:nth-child(odd) {
  background: var(--bg);
}

.comp-row:nth-child(even) {
  background: rgba(248, 249, 251, 0.5);
}

.comp-row:hover {
  background: var(--accent-dim);
}

.comp-row-last {
  border-bottom: none;
}

.comp-feat-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

/* Check and X icons */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(0, 82, 255, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 8px;
}

.x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(15, 23, 41, 0.04);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 8px;
}

.comp-val {
  font-size: 13px;
  font-weight: 500;
}

.comp-val-good {
  color: var(--text);
}

.comp-val-bad {
  color: var(--text-3);
}

/* Comparison footer */
.comp-footer {
  text-align: center;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.comp-footer-text {
  font-size: 16px;
  color: var(--text-2);
}

/* ============================================================
   USE CASES SECTION
   ============================================================ */
.section-usecases {
  background: var(--bg);
  padding: 100px 0;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.usecase-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.usecase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
}

.usecase-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.usecase-card:hover::before {
  opacity: 1;
}

.usecase-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.usecase-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.usecase-icon svg {
  width: 36px;
  height: 36px;
}

.usecase-card:hover .usecase-icon {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

.usecase-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.25;
}

.usecase-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}

.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.utag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--surface);
  color: var(--text-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Segment strip */
.segment-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.segment-strip-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.segments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.seg {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.seg-sep {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
  position: relative;
  background: var(--text);
  padding: 120px 0;
  overflow: hidden;
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cta-inner .section-label {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

.cta-headline .headline-accent {
  display: inline;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% auto;
  animation: shimmerShift 5s linear infinite;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 500px;
}

/* CTA form */
.cta-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin-bottom: 16px;
}

.cta-input {
  flex: 1;
  min-width: 200px;
  height: 50px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.cta-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cta-input:focus {
  border-color: var(--accent);
  background: rgba(0, 82, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15);
}

.btn-cta {
  height: 50px;
  padding: 0 24px;
  white-space: nowrap;
}

/* Form note */
#formNote,
.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 40px;
  text-align: center;
}

/* CTA or */
.cta-or {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 36px;
}

.cta-email {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: color var(--transition);
}

.cta-email:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Social links */
.cta-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.footer-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
  text-align: center;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 12px;
  color: var(--text-3);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-headline {
    font-size: clamp(36px, 7vw, 72px);
  }

  .comp-header,
  .comp-row {
    grid-template-columns: 1.5fr 2.5fr 2.5fr;
  }

  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — 640px
   ============================================================ */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section-platform,
  .section-capabilities,
  .section-comparison,
  .section-usecases,
  .section-cta {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  /* Hero */
  .hero-headline {
    font-size: clamp(32px, 10vw, 52px);
  }

  .hero-sub {
    font-size: 16px;
  }

  .br-desktop {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

  .hstat-sep {
    width: 40px;
    height: 1px;
  }

  .hstat {
    padding: 0;
  }

  /* Capabilities */
  .cap-grid {
    grid-template-columns: 1fr;
  }

  /* Comparison */
  .comp-header,
  .comp-row {
    grid-template-columns: 1fr 1fr;
  }

  .comp-feature-col {
    display: none;
  }

  .comp-nlm-col,
  .comp-legacy-col {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px;
  }

  /* Use cases */
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .usecase-card {
    padding: 28px 24px;
  }

  /* CTA */
  .cta-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-input {
    min-width: 0;
  }

  .btn-cta {
    width: 100%;
  }

  .cta-headline {
    font-size: clamp(28px, 9vw, 42px);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-center {
    justify-content: flex-start;
  }

  .footer-right {
    gap: 16px;
    flex-wrap: wrap;
  }

  /* Stack layers */
  .layer-body {
    flex-wrap: wrap;
  }

  .stack-layer {
    padding: 20px 20px;
  }

  /* Segment strip */
  .segment-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px;
  }

  /* Reticles — hide on small screens */
  .reticle {
    display: none;
  }

  /* Scroll indicator — hide on mobile to avoid overlap */
  .hero-scroll-indicator {
    display: none;
  }

  /* Nav inner */
  .nav-inner {
    padding: 0 20px;
  }

  .footer-inner {
    padding: 0 20px;
  }
}

/* ============================================================
   UTILITY — section padding (applied globally via pt)
   ============================================================ */
.section-platform,
.section-capabilities,
.section-comparison,
.section-usecases {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ============================================================
   ANIMATIONS — stagger on reveal children
   ============================================================ */
.stack-layers .stack-layer:nth-child(1) { transition-delay: 0.05s; }
.stack-layers .stack-layer:nth-child(2) { transition-delay: 0.12s; }
.stack-layers .stack-layer:nth-child(3) { transition-delay: 0.19s; }
.stack-layers .stack-layer:nth-child(4) { transition-delay: 0.26s; }

.cap-grid .cap-card:nth-child(1) { transition-delay: 0.05s; }
.cap-grid .cap-card:nth-child(2) { transition-delay: 0.10s; }
.cap-grid .cap-card:nth-child(3) { transition-delay: 0.15s; }
.cap-grid .cap-card:nth-child(4) { transition-delay: 0.20s; }
.cap-grid .cap-card:nth-child(5) { transition-delay: 0.25s; }
.cap-grid .cap-card:nth-child(6) { transition-delay: 0.30s; }

.usecase-grid .usecase-card:nth-child(1) { transition-delay: 0.05s; }
.usecase-grid .usecase-card:nth-child(2) { transition-delay: 0.12s; }
.usecase-grid .usecase-card:nth-child(3) { transition-delay: 0.19s; }
.usecase-grid .usecase-card:nth-child(4) { transition-delay: 0.26s; }
