/* ============================================================
   TwelveGuard — Custom Styles
   Theme: Dark, industry-rooted palette inspired by Flexe.com
   Fonts: Playfair Display (display) + Plus Jakarta Sans (body)
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Foundation */
  --tw-black:        #0a0e14;
  --tw-charcoal:     #1a1f2b;
  --tw-steel:        #3d4550;
  --tw-steel-light:  #4e5666;

  /* Accents */
  --tw-rust:         #00d4ff;
  --tw-rust-light:   #33ddff;
  --tw-rust-dim:     rgba(0, 212, 255, 0.15);
  --tw-blue:         #2d5f8a;
  --tw-blue-light:   #3a78a8;
  --tw-blue-dim:     rgba(45, 95, 138, 0.15);

  /* Text */
  --tw-white:        #f0f2f5;
  --tw-grey-mid:     #6b7280;
  --tw-grey-light:   #9ca3af;
  --tw-border:       rgba(240, 242, 245, 0.08);
  --tw-border-light: rgba(240, 242, 245, 0.14);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --section-py:  clamp(80px, 10vw, 140px);
  --container-px: clamp(20px, 5vw, 48px);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 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-color: var(--tw-black);
  color: var(--tw-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--tw-black); }
::-webkit-scrollbar-thumb { background: var(--tw-steel); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tw-rust); }

/* ── Selection ── */
::selection {
  background: var(--tw-rust);
  color: var(--tw-white);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tw-rust);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--tw-rust);
  flex-shrink: 0;
}

/* ── Section Heading ── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--tw-white);
  margin-bottom: 24px;
}

.section-heading em {
  font-style: italic;
  color: var(--tw-rust);
}

.section-subhead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--tw-grey-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

#nav.scrolled {
  padding: 14px 0;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--tw-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo in nav */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tw-white);
  line-height: 1;
}

.nav-logo-text span {
  color: var(--tw-rust);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tw-grey-light);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--tw-rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Nav CTA */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--tw-rust);
  color: var(--tw-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.btn-nav-cta:hover {
  background: var(--tw-rust-light);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tw-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 90;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 600;
  color: var(--tw-grey-light);
  padding: 12px 24px;
  transition: color 0.2s;
  text-align: center;
}

.mobile-nav-link:hover {
  color: var(--tw-white);
}

.mobile-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: var(--tw-rust);
  color: var(--tw-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* ════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tw-black);
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Animated background container */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Corrugation line animation — draws in on load */
@keyframes drawLine {
  from { stroke-dashoffset: 3000; }
  to   { stroke-dashoffset: 0; }
}

.h-line {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: drawLine 2.4s var(--ease-out) forwards;
}
.v-line {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: drawLine 2s var(--ease-out) forwards;
}
.container-outline {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: drawLine 3s var(--ease-out) forwards;
  animation-delay: 0.4s;
}
.measure-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 1.8s var(--ease-out) forwards;
  animation-delay: 1.2s;
}

/* Staggered delays for horizontal lines */
.h-line:nth-child(1)  { animation-delay: 0.0s; }
.h-line:nth-child(2)  { animation-delay: 0.12s; }
.h-line:nth-child(3)  { animation-delay: 0.24s; }
.h-line:nth-child(4)  { animation-delay: 0.36s; }
.h-line:nth-child(5)  { animation-delay: 0.48s; }
.h-line:nth-child(6)  { animation-delay: 0.60s; }
.h-line:nth-child(7)  { animation-delay: 0.72s; }
.h-line:nth-child(8)  { animation-delay: 0.84s; }
.h-line:nth-child(9)  { animation-delay: 0.96s; }
.h-line:nth-child(10) { animation-delay: 1.08s; }

/* Large faint shield watermark */
.hero-shield-bg {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 55vmin;
  height: auto;
  opacity: 0.035;
  animation: shieldFadeIn 2.5s var(--ease-out) 0.5s both;
}

@keyframes shieldFadeIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.92); }
  to   { opacity: 0.035; transform: translateY(-50%) scale(1); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero tag line (small label above headline) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tw-rust);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tw-rust);
  flex-shrink: 0;
}

/* Hero headline — line-by-line reveal */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--tw-white);
  margin-bottom: 32px;
}

.hero-headline .reveal-line {
  display: block;
  overflow: hidden;
}

.hero-headline .reveal-line-inner {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineReveal 0.8s var(--ease-out) both;
}

.reveal-line:nth-child(1) .reveal-line-inner { animation-delay: 0.5s; }
.reveal-line:nth-child(2) .reveal-line-inner { animation-delay: 0.68s; }
.reveal-line:nth-child(3) .reveal-line-inner { animation-delay: 0.86s; }

@keyframes lineReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-headline em {
  font-style: italic;
  color: var(--tw-rust);
}

/* Hero subheadline */
.hero-subhead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--tw-grey-light);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s both;
}

/* Hero buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.3s both;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--tw-rust);
  color: var(--tw-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
  background: var(--tw-rust-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 75, 42, 0.35);
}

/* Secondary / ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--tw-border-light);
  color: var(--tw-grey-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.btn-ghost:hover {
  border-color: var(--tw-white);
  color: var(--tw-white);
  transform: translateY(-2px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 2s both;
}

.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tw-grey-mid);
}

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

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

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--tw-border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.5s both;
}

.hero-stat {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--tw-border);
  text-align: center;
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--tw-rust);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--tw-grey-mid);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════
   STATS DIVIDER BAR
════════════════════════════════════════════ */

#stats-bar {
  background: var(--tw-charcoal);
  border-top: 1px solid var(--tw-border);
  border-bottom: 1px solid var(--tw-border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 20px 32px;
  border-right: 1px solid var(--tw-border);
  text-align: center;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--tw-white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-value sup {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--tw-rust);
  font-weight: 700;
}

.stat-caption {
  font-size: 12px;
  color: var(--tw-grey-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════
   PROBLEM SECTION
════════════════════════════════════════════ */

#about {
  background: var(--tw-black);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.problem-video-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--tw-border);
  background: var(--tw-charcoal);
}

.problem-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.problem-video-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tw-rust);
  background: rgba(10, 14, 20, 0.8);
  padding: 6px 12px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.problem-points {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.problem-point {
  border-left: 2px solid var(--tw-border);
  padding-left: 28px;
  transition: border-color 0.3s;
}

.problem-point:hover {
  border-left-color: var(--tw-rust);
}

.problem-point-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tw-rust);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.problem-point h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tw-white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.problem-point p {
  font-size: 0.95rem;
  color: var(--tw-grey-light);
  line-height: 1.75;
}

/* ════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════ */

#how-it-works {
  background: var(--tw-charcoal);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--tw-border);
}

.hiw-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.hiw-header .section-label {
  justify-content: center;
}

.hiw-header .section-label::before { display: none; }

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Connector line between steps */
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100%/6);
  right: calc(100%/6);
  height: 1px;
  background: linear-gradient(to right, var(--tw-rust), var(--tw-blue));
  opacity: 0.35;
}

.hiw-step {
  padding: 0 40px;
  text-align: center;
  position: relative;
}

.hiw-step:first-child { padding-left: 0; }
.hiw-step:last-child  { padding-right: 0; }

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--tw-border-light);
  background: var(--tw-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, background 0.3s;
}

.hiw-step:hover .step-num {
  border-color: var(--tw-rust);
  background: var(--tw-rust-dim);
}

.step-num-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tw-rust);
  line-height: 1;
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--tw-rust);
  margin: 0 auto 16px;
}

.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tw-white);
  margin-bottom: 14px;
}

.hiw-step p {
  font-size: 0.93rem;
  color: var(--tw-grey-light);
  line-height: 1.75;
}

.hiw-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--tw-border-light);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tw-grey-mid);
}

/* ════════════════════════════════════════════
   DEMO SHOWCASE
════════════════════════════════════════════ */

#demos {
  background: var(--tw-black);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--tw-border);
}

.demos-header {
  max-width: 640px;
  margin-bottom: 60px;
}

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

.demo-card {
  background: var(--tw-charcoal);
  border: 1px solid var(--tw-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  filter: grayscale(30%);
}

.demo-card:hover {
  border-color: var(--tw-border-light);
  transform: translateY(-3px);
  filter: grayscale(0%);
}

.demo-video-wrap {
  position: relative;
  background: var(--tw-black);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.demo-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-card-body {
  padding: 24px 28px;
  border-top: 1px solid var(--tw-border);
}

.demo-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tw-rust);
  margin-bottom: 10px;
}

.demo-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tw-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.demo-card p {
  font-size: 0.9rem;
  color: var(--tw-grey-light);
  line-height: 1.65;
}

/* Extra demos row — 2 smaller cards */
.demos-grid-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.demo-card-sm {
  background: var(--tw-charcoal);
  border: 1px solid var(--tw-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: border-color 0.3s, transform 0.3s;
  filter: grayscale(30%);
}

.demo-card-sm:hover {
  border-color: var(--tw-border-light);
  transform: translateY(-3px);
  filter: grayscale(0%);
}

.demo-card-sm video {
  width: 40%;
  object-fit: cover;
  flex-shrink: 0;
}

.demo-card-sm-body {
  padding: 20px 24px;
}

.demo-card-sm-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tw-white);
  margin-bottom: 6px;
}

.demo-card-sm-body p {
  font-size: 0.875rem;
  color: var(--tw-grey-light);
  line-height: 1.6;
}

/* ════════════════════════════════════════════
   PRODUCT ROADMAP
════════════════════════════════════════════ */

#roadmap {
  background: var(--tw-charcoal);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--tw-border);
  overflow: hidden;
}

.roadmap-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
}

.roadmap-header .section-label {
  justify-content: center;
}
.roadmap-header .section-label::before { display: none; }

/* Timeline track */
.roadmap-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.roadmap-track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: linear-gradient(to right,
    var(--tw-rust) 0%,
    var(--tw-rust) 25%,
    var(--tw-border) 25%,
    var(--tw-border) 100%
  );
}

.roadmap-phase {
  padding: 0 24px;
  text-align: center;
}

.roadmap-phase:first-child { padding-left: 0; }
.roadmap-phase:last-child  { padding-right: 0; }

.phase-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.3s;
}

.roadmap-phase:hover .phase-marker {
  transform: scale(1.1);
}

.phase-marker.active {
  background: var(--tw-rust);
  border: 1px solid var(--tw-rust);
  color: var(--tw-white);
  box-shadow: 0 0 20px rgba(196, 75, 42, 0.4);
}

.phase-marker.upcoming {
  background: var(--tw-black);
  border: 1px solid var(--tw-border-light);
  color: var(--tw-grey-mid);
}

.phase-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tw-rust);
  margin-bottom: 10px;
}

.phase-label.upcoming-label {
  color: var(--tw-grey-mid);
}

.roadmap-phase h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tw-white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.roadmap-phase p {
  font-size: 0.875rem;
  color: var(--tw-grey-light);
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   MISSION & VISION
════════════════════════════════════════════ */

#vision {
  background: var(--tw-black);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--tw-border);
  position: relative;
  overflow: hidden;
}

/* Background text watermark */
#vision::before {
  content: 'TwelveGuard';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 700;
  color: var(--tw-border);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--tw-border);
  border: 1px solid var(--tw-border);
  border-radius: 4px;
  overflow: hidden;
}

.vision-block {
  background: var(--tw-charcoal);
  padding: clamp(40px, 5vw, 72px);
  position: relative;
}

.vision-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.vision-block.mission-block::before { background: var(--tw-rust); }
.vision-block.vision-block-inner::before { background: var(--tw-blue); }

.vision-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tw-grey-mid);
  margin-bottom: 20px;
}

.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--tw-white);
  font-style: italic;
}

.vision-quote em {
  font-style: normal;
  color: var(--tw-rust);
}

/* Founder note */
.founder-note {
  margin-top: 64px;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.founder-note p {
  font-size: 0.95rem;
  color: var(--tw-grey-light);
  line-height: 1.8;
}

.founder-note strong {
  color: var(--tw-white);
  font-weight: 600;
}

/* ════════════════════════════════════════════
   WAITLIST / CTA SECTION
════════════════════════════════════════════ */

#waitlist {
  background: var(--tw-charcoal);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--tw-border);
  position: relative;
  overflow: hidden;
}

/* Rust glow behind form */
#waitlist::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(196, 75, 42, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.waitlist-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.waitlist-inner .section-label {
  justify-content: center;
}
.waitlist-inner .section-label::before { display: none; }

.waitlist-inner .section-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.waitlist-subhead {
  font-size: 1.05rem;
  color: var(--tw-grey-light);
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Form */
#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tw-grey-mid);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--tw-black);
  border: 1px solid var(--tw-border);
  border-radius: 3px;
  color: var(--tw-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder {
  color: var(--tw-grey-mid);
}

.form-group input:focus {
  border-color: var(--tw-rust);
  box-shadow: 0 0 0 3px rgba(196, 75, 42, 0.15);
}

.form-submit {
  width: 100%;
  padding: 17px 32px;
  background: var(--tw-rust);
  color: var(--tw-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-top: 6px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.form-submit:hover {
  background: var(--tw-rust-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 75, 42, 0.35);
}

.form-note {
  font-size: 12px;
  color: var(--tw-grey-mid);
  text-align: center;
  margin-top: 16px;
}

.form-note a {
  color: var(--tw-grey-light);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}
.form-note a:hover { text-decoration-color: var(--tw-grey-light); }

/* Thank you message */
#form-success {
  display: none;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--tw-rust);
  border-radius: 4px;
  background: var(--tw-rust-dim);
}

#form-success.visible { display: block; }

#form-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--tw-white);
  margin-bottom: 12px;
}

#form-success p {
  color: var(--tw-grey-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */

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

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--tw-border);
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--tw-grey-mid);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--tw-grey-light);
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--tw-rust); }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tw-grey-mid);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--tw-grey-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--tw-white); }

.footer-social-placeholder {
  font-size: 0.85rem;
  color: var(--tw-grey-mid);
  font-style: italic;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--tw-grey-mid);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--tw-grey-mid);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--tw-grey-light); }

/* ════════════════════════════════════════════
   SCROLL REVEAL UTILITIES
════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Elements waiting to be revealed */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger-children.revealed > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET
════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  .problem-grid    { grid-template-columns: 1fr; gap: 48px; }
  .problem-video-wrapper { max-width: 560px; }

  .roadmap-track   { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .roadmap-track::before { display: none; }

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

  .footer-inner    { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand    { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-links, .btn-nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-stats { display: none; }

  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hiw-steps::before { display: none; }
  .hiw-step { padding: 0; text-align: left; }
  .step-num { margin: 0 0 20px 0; }

  .demos-grid,
  .demos-grid-secondary { grid-template-columns: 1fr; }

  .demo-card-sm { flex-direction: column; }
  .demo-card-sm video { width: 100%; height: 200px; }

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

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 16px; }
}

/* ============================================================
   LIVE MARKET COUNTER SECTION
   ============================================================ */
#market-counter {
  padding: 100px 0;
  background: var(--tw-black);
}

.mc-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* eyebrow */
.mc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 22px;
}

.mc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a86e8;
  animation: mcBlink 1.6s ease-in-out infinite;
}

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

/* headline */
.mc-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: #f0f0f0;
  margin-bottom: 14px;
}

.mc-headline em {
  font-style: italic;
  color: #4a86e8;
}

/* cards */
.mc-cards {
  display: grid;
  gap: 2px;
  margin-top: 44px;
}

.mc-card {
  background: #111318;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  transition: border-color 0.2s;
}

.mc-card:first-child { border-radius: 12px 12px 0 0; }
.mc-card:last-child  { border-radius: 0; }
.mc-card:hover       { border-color: rgba(255,255,255,0.13); }

.mc-card-left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-card-right {
  grid-column: 2;
  display: flex;
  align-items: center;
  padding-left: 24px;
}

.mc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.mc-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
  color: #f0f0f0;
}

.mc-blue     .mc-value { color: #a5b4fc; }
.mc-danger   .mc-value { color: #fca5a5; }
.mc-highlight .mc-value { color: #6ee7b7; }

.mc-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.55;
  max-width: 400px;
  margin-top: 4px;
}

.mc-icon {
  opacity: 0.22;
  transition: opacity 0.2s;
}
.mc-card:hover .mc-icon { opacity: 0.38; }

/* rate strip */
.mc-rate-strip {
  margin-top: 2px;
  background: #111318;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-rate-item {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}

.mc-rate-item strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

/* footer row */
.mc-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mc-footer-left {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
}

.mc-footer-left strong {
  color: rgba(255,255,255,0.55);
}

.mc-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a0e14;
  background: #4a86e8;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
}

/* responsive */
@media (max-width: 600px) {
  .mc-card {
    grid-template-columns: 1fr;
  }
  .mc-card-right { display: none; }
  .mc-rate-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
