:root {
  color-scheme: dark;
  --void: #000000;
  --ink: #ffffff;
  --blue: #0099ff;
  --silver: #a6a6a6;
  --ghost: rgba(255, 255, 255, 0.5);
  --frosted: rgba(255, 255, 255, 0.08);
  --frosted-hover: rgba(255, 255, 255, 0.14);
  --near-black: #0a0a0a;
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --blue-glow: rgba(0, 153, 255, 0.12);
  --blue-ring: rgba(0, 153, 255, 0.25);
  --shadow-float: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px rgba(0,0,0,0.5);
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 30px rgba(0,0,0,0.3);
  --container: min(1200px, calc(100vw - 48px));
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection { background: var(--blue); color: var(--void); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 999;
  transform: translateY(-200%);
  background: var(--ink); color: var(--void);
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.875rem;
}
.skip-link:focus { transform: translateY(0); }

.site-shell { position: relative; z-index: 1; }

/* === NAV === */
.nav {
  width: var(--container);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  padding: 16px 0;
}

.brand-mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--silver);
  font-size: 0.875rem;
  font-weight: 400;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--frosted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--frosted-hover); border-color: var(--border-hover); }

/* === SECTIONS === */
.section-pad {
  width: var(--container);
  margin: 0 auto;
  padding: 100px 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-lede, .manifesto p, .section-head p, .split-copy p, .partner-panel p, .final-inner > p {
  color: var(--silver);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 580px;
}

/* === BUTTONS — solid, not overly round === */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--ink);
  color: var(--void);
  font-weight: 600;
}
.btn-primary:hover { background: rgba(255,255,255,0.9); }

.btn-ghost {
  background: var(--frosted);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--frosted-hover); border-color: var(--border-hover); }

/* === PROOF STRIP === */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proof-strip span {
  border-radius: 6px;
  padding: 5px 10px;
  background: var(--frosted);
  border: 1px solid var(--border);
  color: var(--ghost);
  font-size: 0.75rem;
  font-weight: 500;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, transparent 0%, var(--void) 70%),
    linear-gradient(180deg, var(--void) 0%, transparent 20%, transparent 80%, var(--void) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  max-width: 1200px;
}

/* === MANIFESTO === */
.manifesto {
  text-align: center;
  max-width: 900px;
}
.manifesto h2 { margin-inline: auto; }
.manifesto p { margin-inline: auto; }

/* === SECTION HEAD === */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

/* === TEMPLATE GRID === */
.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.template-card {
  border-radius: 12px;
  background: var(--near-black);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}
.template-card:hover {
  border-color: var(--blue-ring);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--blue-glow), 0 20px 40px rgba(0,0,0,0.4);
}
.template-card.featured {
  border-color: var(--blue-ring);
  box-shadow: 0 0 0 1px var(--blue-glow);
}

.template-screenshot {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.template-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.template-card:hover .template-screenshot img {
  transform: scale(1.04);
}

.template-info {
  padding: 20px;
}
.template-info p:not(.mini-label) {
  color: var(--silver);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.mini-label {
  margin-bottom: 6px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* === SPLIT SECTION === */
.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 48px;
  align-items: center;
}
.rescue-list {
  border-radius: 12px;
  background: var(--near-black);
  border: 1px solid var(--border);
  padding: 8px;
}
.rescue-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.4;
}
.rescue-list div:last-child { border-bottom: none; }
.step-num {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
}

/* === PARTNERS === */
.partner-panel {
  border-radius: 16px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--near-black);
  border: 1px solid var(--blue-ring);
  box-shadow: 0 0 0 1px var(--blue-glow), 0 20px 60px rgba(0,0,0,0.3);
}
.partner-panel h2 { max-width: 800px; }
.commission-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.commission-row span {
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--silver);
  background: var(--frosted);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}
.commission-row strong { color: var(--ink); font-weight: 600; }

/* === PRICING === */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  padding: 28px;
  min-height: 200px;
  border-radius: 12px;
  background: var(--near-black);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.price-card:hover { border-color: var(--border-hover); }
.price-card.highlighted {
  border-color: var(--blue-ring);
  box-shadow: 0 0 0 1px var(--blue-glow);
}
.price-label {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.price-range { color: var(--silver); font-weight: 400; }
.price-desc { color: var(--silver); font-size: 0.875rem; line-height: 1.5; }

/* === FINAL CTA === */
.final-cta { padding-top: 60px; }
.final-inner {
  border-radius: 16px;
  padding: clamp(28px, 5vw, 64px);
  text-align: center;
  background: var(--near-black);
  border: 1px solid var(--blue-ring);
  box-shadow: 0 0 0 1px var(--blue-glow), 0 20px 60px rgba(0,0,0,0.3);
}
.final-inner p { margin-inline: auto; }
.access-form {
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr auto;
  gap: 8px;
  max-width: 880px;
  text-align: left;
}
.access-form label {
  display: grid;
  gap: 6px;
  color: var(--silver);
  font-weight: 500;
  font-size: 0.75rem;
}
input, select {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: rgba(255,255,255,0.35); }
input:focus, select:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 1px var(--blue);
}
.access-form .btn { align-self: end; }
.form-note {
  margin-top: 14px !important;
  color: var(--ghost) !important;
  font-size: 0.75rem !important;
}

/* === FOOTER === */
.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  color: var(--silver);
}
.footer p { font-size: 0.8125rem; }

/* === REVEAL === */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .template-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 809px) {
  .nav-links { display: none; }
  .hero, .split-section, .section-head, .access-form, .footer { grid-template-columns: 1fr; }
  .hero { gap: 0; }
  .template-grid, .price-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 64px 0; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  h2 { font-size: clamp(1.75rem, 9vw, 2.75rem); }
  .access-form { text-align: left; }
  .nav { backdrop-filter: blur(8px); }
}

@media (max-width: 640px) {
  :root { --container: min(100vw - 28px, 1200px); }
  .nav-cta { display: none; }
  .hero-actions, .btn { width: 100%; }
  .hero-bg img { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
