/* ============================================
   BuildYourPrint — Print Commerce Engine
   Inspired by 70s American Federal Design:
   NASA Graphics Standards, EPA identity.
   Bold geometric type, strategic color,
   strong grid, vast whitespace.
   ============================================ */

/* 1. Design Tokens
   ------------------------------------------ */
:root {
  /* Colors — Signal System */
  --black: #0A0A0A;
  --black-90: rgba(10, 10, 10, 0.9);
  --white: #FFFFFF;
  --warm-white: #F5F2ED;
  --signal-red: #E8432E;
  --signal-red-dark: #C9321F;
  --signal-red-light: #FCEAE7;
  --stone: #D1CBC2;
  --stone-light: #E8E4DE;
  --mid-gray: #6B6B6B;
  --light-gray: #9A9A9A;
  --rule: rgba(10, 10, 10, 0.1);

  /* Typography */
  --font-heading: 'Barlow', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Type Scale — bold, oversized headings */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;
  --text-7xl: 6rem;

  /* Spacing (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--black);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: var(--space-4);
}

/* 3. Typography
   ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  color: var(--mid-gray);
  max-width: 58ch;
}

.text-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.text-xl {
  font-size: var(--text-xl);
  line-height: 1.6;
}

.text-red {
  color: var(--signal-red);
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* Accent line — 70s federal style */
.accent-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--signal-red);
  margin-bottom: var(--space-6);
}

.text-center .accent-line {
  margin-left: auto;
  margin-right: auto;
}

/* Label / overline */
.overline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: var(--space-4);
  display: block;
}

/* 4. Layout & Grid
   ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section--black {
  background: var(--black);
  color: var(--warm-white);
}

.section--black h2,
.section--black h3,
.section--black h4 {
  color: var(--warm-white);
}

.section--black p {
  color: var(--light-gray);
}

.section--black .overline {
  color: var(--signal-red);
}

.section--red {
  background: var(--signal-red);
  color: var(--white);
}

.section--red h2,
.section--red h3,
.section--red p {
  color: var(--white);
}

.section--stone {
  background: var(--stone-light);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--space-16) 0;
}

/* 5. Animations
   ------------------------------------------ */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-scale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-animate] {
  opacity: 0;
}

[data-animate].is-visible {
  animation: reveal-up 0.65s var(--ease-out-expo) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

[data-animate="scale"].is-visible {
  animation-name: reveal-scale;
}

[data-animate="fade"].is-visible {
  animation-name: fade-in;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; }
  [data-animate].is-visible { animation: none; opacity: 1; }
}

/* 6. Navigation
   ------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav--scrolled {
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  white-space: nowrap;
}

.nav__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--signal-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--black);
}

.nav__link[aria-current="page"] {
  position: relative;
}

.nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal-red);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__current {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-switcher__current::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid var(--mid-gray);
  transition: transform var(--transition-base);
}

.lang-switcher__current[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.lang-switcher__current:hover {
  border-color: var(--black);
  color: var(--black);
}

.lang-switcher__list {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  min-width: 72px;
  z-index: 10;
}

.lang-switcher__list[hidden] { display: none; }

.lang-switcher__list a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mid-gray);
  transition: all var(--transition-base);
}

.lang-switcher__list a:hover {
  background: var(--warm-white);
  color: var(--black);
}

.lang-switcher__list a.active {
  color: var(--signal-red);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 105;
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-8) var(--space-8);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-left: 1px solid var(--rule);
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.3);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.mobile-menu__langs {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}

.mobile-menu__langs a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.08em;
}

.mobile-menu__langs a.active {
  background: var(--signal-red);
  color: var(--white);
  border-color: var(--signal-red);
}

/* 7. Buttons
   ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--red {
  background: var(--signal-red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--signal-red-dark);
  transform: translateY(-1px);
}

.btn--black {
  background: var(--black);
  color: var(--white);
}

.btn--black:hover {
  background: #222;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--signal-red);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

/* 8. Hero
   ------------------------------------------ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--signal-red);
  opacity: 0.04;
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

.hero h1 {
  margin-bottom: var(--space-6);
  line-height: 1.0;
}

.hero h1 .text-red {
  display: block;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--mid-gray);
  margin-bottom: var(--space-8);
  line-height: 1.6;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

/* Comparison strip in hero */
.hero__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--rule);
  max-width: 520px;
}

.hero__compare-block {
  text-align: center;
}

.hero__compare-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.hero__compare-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-3xl);
  color: var(--black);
  line-height: 1;
}

.hero__compare-value--red {
  color: var(--signal-red);
}

.hero__compare-arrow {
  font-size: var(--text-2xl);
  color: var(--signal-red);
  font-weight: 700;
}

/* Hero visual */
.hero__visual {
  position: relative;
}

.hero__diagram {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: var(--space-8);
  position: relative;
}

.hero__diagram-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.hero__diagram-node {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  max-width: 260px;
}

.hero__diagram-node--client {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  color: var(--mid-gray);
}

.hero__diagram-node--byp {
  background: var(--signal-red);
  color: var(--white);
  position: relative;
}

.hero__diagram-node--api {
  background: var(--black);
  color: var(--white);
}

.hero__diagram-node--mis {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  color: var(--mid-gray);
}

.hero__diagram-arrow {
  width: 1px;
  height: 20px;
  background: var(--rule);
  position: relative;
}

.hero__diagram-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--light-gray);
}

.hero__diagram-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--light-gray);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero Slider */
.hero--slider {
  display: block;
  padding-top: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 0;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}

.hero-slider__controls {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 5;
}

.hero-slider__pause {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-slider__pause:hover {
  background: var(--signal-red);
  border-color: var(--signal-red);
}

.hero-slider__dots {
  display: flex;
  gap: var(--space-3);
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--light-gray);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-slider__dot.is-active {
  background: var(--signal-red);
  border-color: var(--signal-red);
}

.hero-slider__dot:hover {
  border-color: var(--signal-red);
}

/* VS Comparison (Slide 2) */
.hero__vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--white);
}

.hero__vs-col {
  padding: var(--space-6);
}

.hero__vs-col--old {
  background: var(--warm-white);
}

.hero__vs-col--old ul li {
  color: var(--light-gray);
  text-decoration: line-through;
}

.hero__vs-col--new {
  background: var(--white);
}

.hero__vs-col--new ul li {
  color: var(--black);
  font-weight: 500;
}

.hero__vs-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--rule);
}

.hero__vs-col--old .hero__vs-label {
  color: var(--light-gray);
}

.hero__vs-col--new .hero__vs-label {
  color: var(--signal-red);
}

.hero__vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  width: 40px;
}

.hero__vs-divider span {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--signal-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__vs ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__vs ul li {
  font-size: var(--text-sm);
  line-height: 1.5;
  position: relative;
  padding-left: var(--space-5);
}

.hero__vs-col--new ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 2px;
  background: var(--signal-red);
}

.hero__vs-col--old ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 2px;
  background: var(--stone);
}

@media (max-width: 639px) {
  .hero__vs {
    grid-template-columns: 1fr;
  }
  .hero__vs-divider {
    width: 100%;
    height: 40px;
  }
}

/* 9. Value Props / Metric Cards
   ------------------------------------------ */
.metric-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.metric-card {
  background: var(--warm-white);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.metric-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--signal-red);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.metric-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  font-weight: 700;
}

/* Value cards */
.value-card {
  padding: var(--space-8);
  border: 1px solid var(--rule);
  background: var(--white);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--signal-red);
}

.value-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--stone);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.value-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.value-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* 10. Feature Rows
   ------------------------------------------ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--rule);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row h3 {
  margin-bottom: var(--space-4);
}

.feature-row p {
  margin-bottom: var(--space-6);
}

.feature-row__visual {
  background: var(--white);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Flow diagram mockup */
.flow-mockup {
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.flow-mockup__step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.flow-mockup__dot {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  background: var(--black);
}

.flow-mockup__dot--red { background: var(--signal-red); }

.flow-mockup__bar {
  flex: 1;
  height: 32px;
  background: var(--warm-white);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
}

.flow-mockup__bar-inner {
  height: 6px;
  border-radius: 3px;
  background: var(--stone);
}

.flow-mockup__line {
  width: 1px;
  height: 12px;
  background: var(--rule);
  margin-left: 15px;
}

/* Calc mockup */
.calc-mockup {
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  background: var(--warm-white);
}

.calc-mockup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--black);
}

.calc-mockup__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.calc-mockup__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--signal-red);
}

.calc-mockup__rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-mockup__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.calc-mockup__row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-mockup__row-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
}

/* API mockup */
.api-mockup {
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  background: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--light-gray);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow: hidden;
}

.api-mockup__line--comment { color: #555; }
.api-mockup__line--key { color: var(--signal-red); }
.api-mockup__line--string { color: #8EC07C; }

/* Launch Timeline */
.launch-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: var(--space-4);
}

.launch-timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--space-4) + 23px);
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.launch-timeline__item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  position: relative;
}

.launch-timeline__marker {
  width: 48px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--light-gray);
  text-align: center;
  position: relative;
  z-index: 1;
}

.launch-timeline__item--red .launch-timeline__marker {
  color: var(--signal-red);
}

.launch-timeline__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.launch-timeline__content strong {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--warm-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.launch-timeline__item--red .launch-timeline__content strong {
  color: var(--signal-red);
}

.launch-timeline__content span {
  font-size: var(--text-sm);
  color: var(--light-gray);
  line-height: 1.5;
}

/* 11. Stats Band
   ------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--signal-red);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.section--black .stat__number {
  color: var(--signal-red);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--light-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* 12. CTA Section
   ------------------------------------------ */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  margin: 0 auto var(--space-8);
}

.cta-section .hero__ctas {
  justify-content: center;
}

/* 13. Features Page
   ------------------------------------------ */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-12);
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero p {
  font-size: var(--text-xl);
}

.page-hero.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.step {
  background: var(--white);
  padding: var(--space-8);
  position: relative;
}

.step__number {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--stone-light);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.feature-card {
  padding: var(--space-8);
  background: var(--white);
  transition: all var(--transition-base);
}

.feature-card:hover {
  background: var(--warm-white);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 24px;
  background: var(--signal-red);
  color: var(--white);
}

.feature-card__icon--black { background: var(--black); }

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.feature-card__list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-card__list li {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  padding-left: var(--space-5);
  position: relative;
}

.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--signal-red);
}

/* Integrations */
.integrations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.integration-logo {
  padding: var(--space-5) var(--space-8);
  border: 1px solid var(--rule);
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
  transition: all var(--transition-base);
}

.integration-logo:hover {
  border-color: var(--signal-red);
  color: var(--black);
}

/* Tech highlights */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--black);
}

.tech-item__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--signal-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
}

.tech-item h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-item p {
  font-size: var(--text-sm);
  color: var(--light-gray);
  line-height: 1.6;
}

/* 14. Pricing Page
   ------------------------------------------ */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card--featured {
  background: var(--black);
  color: var(--warm-white);
}

.pricing-card--featured h3,
.pricing-card--featured h4 {
  color: var(--warm-white);
}

.pricing-card--featured p {
  color: var(--light-gray);
}

.pricing-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--signal-red);
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  margin-bottom: var(--space-6);
}

.pricing-card--featured .pricing-card__desc {
  color: var(--light-gray);
}

.pricing-card__price {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--rule);
}

.pricing-card--featured .pricing-card__price {
  border-color: rgba(255,255,255,0.1);
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.pricing-card--featured .pricing-card__amount {
  color: var(--signal-red);
}

.pricing-card__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--light-gray);
  margin-left: var(--space-1);
  letter-spacing: 0.05em;
}

.pricing-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--mid-gray);
}

.pricing-card--featured .pricing-card__feature {
  color: var(--light-gray);
}

.pricing-card__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: var(--signal-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.pricing-card__check::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--white);
  border-bottom: 1.5px solid var(--white);
  transform: rotate(-45deg);
  margin-top: -1px;
}

.pricing-card__feature--disabled {
  opacity: 0.35;
}

.pricing-card__feature--disabled .pricing-card__check {
  background: var(--light-gray);
}

.pricing-card .btn {
  width: 100%;
}

/* Extras strip */
.extras-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: var(--space-12);
}

.extras-card {
  background: var(--white);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.extras-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--signal-red);
  white-space: nowrap;
}

.extras-card__info h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.extras-card__info p {
  font-size: var(--text-sm);
}

/* Comparison Table */
.comparison {
  overflow-x: auto;
  margin-top: var(--space-16);
}

.comparison table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border: 1px solid var(--rule);
}

.comparison th,
.comparison td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--rule);
}

.comparison th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
}

.comparison th:not(:first-child),
.comparison td:not(:first-child) {
  text-align: center;
}

.comparison td:first-child {
  color: var(--mid-gray);
}

.comparison tr:nth-child(even) td {
  background: rgba(0,0,0,0.015);
}

.comparison .check {
  color: var(--signal-red);
  font-weight: 700;
}

.comparison .cross {
  color: var(--stone);
}

/* FAQ */
.faq {
  max-width: 768px;
  margin: 0 auto;
  border-top: 2px solid var(--black);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--black);
  cursor: pointer;
  transition: color var(--transition-base);
}

.faq__question:hover {
  color: var(--signal-red);
}

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  margin-left: var(--space-4);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--black);
  transition: transform 0.3s ease;
}

.faq__icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.faq__answer-inner {
  padding-bottom: var(--space-6);
}

.faq__answer-inner p {
  font-size: var(--text-base);
  line-height: 1.7;
}

/* 15. Contact Modal
   ------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  max-width: 460px;
  width: 100%;
  padding: var(--space-10);
  border: 1px solid var(--rule);
  transform: translateY(12px);
  transition: transform 0.4s var(--ease-out-expo);
  position: relative;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-size: var(--text-xl);
  transition: color var(--transition-base);
}

.modal__close:hover {
  color: var(--black);
}

.modal h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.modal__subtitle {
  color: var(--mid-gray);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.modal__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.modal__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.modal__row-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--signal-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.modal__row-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-gray);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.modal__row-value {
  font-size: var(--text-base);
  color: var(--black);
  font-weight: 500;
}

.modal__row-value a {
  color: var(--signal-red);
  transition: color var(--transition-base);
}

.modal__row-value a:hover {
  color: var(--signal-red-dark);
}

/* 16. Footer
   ------------------------------------------ */
.footer {
  background: var(--black);
  color: var(--warm-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  color: var(--light-gray);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-gray);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(245, 242, 237, 0.5);
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: var(--signal-red);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--light-gray);
  letter-spacing: 0.08em;
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-links a {
  font-size: var(--text-xs);
  color: var(--light-gray);
  transition: color var(--transition-base);
}

.footer__bottom-links a:hover {
  color: var(--signal-red);
}

/* 17. Responsive
   ------------------------------------------ */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .extras-strip { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__hamburger { display: none; }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

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

  .feature-row.reverse .feature-row__content { order: 2; }
  .feature-row.reverse .feature-row__visual { order: 1; }

  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .metric-strip { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pricing-cards { grid-template-columns: repeat(3, 1fr); }
  .feature-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  h1 { font-size: var(--text-7xl); }
  .container { padding: 0 var(--space-8); }
}

@media (max-width: 639px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .section { padding: var(--space-16) 0; }
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-12)); padding-bottom: var(--space-12); }
  .page-hero { padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-8); }

  .hero__compare { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero__compare-arrow { transform: rotate(90deg); margin: 0 auto; }

  .pricing-card__amount { font-size: var(--text-3xl); }
  .faq__question { font-size: var(--text-base); }
}

/* Strikethrough with tooltip */
.struck {
  text-decoration: line-through;
  opacity: 0.45;
  position: relative;
  cursor: help;
}

.struck .struck__tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  padding: var(--space-3) var(--space-4);
  width: 280px;
  white-space: normal;
  text-decoration: none;
  z-index: 50;
  pointer-events: none;
  text-align: left;
}

.struck .struck__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--black);
}

.struck:hover {
  opacity: 0.7;
}

.struck:hover .struck__tip {
  display: block;
}

/* Struck inside tables */
td.struck {
  position: relative;
}

@media print {
  .nav, .modal-overlay, .mobile-menu, .mobile-menu__overlay { display: none !important; }
  body { background: white; color: black; }
  .section--black, .section--red { background: white; color: black; }
}
