/* ============================================================
   ARKVOR MARKETING SITE — DARK / OPERATIONAL AESTHETIC
   Inspired by Anduril + Starlink visual language
   ============================================================ */

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

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

:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #181818;
  --border:    rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.14);
  --text:      #f0f0f0;
  --text-dim:  #a8a8a8;
  --text-muted:#666;
  --accent:    #6b8f5e;
  --accent-hi: #8ab077;
  --accent-dim:rgba(107,143,94,0.12);
  --font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono:      'SF Mono', 'Fira Code', monospace;
  --radius:    6px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }

p { color: var(--text-dim); line-height: 1.7; }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container        { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container-sm     { max-width: 760px;  margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 2rem; }
.container-wide   { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 24px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s;
  letter-spacing: 0.01em;
}

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

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.btn-nav:hover { background: var(--accent-hi); color: #fff; transform: translateY(-1px); }

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

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

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    align-items: flex-start;
  }

  .nav-links a {
    padding: 12px 0;
    display: block;
    width: 100%;
  }

  .nav-links .btn-nav {
    padding: 12px 18px;
    margin-top: 8px;
  }

  .nav-links.active { display: flex; }

  section { padding: 60px 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}

.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

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

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,143,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,143,94,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial glow behind hero text */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(107,143,94,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hi);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-hi);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ============================================================
   ASK ARKVOR PROMPT BOX
   ============================================================ */

.ask-section {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ask-label {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Prompt pill — matches product input style */
.prompt-pill {
  max-width: 680px;
  margin: 0 auto;
}

.prompt-pill-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: 26px;
  padding: 8px 8px 8px 14px;
  transition: border-color 0.2s;
  min-height: 52px;
}

.prompt-pill-inner:hover { border-color: var(--accent); }

.prompt-text-area {
  flex: 1;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.5;
  min-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prompt-dynamic { color: var(--text); }

.cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--accent-hi);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.pill-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.pill-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.pill-btn.send {
  background: var(--accent);
  color: #fff;
}

.pill-btn.send:hover { background: var(--accent-hi); }

/* ============================================================
   SECTION SHARED
   ============================================================ */

section { padding: 100px 0; }

.section-eyebrow { margin-bottom: 1rem; }
.section-title { margin-bottom: 1rem; }
.section-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 58ch;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* ============================================================
   FEATURES / HOW IT'S DIFFERENT
   ============================================================ */

.features { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

.feature-card {
  background: var(--bg-2);
  padding: 2.5rem;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-3); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(107,143,94,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-hi);
}

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

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SPECS STRIP
   ============================================================ */

.specs-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.specs-header { margin-bottom: 3rem; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-item {
  padding: 2rem 2rem;
  border-right: 1px solid var(--border);
  background: var(--bg-3);
}

.spec-item:last-child { border-right: none; }

.spec-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}

.spec-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.spec-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .specs-grid { grid-template-columns: 1fr; }
  .spec-item { border-right: none; border-bottom: 1px solid var(--border); }
  .spec-item:last-child { border-bottom: none; }
}

/* ============================================================
   USE CASES
   ============================================================ */

.use-cases { background: var(--bg); }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.use-case {
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.use-case:hover { border-color: var(--border-hi); }

.use-case-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-hi);
  margin-bottom: 1rem;
}

.use-case-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; }

.use-case h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.use-case p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 640px) {
  .use-cases-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TRUST / BADGES
   ============================================================ */

.trust-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.trust-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.badge svg { width: 16px; height: 16px; stroke: var(--accent-hi); stroke-width: 2; }

/* ============================================================
   PROBLEM STATEMENT / BANNER
   ============================================================ */

.problem-section {
  background: var(--bg);
  padding: 100px 0;
}

.problem-quote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.problem-quote em {
  font-style: normal;
  color: var(--text-muted);
}

.problem-body {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 48ch;
  line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: var(--text-dim);
  max-width: 42ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  max-width: 28ch;
}

.footer-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.footer-links { display: flex; gap: 4rem; }

.footer-column h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.15s;
}

.footer-column a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { flex-direction: column; gap: 2rem; }
}

/* ============================================================
   ALERT STRIP
   ============================================================ */

.alert-strip {
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(107,143,94,0.2);
  padding: 10px 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  flex-wrap: wrap;
}

.alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hi);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

.alert-link {
  color: var(--accent-hi);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.alert-link:hover { color: var(--text); }

@media (max-width: 768px) {
  .alert-strip { display: none; }
}

/* ============================================================
   HERO — ENHANCED
   ============================================================ */

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,143,94,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,143,94,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  /* Fade out toward bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(107,143,94,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Keep ::before and ::after on .hero only for the glow line at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

/* Remove old grid/glow pseudo-elements */
.hero::before { display: none; }

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-stat-divider { display: none; }
  .hero-stat-row { gap: 1.5rem; }
}

/* ============================================================
   THREAT STRIP
   ============================================================ */

.threat-strip {
  padding: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.threat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 2rem 0;
  gap: 0;
}

.threat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 2rem;
}

.threat-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-hi);
  flex-shrink: 0;
  margin-top: 2px;
}

.threat-icon svg { width: 100%; height: 100%; }

.threat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.threat-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.threat-sep {
  color: var(--border-hi);
  font-size: 18px;
  line-height: 1;
  user-select: none;
}

@media (max-width: 900px) {
  .threat-row { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
  .threat-item { background: var(--bg-2); padding: 1.5rem; }
  .threat-sep { display: none; }
}

@media (max-width: 640px) {
  .threat-row { grid-template-columns: 1fr; }
  .threat-item { border-bottom: 1px solid var(--border); }
  .threat-item:last-child { border-bottom: none; }
}

/* ============================================================
   PROBLEM SECTION — ENHANCED
   ============================================================ */

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.failure-card {
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.failure-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.failure-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.failure-dot.red { background: #c0392b; }

.failure-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.failure-items {
  padding: 8px 0;
}

.failure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
}

.failure-name {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.failure-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.failure-status.offline {
  color: #e57373;
  background: rgba(229,115,115,0.1);
}

.failure-status.online {
  color: var(--accent-hi);
  background: var(--accent-dim);
}

.failure-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 20px;
}

/* Failure card animation */
.failure-status {
  transition: all 0.4s ease;
}

.failure-item.going-offline {
  animation: failFlash 0.5s ease;
}

@keyframes failFlash {
  0% { background: transparent; }
  30% { background: rgba(229,115,115,0.08); }
  100% { background: transparent; }
}

.failure-dot {
  transition: background 0.3s ease;
}

.failure-dot.green { background: var(--accent-hi); }
.failure-dot.red { background: #c0392b; }

#arkvorRow .failure-status.online {
  transition: all 0.4s ease;
}

#arkvorRow.pulse .failure-status {
  animation: arkvorPulse 2s ease-in-out infinite;
}

@keyframes arkvorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
  50% { box-shadow: 0 0 12px 2px rgba(76,175,80,0.3); }
}

@media (max-width: 840px) {
  .problem-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   ASK SECTION — ENHANCED
   ============================================================ */

.ask-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.03em;
}

.ask-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.ask-label {
  text-align: center;
  margin-bottom: 2.5rem;
}

.prompt-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.topic-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  transition: color 0.15s, border-color 0.15s;
  cursor: default;
}

.topic-tag:hover {
  color: var(--accent-hi);
  border-color: rgba(107,143,94,0.3);
}

/* ============================================================
   KNOWLEDGE SECTION
   ============================================================ */

.knowledge-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}

.knowledge-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.knowledge-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  transition: border-color 0.15s, color 0.15s;
  font-weight: 500;
}

.domain-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent-hi);
  flex-shrink: 0;
}

.domain-tag:hover {
  border-color: rgba(107,143,94,0.3);
  color: var(--text);
}

.knowledge-sources {
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.source-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.source-list { padding: 8px 0; }

.source-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
}

.source-item:last-child { border-bottom: none; }

.source-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.source-badge.pub {
  color: var(--accent-hi);
  background: var(--accent-dim);
}

.source-name {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

.source-item-more {
  justify-content: center;
}

.source-more-text {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 840px) {
  .knowledge-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   CTA SECTION — ENHANCED
   ============================================================ */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,143,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,143,94,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.8;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.page-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.page-hero-title em {
  font-style: normal;
  color: var(--accent-hi);
}

.page-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.7;
}

/* ============================================================
   NAV ACTIVE STATE
   ============================================================ */

.nav-links a.active { color: var(--text); }

/* ============================================================
   DEMO SECTION (how-it-works)
   ============================================================ */

.demo-section {
  padding: 100px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.demo-label {
  text-align: center;
  margin-bottom: 2.5rem;
}

.demo-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.demo-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.demo-card:hover { border-color: var(--accent); }

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hi);
  animation: pulse-dot 2s infinite;
}

.demo-body {
  padding: 22px 22px 8px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.demo-text-area {
  min-height: 100px;
}

.demo-text-content {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
  transition: opacity 0.4s ease;
}

.demo-text-content.demo-response-mode {
  color: var(--text);
  font-size: 15px;
}

.demo-cursor {
  display: inline-block;
  width: 2px;
  height: 17px;
  background: var(--text-muted);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}

.demo-cursor.demo-cursor-response { background: var(--accent-hi); }

@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

.demo-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.demo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 6px 6px 6px 6px;
  min-height: 44px;
}
.demo-pill .pill-btn.plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.demo-pill .demo-pill-spacer {
  flex: 1;
}
.demo-pill .pill-btn.send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.demo-pill .pill-btn.send:hover { background: var(--accent-hi); }
.demo-pill .pill-btn.send.demo-pulse { transform: scale(0.9); background: var(--accent-hi); }

/* ============================================================
   STEPS SECTION (how-it-works)
   ============================================================ */

.steps-section { padding: 100px 0; background: var(--bg); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.2s;
}

.step-card:hover { border-color: var(--border-hi); }

.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-hi);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--mono);
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.step-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   CONNECTION SECTION (how-it-works)
   ============================================================ */

.connection-section {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.connection-card {
  padding: 2rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.connection-card:hover { border-color: var(--border-hi); }

.connection-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-hi);
  margin-bottom: 1.25rem;
}

.connection-icon svg { width: 100%; height: 100%; }
.connection-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.connection-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }

@media (max-width: 768px) {
  .connection-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   HIW KNOWLEDGE SECTION
   ============================================================ */

.hiw-knowledge-section {
  padding: 100px 0;
  background: var(--bg);
}

.hiw-knowledge-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.hiw-knowledge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiw-knowledge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.hiw-k-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hi);
  flex-shrink: 0;
}

.hiw-knowledge-badge-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hiw-knowledge-badge {
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.hiw-knowledge-badge:hover { border-color: rgba(107,143,94,0.3); }

.hkb-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-hi);
  margin-bottom: 1rem;
}

.hkb-icon svg { width: 100%; height: 100%; }

.hkb-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.hkb-sub {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 840px) {
  .hiw-knowledge-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   HARDWARE SECTION (pricing)
   ============================================================ */

.hw-section {
  padding: 100px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hw-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.hw-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.hw-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.hw-feature svg { width: 16px; height: 16px; flex-shrink: 0; }

.specs-link-btn {
  background: none;
  border: none;
  color: var(--accent-hi);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  font-family: var(--font);
  transition: color 0.15s;
}

.specs-link-btn:hover { color: var(--text); }

.hw-right { flex-shrink: 0; }

.hw-price-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 260px;
  text-align: center;
}

.hw-price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.hw-price-note {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hw-price-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hw-card { grid-template-columns: 1fr; gap: 2rem; }
  .hw-right { width: 100%; }
  .hw-price-box { width: 100%; }
}

/* ============================================================
   COMBINED PRICING CARD
   ============================================================ */

.combined-card {
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.combined-image-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.combined-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.combined-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  padding: 2.5rem 3rem;
}

.combined-col {
  padding: 0 2rem;
}

.combined-col:first-child { padding-left: 0; }
.combined-col:last-child { padding-right: 0; }

.combined-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.combined-pricing {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-3);
}

.combined-pricing-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.combined-pricing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.combined-pricing-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.combined-pricing-amount {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.combined-pricing-note {
  font-size: 12px;
  color: var(--text-muted);
}

.combined-pricing-op {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 0.5rem;
}

.combined-pricing-total .combined-pricing-amount {
  color: var(--accent-hi);
}

@media (max-width: 900px) {
  .combined-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .combined-col { padding: 0; }
  .combined-divider {
    width: 100%;
    height: 1px;
  }
  .combined-pricing { padding: 2rem; }
  .combined-pricing-row { gap: 1rem; }
  .combined-pricing-amount { font-size: 1.25rem; }
  .combined-pricing-op { font-size: 1rem; }
}

@media (max-width: 480px) {
  .combined-pricing-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .combined-pricing-op { display: none; }
  .combined-pricing-amount { font-size: 1.1rem; }
  .combined-pricing { padding: 1.25rem; }
  .combined-columns { padding: 1.25rem; }
}

.pricing-card {
  flex: 1 1 360px;
  max-width: 420px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s;
}

.pricing-card:hover { border-color: var(--border-hi); }

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(107,143,94,0.05) 100%);
}

.plan-featured-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 6px 6px;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.plan-elvish {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.04em;
  font-style: italic;
  color: var(--accent-hi);
  opacity: 0.7;
  padding: 2px 8px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 20px;
}
.plan-elvish-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 2.5rem;
  font-style: italic;
}
.plan-elvish-note em {
  color: var(--text-muted);
}
.plan-elvish-note a {
  color: var(--accent-hi);
  text-decoration: none;
  opacity: 0.8;
}
.plan-elvish-note a:hover {
  opacity: 1;
  text-decoration: underline;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.plan-period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 2rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.plan-feature svg { width: 15px; height: 15px; color: var(--accent-hi); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 640px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINCIPLES SECTION (pricing)
   ============================================================ */

.principles-section {
  padding: 100px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.principle-card {
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.principle-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-hi);
  margin-bottom: 1.25rem;
}

.principle-icon svg { width: 100%; height: 100%; }
.principle-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.principle-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }

@media (max-width: 768px) {
  .principles-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   FAQ SECTION (pricing)
   ============================================================ */

.faq-section {
  padding: 100px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  transition: background 0.15s;
}

.faq-item:hover { background: var(--bg-2); }

/* Remove right border from even items, bottom border from last 2 */
.faq-item:nth-child(even) { border-right: none; }
.faq-item:nth-last-child(-n+2) { border-bottom: none; }

.faq-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; }
.faq-item p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }

@media (max-width: 640px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-item { border-right: none; border-bottom: 1px solid var(--border); }
  .faq-item:last-child { border-bottom: none; }
  .faq-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .faq-item:last-child { border-bottom: none; }
}

/* ============================================================
   SPECS MODAL (pricing)
   ============================================================ */

.specs-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.specs-modal-overlay.active { display: flex; }

.specs-modal {
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.specs-modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 26px;
  cursor: pointer;
  padding: 16px 20px;
  line-height: 1;
  z-index: 1;
}

.specs-modal-close:hover { color: var(--text); }

.specs-modal-body {
  padding: 2rem 2.5rem 2.5rem;
}

.specs-modal-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.specs-tagline {
  font-size: 13px;
  color: var(--accent-hi);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem !important;
}

.specs-modal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.specs-modal-body h3:first-of-type { border-top: none; }

.specs-modal-body ul {
  padding-left: 1.2rem;
  margin: 0;
}

.specs-modal-body li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 6px;
}

.specs-modal-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.specs-modal-body strong { color: var(--text); }


/* ============================================================
   KNOWLEDGE STATS BLOCK (replaces source list)
   ============================================================ */

.knowledge-stats-block {
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.kstat:last-of-type { border-bottom: none; padding-bottom: 0; }

.kstat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-hi);
  letter-spacing: -0.04em;
  line-height: 1;
}

.kstat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.kstat-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.kstat-note svg { flex-shrink: 0; color: var(--accent-hi); margin-top: 2px; }

/* ============================================================
   ABOUT PAGE — FULL DESIGN
   ============================================================ */

.about-hero {
  padding: 140px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,143,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,143,94,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.about-hero .container { position: relative; z-index: 1; }

.about-hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.about-hero h1 em {
  font-style: normal;
  color: var(--accent-hi);
}

.about-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Mission */
.about-mission {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-mission-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-mission-text h2 { margin-bottom: 1.5rem; }
.about-mission-text p { margin-bottom: 1.25rem; color: var(--text-dim); line-height: 1.75; }
.about-mission-text p:last-child { margin-bottom: 0; }

.about-mission-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-stat {
  background: var(--bg-3);
  padding: 2rem;
}

.about-stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-hi);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Values */
.about-values {
  padding: 100px 0;
  background: var(--bg);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  .about-values-grid { grid-template-columns: 1fr; }
}

.about-value-card {
  background: var(--bg-2);
  padding: 2.5rem;
  transition: background 0.2s;
}

.about-value-card:hover { background: var(--bg-3); }

.about-value-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-hi);
  margin-bottom: 1rem;
}

.about-value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.about-value-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

/* USA section */
.about-usa {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-usa-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-usa-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-usa-text h2 { margin-bottom: 1.25rem; }
.about-usa-text p { color: var(--text-dim); line-height: 1.75; margin-bottom: 1.25rem; }
.about-usa-text p:last-child { margin-bottom: 0; }

.about-usa-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-usa-badge {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-usa-badge-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.about-usa-badge-sub {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Name origin */
.about-name {
  padding: 80px 0;
  background: var(--bg);
}

.about-name-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 640px;
}

.about-name-parts {
  display: flex;
  gap: 3rem;
  margin: 2rem 0 1.5rem;
}

.about-name-part { display: flex; flex-direction: column; gap: 4px; }
.about-name-word { font-size: 1.4rem; font-weight: 700; color: var(--accent-hi); letter-spacing: -0.03em; }
.about-name-def { font-size: 13px; color: var(--text-dim); }

.about-name-tagline { font-size: 15px; color: var(--text-dim); font-style: italic; margin: 0; }

/* ============================================================
   HERO VIDEO BACKGROUND
   ============================================================ */

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Dark scrim so text stays readable — heavy at top, lighter at bottom */
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.65) 50%,
    rgba(10,10,10,0.88) 100%
  );
}

/* Ensure hero grid and glow sit above video */
.hero-grid-bg { z-index: 1; opacity: 0.5; }
.hero-glow    { z-index: 1; }
.hero-inner   { z-index: 2; }

/* ============================================================
   USE CASE CARDS WITH IMAGES
   ============================================================ */

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.use-case {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.use-case:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.use-case-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.3s;
}

.use-case:hover .use-case-img {
  filter: brightness(0.95) saturate(1);
}

.use-case-body {
  padding: 1.5rem;
}

.use-case-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.use-case-body p {
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Remove old icon style since we now use images */
.use-case-icon { display: none; }

@media (max-width: 900px) {
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .use-cases-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SPECS SECTION WITH IMAGE
   ============================================================ */

.specs-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.specs-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.specs-image-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.85);
}

@media (max-width: 840px) {
  .specs-with-image { grid-template-columns: 1fr; gap: 2rem; }
  .specs-image-wrap img { height: 260px; }
}

/* ============================================================
   PRODUCT SHOWCASE STRIP (3-image row)
   ============================================================ */

.photo-strip {
  padding: 60px 0;
  background: var(--bg);
  overflow: hidden;
}

.photo-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.photo-strip-item {
  position: relative;
  overflow: hidden;
}

.photo-strip-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8) saturate(0.8);
  transition: filter 0.4s, transform 0.4s;
}

.photo-strip-item:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.02);
}

.photo-strip-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .photo-strip-grid { grid-template-columns: 1fr; }
  .photo-strip-item img { height: 220px; }
}

/* ============================================================
   PRICING PAGE — HARDWARE IMAGE
   ============================================================ */

.hw-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hw-image-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.85);
}

/* ============================================================
   WAITLIST FORM — STYLED
   ============================================================ */

.early-access-hero {
  padding: 100px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.early-access-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,143,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,143,94,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.early-access-hero h1 {
  margin-bottom: 1rem;
}

.early-access-hero .lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 48ch;
  line-height: 1.7;
}

.waitlist-form-section {
  padding: 80px 0;
  background: var(--bg-2);
}

.form-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.waitlist-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.waitlist-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.waitlist-form .form-group-small {
  flex: 0 0 100px;
}

.waitlist-form .form-row:has(.form-group-small) {
  grid-template-columns: 1fr 100px 120px;
}

.waitlist-form label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.waitlist-form .form-group:has(:required) label::after {
  content: " *";
  color: var(--accent-hi);
}

.waitlist-form input,
.waitlist-form select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.waitlist-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.waitlist-form input::placeholder { color: var(--text-muted); }

.waitlist-form input:focus,
.waitlist-form select:focus {
  border-color: var(--accent);
  background: var(--bg);
}

.waitlist-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(200, 80, 80, 0.5);
}

.btn-primary-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-primary-large:hover:not(:disabled) {
  background: var(--accent-hi);
  transform: translateY(-1px);
}

.btn-primary-large:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ============================================================
   FORM SUCCESS STATE
   ============================================================ */

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.active { display: block; }

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-hi);
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--text-dim);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.form-success .back-link {
  font-size: 13px;
  color: var(--accent-hi);
  text-decoration: none;
  font-weight: 600;
}

.form-success .back-link:hover { color: var(--text); }

.waitlist-form.hidden { display: none; }

/* ============================================================
   EARLY ACCESS PAGE — CONTENT SECTIONS
   ============================================================ */

.ea-building,
.ea-benefits-list,
.ea-expect {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.ea-building h2,
.ea-benefits-list h2,
.ea-expect h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.ea-building p {
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 60ch;
}

.ea-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ea-bullet-list li {
  color: var(--text-dim);
  line-height: 1.65;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.ea-bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-hi);
  font-weight: 600;
}

/* ============================================================
   FOOTER — TOS LINK
   ============================================================ */

.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  padding: 8px 4px;
}

.footer-legal a:hover { color: var(--text-dim); }

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .waitlist-form .form-row { grid-template-columns: 1fr; }
  .waitlist-form .form-row:has(.form-group-small) { grid-template-columns: 1fr; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ANIMATIONS — Scroll reveals + Hero entrance
   ============================================================ */

/* Hero staggered entrance */
.hero-inner h1,
.hero-inner .hero-sub,
.hero-inner .hero-cta,
.hero-inner .hero-stat-row {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-inner h1           { animation-delay: 0.1s; }
.hero-inner .hero-sub    { animation-delay: 0.3s; }
.hero-inner .hero-cta    { animation-delay: 0.5s; }
.hero-inner .hero-stat-row { animation-delay: 0.7s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal — elements start hidden, reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children (use case cards, domain tags, etc.) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1)  { transition-delay: 0.0s; }
.reveal-stagger.visible > *:nth-child(2)  { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4)  { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5)  { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6)  { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7)  { transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(8)  { transition-delay: 0.56s; }

/* Stat row stagger */
.hero-stat-row .hero-stat {
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stat-row .hero-stat:nth-child(1) { animation-delay: 0.8s; }
.hero-stat-row .hero-stat:nth-child(3) { animation-delay: 0.95s; }
.hero-stat-row .hero-stat:nth-child(5) { animation-delay: 1.1s; }
.hero-stat-row .hero-stat:nth-child(7) { animation-delay: 1.25s; }

/* Threat strip items reveal */
.threat-row .threat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.threat-row.visible .threat-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.threat-row.visible .threat-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.threat-row.visible .threat-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.threat-row.visible .threat-item:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

/* ============================================================
   ARTICLE / TECHNOLOGY PAGE
   ============================================================ */

.article-section {
  padding: 4rem 0 6rem;
}

.article-block {
  margin-bottom: 5rem;
  position: relative;
}

.article-block h2 {
  margin-bottom: 1.5rem;
}

.article-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.article-block p strong {
  color: var(--text);
  font-weight: 600;
}

.article-num-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-hi);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.article-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.article-detail {
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.article-detail h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.article-detail p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Pipeline steps */
.article-pipeline {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.pipeline-step:last-child {
  border-bottom: none;
}

.pipeline-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-hi);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.pipeline-step h3 {
  margin-bottom: 0.5rem;
}

.pipeline-step p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .article-detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================================
   PIPELINE DIAGRAM (Technology page - Section 02)
   ============================================================ */

.pipeline-diagram {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pipeline-input,
.pipeline-output {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
}

.pipeline-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  animation: inputBreathe 3s ease-in-out infinite;
}

.pipeline-output {
  background: var(--accent-dim);
  border: 1px solid rgba(107,143,94,0.3);
  animation: outputBreathe 3s ease-in-out infinite 1.5s;
}

@keyframes inputBreathe {
  0%, 100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 15px rgba(255,255,255,0.04); }
}

@keyframes outputBreathe {
  0%, 100% { box-shadow: 0 0 0 rgba(107,143,94,0); }
  50% { box-shadow: 0 0 15px rgba(107,143,94,0.12); }
}

.pipeline-input-label,
.pipeline-output-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.pipeline-output-label {
  color: var(--accent-hi);
}

.pipeline-input-text {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
}

.pipeline-output-text {
  font-size: 0.9rem;
  color: var(--accent-hi);
}

.pipeline-flow-arrow {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pipeline-flow-arrow span:first-child {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: pipelinePulseV 2s ease-in-out infinite;
}

.pipeline-flow-arrow-h {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.pipeline-flow-arrow-h span:first-child {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  animation: pipelinePulseH 2s ease-in-out infinite;
}

/* Flowing dot particles — vertical */
.pipeline-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(107,143,94,0.3);
  left: 50%;
  transform: translateX(-50%);
  animation: dotFlowV 2s ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
}

@keyframes dotFlowV {
  0% { top: -2px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

/* Flowing dot particles — horizontal */
.pipeline-dot-h {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(107,143,94,0.3);
  top: 50%;
  transform: translateY(-50%);
  animation: dotFlowH 2s ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
}

@keyframes dotFlowH {
  0% { left: -2px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 2px); opacity: 0; }
}

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

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

.pipeline-stages {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 700px;
}

.pipeline-stage {
  flex: 1;
  padding: 1.25rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  animation: stageFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--float-offset, 0) * 0.5s);
}

@keyframes stageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.pipeline-stage-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-hi);
  margin-bottom: 0.5rem;
  font-family: var(--mono);
}

.pipeline-stage-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pipeline-stage-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pipeline-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  background: var(--accent-dim);
  color: var(--accent-hi);
  border-radius: 3px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .pipeline-stages {
    flex-direction: column;
    gap: 0.5rem;
  }
  .pipeline-flow-arrow-h {
    width: 100%;
    height: 20px;
  }
  .pipeline-flow-arrow-h span:first-child {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  }
  .pipeline-dot-h {
    /* Switch to vertical flow on mobile */
    left: 50% !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    animation: dotFlowV 2s ease-in-out infinite !important;
    animation-delay: var(--dot-delay, 0s) !important;
  }
  .pipeline-diagram {
    padding: 1.5rem 1rem;
  }
}

/* ============================================================
   MODE COMPARISON DIAGRAM (Technology page - Section 03)
   ============================================================ */

.mode-demo {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.mode-demo-question {
  text-align: center;
  margin-bottom: 2rem;
}

.mode-demo-q-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.mode-demo-q-text {
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
}

.mode-demo-responses {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.mode-demo-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.mode-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.mode-demo-badge.emergency {
  color: var(--accent-hi);
  background: var(--accent-dim);
}

.mode-demo-badge.generic {
  color: #888;
  background: rgba(255,255,255,0.06);
}

.mode-demo-badge.exploratory {
  color: #60a5fa;
  background: rgba(96,165,250,0.1);
}

.mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mode-dot.emergency {
  background: var(--accent-hi);
  box-shadow: 0 0 6px rgba(107,143,94,0.6);
  animation: modeDotPulse 2s ease-in-out infinite;
}

.mode-dot.generic {
  background: #888;
  box-shadow: 0 0 4px rgba(136,136,136,0.4);
}

.mode-dot.exploratory {
  background: #60a5fa;
  box-shadow: 0 0 6px rgba(96,165,250,0.6);
  animation: modeDotPulse 2s ease-in-out infinite 0.5s;
}

@keyframes modeDotPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 4px currentColor; }
  50% { opacity: 1; box-shadow: 0 0 10px currentColor; }
}

.mode-demo-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mode-line {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-6px);
  animation: modeLineIn 0.4s ease forwards;
  animation-delay: calc(var(--delay) * 0.3s + 0.5s);
}

.mode-demo-card.mode-generic .mode-line {
  color: var(--text-muted);
}

/* ARKVOR lines — brighter, more confident */
.mode-demo-card.mode-emergency .mode-line {
  color: var(--text);
  font-weight: 500;
}

/* Contextual lead-in — situational awareness */
.mode-line.mode-lead {
  color: var(--text-dim);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.25rem;
}

/* Follow-up question — shows ARKVOR keeps engaging */
.mode-line.mode-followup {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(107,143,94,0.15);
  color: var(--accent-hi);
  font-style: italic;
  font-weight: 400;
}

/* Context detection strip — shows what ARKVOR picked up */
.mode-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(107,143,94,0.15);
}

.mode-context-tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(107,143,94,0.12);
  color: var(--accent-hi);
  border-radius: 3px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Workflow continuation prompt */
.mode-workflow-prompt {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(107,143,94,0.08);
  border: 1px solid rgba(107,143,94,0.15);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: workflowPulse 3s ease-in-out infinite;
}

.mode-workflow-icon {
  color: var(--accent-hi);
  font-size: 1rem;
  flex-shrink: 0;
}

.mode-workflow-prompt strong {
  color: var(--accent-hi);
}

@keyframes workflowPulse {
  0%, 100% { border-color: rgba(107,143,94,0.15); }
  50% { border-color: rgba(107,143,94,0.35); }
}

.mode-line.mode-fade {
  color: var(--text-muted);
  opacity: 0;
  animation: modeLineIn 0.4s ease forwards;
  animation-delay: calc(var(--delay) * 0.3s + 0.5s);
}

.mode-line.mode-fade em {
  font-size: 0.78rem;
  opacity: 0.5;
}

.mode-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  position: relative;
  gap: 0;
}

.mode-vs::before,
.mode-vs::after {
  content: '';
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--border-hi), transparent);
}

.mode-vs::before { margin-bottom: 0.75rem; }
.mode-vs::after { margin-top: 0.75rem; }

.mode-limitations,
.mode-strengths {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mode-limit-item,
.mode-strength-item {
  font-size: 0.78rem;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.mode-limit-item {
  color: var(--text-muted);
}

.mode-x {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mode-strength-item {
  color: var(--text);
}

.mode-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Generic AI side — intentionally lifeless */
.mode-demo-card.mode-generic {
  border-color: rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.01);
  opacity: 0.85;
}

/* ARKVOR side — alive with breathing glow */
.mode-demo-card.mode-emergency {
  border-color: rgba(107,143,94,0.2);
  background: rgba(107,143,94,0.03);
  position: relative;
  overflow: hidden;
}

.mode-demo-card.mode-alive {
  animation: arkvorGlow 3s ease-in-out infinite;
}

@keyframes arkvorGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(107,143,94,0), inset 0 0 0 rgba(107,143,94,0);
    border-color: rgba(107,143,94,0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(107,143,94,0.08), inset 0 0 30px rgba(107,143,94,0.03);
    border-color: rgba(107,143,94,0.4);
  }
}

/* Subtle scanline sweep across ARKVOR card */
.mode-scanline {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(107,143,94,0.05), transparent);
  animation: scanSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0% { top: -30%; }
  100% { top: 130%; }
}

.mode-demo-card.mode-exploratory .mode-line {
  animation-delay: calc(var(--delay) * 0.3s + 0.8s);
}

@keyframes modeLineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mode-step {
  color: var(--accent-hi);
  font-weight: 700;
  font-family: var(--mono);
  margin-right: 0.25rem;
}

.mode-demo-caption {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .mode-demo-responses {
    grid-template-columns: 1fr;
  }
  .mode-vs {
    flex-direction: row;
    padding: 0.5rem 0;
  }
  .mode-vs::before,
  .mode-vs::after {
    width: auto;
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, transparent, var(--border-hi), transparent);
  }
  .mode-vs::before { margin-bottom: 0; margin-right: 1rem; }
  .mode-vs::after { margin-top: 0; margin-left: 1rem; }
  .mode-demo {
    padding: 1.5rem 1rem;
  }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-section {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.faq-item {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.faq-item p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-inner h1,
  .hero-inner .hero-sub,
  .hero-inner .hero-cta,
  .hero-inner .hero-stat-row,
  .hero-stat-row .hero-stat,
  .reveal,
  .reveal-stagger > *,
  .threat-row .threat-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ── Small phone fixes (375px) ─────────────────────────── */
@media (max-width: 480px) {
  /* Nav button: meet 44px tap target */
  .btn-nav { padding: 12px 20px; font-size: 14px; }

  /* Nav links in dropdown: bigger tap targets */
  .nav-links a { padding: 12px 0; font-size: 15px; }

  /* Name origin boxes: stack vertically */
  .name-origin-row { flex-direction: column !important; }
  .name-origin-box {
    border-radius: 12px !important;
    border-left: 1px solid rgba(255,255,255,0.08) !important;
    min-width: auto !important;
  }
  .name-origin-divider {
    width: 100% !important;
    height: 1px !important;
  }

  /* Hero stat row: tighter on phone */
  .hero-stat-row { gap: 1rem; }
  .hero-stat .stat-number { font-size: 1.5rem; }

  /* Technology page: bump small fonts for mobile readability */
  .pipeline-stage-title { font-size: 0.95rem; }
  .pipeline-tag { font-size: 0.75rem; }
  .pipeline-stage-num { font-size: 0.8rem; }
  .mode-line { font-size: 0.9rem; }
  .mode-limit-item,
  .mode-strength-item { font-size: 0.85rem; }
  .label { font-size: 12px; }
}
