/* ─── CMAC Containers — Coming Soon ─── */
:root {
  --red: #E31E24;
  --red-dark: #B8181D;
  --red-glow: rgba(227, 30, 36, 0.15);
  --charcoal: #1C1C1E;
  --graphite: #2D2D30;
  --slate: #475569;
  --muted: #64748B;
  --paper: #F7F5F2;
  --white: #FFFFFF;
  --wood: #8B6914;
  --border: rgba(28, 28, 30, 0.08);
  --shadow-sm: 0 2px 8px rgba(28, 28, 30, 0.06);
  --shadow-md: 0 8px 32px rgba(28, 28, 30, 0.1);
  --shadow-lg: 0 24px 64px rgba(28, 28, 30, 0.14);
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
ol { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Blueprint background */
.blueprint-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(227, 30, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 30, 36, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  min-height: var(--header-h);
}

.logo { height: 36px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--charcoal); }

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.header-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 20%, var(--red) 80%, transparent);
  opacity: 0.6;
}

/* ─── Hero ─── */
.hero {
  padding: calc(var(--header-h) + 3rem) 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.coord {
  font-family: var(--font-display);
  color: var(--red);
  letter-spacing: 0.05em;
}

.rule-dot {
  width: 24px;
  height: 2px;
  background: var(--red);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.title-accent {
  color: var(--red);
  display: inline-block;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 42ch;
  margin-bottom: 2rem;
}

/* Forms */
.notify-form { max-width: 480px; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-row { flex-direction: row; }
}

.form-row input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
.form-row input::placeholder { color: var(--muted); }
.form-row input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  min-width: 48px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  white-space: nowrap;
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-large { padding: 1rem 2rem; }

.btn-loading { display: none; }
.btn.is-loading .btn-text { display: none; }
.btn.is-loading .btn-loading { display: flex; }

.spinner {
  width: 20px; height: 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-status {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}
.form-status.success { color: #15803d; }
.form-status.error { color: var(--red); }

/* Hero visual */
.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.frame-corner {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--red);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}
.frame-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.frame-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.frame-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.frame-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(28, 28, 30, 0.85));
  color: var(--white);
}

.badge-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.badge-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Coming soon strip */
.coming-soon-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-word {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--red);
}

.strip-divider {
  flex: 1;
  min-width: 40px;
  height: 2px;
  background: var(--red);
  opacity: 0.4;
}

.strip-domain {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ─── Ticker ─── */
.ticker {
  background: var(--charcoal);
  color: var(--white);
  padding: 0.875rem 0;
  overflow: hidden;
  margin: 2rem 0 4rem;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 35s linear infinite;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
}

.ticker-item {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ticker-item strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
}

.ticker-sep {
  color: var(--red);
  font-size: 0.5rem;
  opacity: 0.6;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ─── Features Bento ─── */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-rule {
  width: 64px;
  height: 3px;
  background: var(--red);
  margin-top: 1.5rem;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }
  .bento-large { grid-row: span 2; }
  .bento-accent { grid-column: 2; }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .bento-large { grid-row: span 2; grid-column: 1; }
  .bento-accent { grid-column: 3; grid-row: 2; }
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: default;
}

.bento-card:hover {
  border-color: rgba(227, 30, 36, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px; height: 40px;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 100%; height: 100%; }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.9375rem;
  color: var(--slate);
}

.bento-large p { font-size: 1rem; line-height: 1.7; }

.bento-accent {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.bento-accent:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.accent-stat {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.accent-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.accent-sub {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* ─── Anatomy ─── */
.anatomy {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.anatomy-intro {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.anatomy-desc {
  color: var(--slate);
  max-width: 48ch;
  margin-top: 1rem;
}

.anatomy-scroll-wrap {
  position: relative;
  padding: 0 1.5rem;
}

.anatomy-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.5rem;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.anatomy-scroll::-webkit-scrollbar { height: 6px; }
.anatomy-scroll::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}

.anatomy-panel {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.anatomy-diagram {
  width: min(90vw, 900px);
}

.anatomy-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.anatomy-layers {
  width: min(90vw, 420px);
  align-self: center;
}

.layer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.layer-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.layer-item:hover, .layer-item.is-active {
  border-left-color: var(--red);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.layer-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.layer-item h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.layer-item p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .scroll-hint { display: none; }
  .anatomy-scroll {
    max-width: 1280px;
    margin: 0 auto;
    overflow-x: visible;
    flex-wrap: nowrap;
  }
}

/* ─── CTA ─── */
.cta-section {
  background: var(--charcoal);
  color: var(--white);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-lead {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.cta-form .form-row input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.cta-form .form-row input::placeholder { color: rgba(255, 255, 255, 0.45); }
.cta-form .form-row input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.12);
}

.cta-status.success { color: #4ade80; }
.cta-status.error { color: #fca5a5; }

/* ─── Footer ─── */
.site-footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.875rem;
  max-width: 32ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--red); }

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  text-align: center;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track { animation: none; }
  .spinner { animation: none; }
  .bento-card:hover { transform: none; }
  .btn-primary:hover:not(:disabled) { transform: none; }
}
