:root {
  --paper: #f5efe4;
  --paper-deep: #eadfce;
  --ink: #1d2430;
  --muted: #6d7581;
  --red: #cf1018;
  --ember: #ff8a22;
  --teal: #128897;
  --blue: #2e5fd0;
  --line: rgba(29, 36, 48, 0.14);
  --shadow: 0 24px 80px rgba(45, 32, 18, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 138, 34, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(18, 136, 151, 0.16), transparent 30rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--paper) 42%, #f8f3ea 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(29, 36, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.ambient {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}
.ambient-fire { background: var(--ember); top: 12%; left: -16rem; }
.ambient-teal { background: var(--teal); right: -18rem; bottom: 8%; }

.site-header,
.section-shell,
.proof-strip,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand img {
  width: 84px;
  height: 84px;
  display: block;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.74);
  box-shadow: 0 12px 40px rgba(29, 36, 48, 0.08);
}
.nav a,
.header-cta,
.btn {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav a { padding: 10px 14px; border-radius: 999px; color: #3f4650; }
.nav a:hover { background: rgba(207, 16, 24, 0.08); color: var(--red); }
.header-cta {
  border: 1px solid rgba(207, 16, 24, 0.26);
  color: var(--red);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 13px 18px;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  align-items: center;
  gap: 58px;
  padding: 74px 0 54px;
}

.hero h1,
.section-heading h2,
.security-copy h2,
.intake-section h2 {
  letter-spacing: -0.06em;
  line-height: 1.14;
  margin: 0;
}
.hero h1 {
  font-size: clamp(3.4rem, 6.8vw, 6.35rem);
  max-width: 820px;
}
.hero-copy p,
.section-heading p,
.security-copy p,
.intake-section p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}
.hero-copy p { max-width: 680px; }
.hero-actions, .intake-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--ember)); color: white; box-shadow: 0 18px 46px rgba(207, 16, 24, 0.25); }
.btn-secondary { background: rgba(255, 255, 255, 0.72); border-color: var(--line); }
.scope-note {
  margin-top: 28px;
  max-width: 680px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #7c5f46;
}

.hero-system { position: relative; min-height: 520px; }
.routing-card {
  background: rgba(255, 252, 246, 0.86);
  border: 1px solid rgba(29, 36, 48, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px;
}
.main-card { transform: rotate(1.5deg); }
.card-topline,
.packet-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 16px;
}
.packet-bar { border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin: 18px 0 0; }
.route-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  margin: 12px 0;
  border: 1px solid transparent;
}
.route-row.active { border-color: rgba(207, 16, 24, 0.22); }
.route-row.review { background: rgba(46, 95, 208, 0.07); }
.route-row small { display: block; color: var(--muted); margin-top: 4px; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.red { background: var(--red); } .orange { background: var(--ember); } .blue { background: var(--blue); }
.floating-tag {
  position: absolute;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.78rem;
  background: var(--ink);
  color: white;
  padding: 11px 14px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(29,36,48,.18);
}
.tag-one { top: 22px; right: 16px; }
.tag-two { bottom: 86px; left: -22px; background: var(--teal); }
.tag-three { bottom: 12px; right: 72px; background: var(--red); }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: 0 18px 60px rgba(29, 36, 48, 0.08);
}
.proof-strip div { background: rgba(255, 252, 246, 0.78); padding: 24px; }
.proof-strip strong { display: block; font-size: 1.08rem; }
.proof-strip span { display: block; color: var(--muted); margin-top: 6px; line-height: 1.45; }

.section-shell { padding: 92px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 36px; }
.section-heading.compact { display: block; }
.section-heading h2,
.security-copy h2,
.intake-section h2 { font-size: clamp(2.8rem, 5vw, 5rem); max-width: 780px; }
.section-heading p { max-width: 420px; margin: 0; }
.service-grid,
.security-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-grid article,
.security-grid article,
.plan-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.72);
  box-shadow: 0 18px 60px rgba(29, 36, 48, 0.06);
}
.service-grid span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--red);
  font-weight: 700;
}
.service-grid h3,
.security-grid h3 { font-size: 1.45rem; margin: 18px 0 10px; letter-spacing: -0.03em; }
.service-grid p,
.security-grid p { color: var(--muted); line-height: 1.6; margin: 0; }

.plans-section { padding-top: 44px; }
.plan-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
}
.plan-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -72px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 138, 34, 0.12);
}
.plan-card.featured {
  background: linear-gradient(150deg, rgba(255, 252, 246, 0.94), rgba(244, 223, 198, 0.82));
  border-color: rgba(207, 16, 24, 0.22);
  transform: translateY(-10px);
}
.plan-label {
  display: inline-flex;
  border: 1px solid rgba(207, 16, 24, 0.22);
  color: var(--red);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.58);
}
.plan-card h3 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 24px 0 12px;
}
.plan-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.plan-card ul {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plan-card li {
  display: flex;
  gap: 10px;
  color: #3f4650;
  line-height: 1.4;
}
.plan-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 7px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--red), var(--ember));
}
.pricing-note {
  max-width: 860px;
  margin: 22px auto 0;
  text-align: center;
  color: #7c5f46;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

.process-section { padding-top: 42px; }
.process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink);
}
.process-rail div {
  background: #fffaf1;
  min-height: 260px;
  padding: 28px 22px;
  border-right: 1px solid rgba(29,36,48,.22);
}
.process-rail div:nth-child(even) { background: #f1e4d1; }
.process-rail div:last-child { border-right: 0; }
.process-rail strong { font-size: 1.35rem; display: block; margin-bottom: 18px; }
.process-rail span { color: var(--muted); line-height: 1.55; }

.order-ready-section { padding-top: 32px; }
.order-ready-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 18px 60px rgba(29, 36, 48, 0.08);
}
.order-ready-list div {
  min-height: 210px;
  padding: 26px;
  background: rgba(255, 252, 246, 0.78);
}
.order-ready-list strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 14px;
}
.order-ready-list span {
  color: var(--muted);
  line-height: 1.55;
}

.security-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.security-copy {
  position: sticky;
  top: 120px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(29,36,48,.96), rgba(40,54,64,.96));
  color: white;
  box-shadow: var(--shadow);
}
.security-copy p { color: rgba(255,255,255,.76); }
.security-grid { grid-template-columns: repeat(2, 1fr); }

.intake-section {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  padding: 46px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff8ed, #f4dfc6 55%, rgba(255, 138, 34, 0.28));
  border: 1px solid rgba(207, 16, 24, 0.18);
  box-shadow: var(--shadow);
}
.intake-section p { max-width: 690px; }

.site-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.site-footer div { margin-right: auto; }
.site-footer p { margin: 4px 0 0; }
.site-footer .footer-meta { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; }
.site-footer a { color: var(--red); font-weight: 700; text-decoration: none; }

[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-ready [data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .brand img { width: 64px; height: 64px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 42px; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4.2rem); }
  .hero-system { min-height: 420px; }
  .proof-strip, .service-grid, .security-grid, .process-rail, .plan-grid, .order-ready-list { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .section-heading, .security-section, .intake-section { display: block; }
  .section-heading p { margin-top: 18px; }
  .process-rail div { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(29,36,48,.18); }
  .security-copy { position: static; margin-bottom: 16px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
