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

:root {
  --type--1: 0.75rem;
  --type-0: 1rem;
  --type-1: 1.25rem;
  --type-2: 1.563rem;
  --type-3: 1.953rem;
  --type-4: 2.441rem;
  --type-5: 3.052rem;
  --type-6: 3.815rem;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  --color-bg: #09090b;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text: #f3f0ea;
  --color-muted: #a7a29a;
  --color-accent: #a33a2b;
  --color-accent-strong: #c44936;
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", -apple-system, sans-serif;
  --text-dim: rgba(255, 255, 255, 0.18);
  --accent-glow: rgba(163, 58, 43, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
.hero h1 {
  font-size: clamp(var(--type-4), 5vw, var(--type-6));
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 200;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(var(--type-3), 3.5vw, var(--type-5));
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 300;
  text-transform: uppercase;
}

h3 {
  font-size: var(--type-2);
  line-height: 1.15;
  font-weight: 600;
}

p,
li,
a,
input,
textarea,
button,
label {
  font-size: var(--type-0);
}

small,
.hero__badge,
.gauge-card__label,
.sticky-nav__brand,
.sticky-nav__message,
.section-label,
.section-kicker,
.link-muted {
  font-size: var(--type--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__subhead {
  font-size: var(--type-1);
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 40rem;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
}

section {
  position: relative;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.section,
.spec-sheet,
.compare,
.final-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section__inner,
.container,
.shell,
.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

section h2 {
  margin-bottom: 1rem;
}

section p + p {
  margin-top: 1rem;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(163, 58, 43, 0.2), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #111114 0%, #09090b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.08) 0%, rgba(9, 9, 11, 0.36) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0 5rem;
  display: grid;
  gap: var(--space-4);
}

.hero__badge-row {
  display: flex;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
}

.hero__copy {
  display: grid;
  gap: var(--space-3);
  max-width: 56rem;
}

.hero__proof {
  margin-top: var(--space-2);
}

.hero__stack-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
.hero__stack-label {
  color: var(--color-accent);
  font-weight: 700;
}
.hero__stack-name {
  color: var(--color-muted);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.hero__trust {
  color: var(--color-muted);
  font-size: var(--type--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(163, 58, 43, 0.32);
  font-weight: 700;
}

.button--primary:hover {
  background: var(--color-accent-strong);
}

.button--secondary {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
  font-weight: 500;
}

.button--secondary:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.18);
}

.button--cta {
  min-height: 3.75rem;
  padding: 0 1.75rem;
  font-size: var(--type-0);
}

.button--ghost {
  min-height: 3rem;
  padding: 0 1.125rem;
  font-size: var(--type--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauge-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
}

.gauge-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.gauge-card--featured {
  background: linear-gradient(180deg, rgba(163, 58, 43, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(163, 58, 43, 0.45);
}

.gauge-card__label {
  color: var(--color-muted);
}

.gauge-card__value {
  font-size: var(--type-2);
  line-height: 1;
  font-weight: 800;
  color: var(--color-text);
}

.sticky-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 1000;
  width: min(72rem, calc(100% - 1.5rem));
  transform: translateX(-50%) translateY(-1rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.sticky-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sticky-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.sticky-nav__brand {
  color: var(--color-text);
  text-decoration: none;
}

.sticky-nav__content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sticky-nav__message {
  color: var(--color-muted);
}

.sticky-nav__cta {
  min-height: 2.75rem;
  padding: 0 1.25rem;
}

.section-kicker,
.section-label,
.link-muted {
  font-family: var(--mono);
}

.section-kicker,
.section-label {
  color: var(--color-accent);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title {
  margin-bottom: 56px;
}

.stack-grid,
.build-grid,
.fit-grid,
.spec-grid,
.spec-sheet__grid {
  display: grid;
  gap: 1rem;
}

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

.build-grid,
.spec-grid,
.spec-sheet__grid {
  grid-template-columns: repeat(3, 1fr);
}

.stack-card,
.build-card,
.fit-card,
.spec-card,
.spec-sheet__item {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.025);
  padding: 1.5rem;
}

.stack-card {
  position: relative;
  transition: all 0.3s;
}

.stack-card:hover {
  border-color: var(--color-accent);
  background: rgba(163, 58, 43, 0.06);
}

.stack-card:hover .stack-num {
  color: var(--color-accent);
}

.stack-num {
  font-size: var(--type-5);
  font-weight: 900;
  font-family: var(--mono);
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.stack-card h3,
.build-card h3,
.fit-card h3,
.spec-sheet__item h3 {
  margin-bottom: 14px;
}

.stack-card p,
.build-card p,
.spec-card p,
.compare-copy,
.final-cta .sub-text,
.fit-card li,
.fit-redirect,
.spec-sheet__item p {
  color: var(--color-muted);
}

.build-card {
  position: relative;
  overflow: hidden;
}

.build-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #bb4534, transparent);
}

.build-card::after {
  content: attr(data-step);
  position: absolute;
  right: -8px;
  bottom: -20px;
  font-size: 140px;
  font-weight: 900;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.015);
  line-height: 1;
  pointer-events: none;
}

.fit-card h3 {
  font-family: var(--mono);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.2;
}

.fit-card.good h3 {
  color: var(--green);
  border-color: var(--green-dim);
}

.fit-card.not h3 {
  color: var(--color-muted);
}

.fit-card ul {
  list-style: none;
}

.fit-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fit-card li::before {
  content: "›";
  color: var(--text-dim);
  font-weight: 700;
}

.fit-card.good li::before {
  color: var(--green);
}

.fit-card li:last-child {
  border: none;
}

.fit-redirect {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.fit-redirect a {
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(163, 58, 43, 0.3);
}

.spec-card,
.spec-sheet__item {
  position: relative;
  transition: border-color 0.3s;
  border-radius: 1rem;
}

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

.compare {
  text-align: center;
}

.compare-copy {
  max-width: 560px;
  margin: 0 auto 36px;
}

.final-cta {
  text-align: center;
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(100px);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(var(--type-5), 7vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 20px;
  position: relative;
}

.final-cta .sub-text {
  margin-bottom: 40px;
  position: relative;
}

.link-muted {
  color: rgba(243, 240, 234, 0.72);
}

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

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  color: var(--text-dim);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer a {
  color: var(--color-muted);
}

#intake,
#spec-sheet,
#top,
#services,
#process,
#faq,
#contact {
  scroll-margin-top: 96px;
}

@media (max-width: 820px) {
  .build-grid,
  .stack-grid,
  .fit-grid,
  .spec-grid,
  .spec-sheet__grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero__inner {
    width: min(calc(100% - 1.5rem), 40rem);
    padding: 6rem 0 4rem;
    gap: var(--space-3);
  }

  .gauge-cluster {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button--cta,
  .button--ghost,
  .sticky-nav__cta {
    width: 100%;
  }

  .sticky-nav {
    top: 0.75rem;
    width: calc(100% - 1rem);
  }

  .sticky-nav__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .sticky-nav__content {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  section {
    padding: 4rem 1rem;
  }
}

.hero-headline {
  max-width: 12ch;
  line-height: 0.95;
  text-wrap: balance;
}

.headline-word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  animation: headline-word-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.headline-word:last-child {
  margin-right: 0;
}

.headline-word:nth-child(1) { animation-delay: 0.05s; }
.headline-word:nth-child(2) { animation-delay: 0.12s; }
.headline-word:nth-child(3) { animation-delay: 0.19s; }
.headline-word:nth-child(4) { animation-delay: 0.26s; }
.headline-word:nth-child(5) { animation-delay: 0.33s; }
.headline-word:nth-child(6) { animation-delay: 0.40s; }
.headline-word:nth-child(7) { animation-delay: 0.47s; }
.headline-word:nth-child(8) { animation-delay: 0.54s; }
.headline-word:nth-child(9) { animation-delay: 0.61s; }
.headline-word:nth-child(10) { animation-delay: 0.68s; }

@keyframes headline-word-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.reveal-card {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--card-stagger, 0) * 90ms);
  will-change: opacity, transform, filter;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-card[data-stagger="0"] { --card-stagger: 0; }
.reveal-card[data-stagger="1"] { --card-stagger: 1; }
.reveal-card[data-stagger="2"] { --card-stagger: 2; }
.reveal-card[data-stagger="3"] { --card-stagger: 3; }
.reveal-card[data-stagger="4"] { --card-stagger: 4; }
.reveal-card[data-stagger="5"] { --card-stagger: 5; }
.reveal-card[data-stagger="6"] { --card-stagger: 6; }
.reveal-card[data-stagger="7"] { --card-stagger: 7; }
.reveal-card[data-stagger="8"] { --card-stagger: 8; }
.reveal-card[data-stagger="9"] { --card-stagger: 9; }

button,
a,
[role="button"],
input[type="submit"],
input[type="button"] {
  min-height: 44px;
}

button,
[role="button"],
input[type="submit"],
input[type="button"] {
  min-width: 44px;
}

a {
  display: inline-flex;
  align-items: center;
}

nav a,
.hero a,
.button,
.button--primary,
.button--secondary,
.link-muted,
.sticky-nav__brand,
.sticky-nav__cta,
.fit-redirect a,
.footer a {
  min-height: 44px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

@media (max-width: 639px) {
  .build-grid,
  .stack-grid,
  .fit-grid,
  .spec-sheet__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    max-width: 9ch;
    font-size: clamp(2.5rem, 11vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .headline-word,
  .reveal-card,
  .reveal-card.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
