/* DarkFab's static holding page: typography, atmosphere, and responsive layout. */
:root {
  --ink: oklch(8% 0.016 185);
  --paper: oklch(96% 0.01 155);
  --muted: oklch(70% 0.03 171);
  --faint: oklch(65% 0.026 171 / 0.62);
  --line: oklch(77% 0.04 171 / 0.2);
  --accent: oklch(77% 0.1 171);
  --accent-soft: oklch(86% 0.13 119);
  --scene: oklch(20% 0.022 176);
  --surface: oklch(10% 0.022 182 / 0.72);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", sans-serif;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(4% 0.012 185 / 0.5), transparent 58%),
    linear-gradient(115deg, var(--ink), var(--scene)),
    url("assets/darkfab-hero-landscape.png") 65% 42% / cover no-repeat;
  background-blend-mode: normal, color, normal;
  content: "";
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, oklch(6% 0.018 274 / 0.7) 92%, var(--ink));
  content: "";
  pointer-events: none;
}

a { color: inherit; }

.site-shell {
  display: grid;
  grid-template-rows: auto minmax(490px, 1fr) auto auto;
  width: min(100%, 1560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 4.4vw, 70px);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-family: "Gabarito", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.header-link {
  padding: var(--space-sm) 2px;
  border-bottom: 1px solid var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.header-link span { margin-left: 20px; font-size: 1.5em; line-height: 0; }

.hero {
  display: flex;
  align-items: end;
  padding: clamp(88px, 15vh, 172px) 0 clamp(40px, 9vh, 98px);
}

.hero-copy { max-width: 1080px; }

.eyebrow {
  margin: clamp(30px, 5vw, 68px) 0 0;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

h1, h2, p { margin: 0; }

h1 {
  font-family: "Gabarito", sans-serif;
  font-size: clamp(3.4rem, 6.05vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

h1 em { color: var(--accent); font-style: normal; }

.rule {
  display: block;
  width: 70px;
  height: 1px;
  margin: clamp(26px, 3vw, 38px) 0;
  background: var(--paper);
}

.rule::after {
  display: block;
  width: 5px;
  height: 5px;
  margin-left: calc(100% + 9px);
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-2px);
}

.intro {
  color: var(--muted);
  font-size: clamp(0.92rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

.principles {
  display: grid;
  /* Keep the complete story visible together on every non-phone viewport. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(var(--space-2xl), 5vw, 88px);
  padding: clamp(var(--space-2xl), 5vw, 80px) clamp(var(--space-xl), 5vw, 80px);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 80px oklch(3% 0.015 275 / 0.25);
  backdrop-filter: blur(24px) saturate(0.8);
  -webkit-backdrop-filter: blur(24px) saturate(0.8);
}

.principle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 188px;
  min-width: 0;
  padding: var(--space-xs) 0 0;
}

.principle h2,
.waitlist-card h2 {
  margin: 2px 0 var(--space-md);
  font-family: "Gabarito", sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.principle p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.waitlist-card p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.principle-icon {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  margin-top: var(--space-md);
  padding: clamp(var(--space-xl), 4vw, var(--space-3xl)) clamp(var(--space-xl), 5vw, 80px);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 80px oklch(3% 0.015 275 / 0.25);
  backdrop-filter: blur(24px) saturate(0.8);
  -webkit-backdrop-filter: blur(24px) saturate(0.8);
}

.waitlist-card h2 { margin-bottom: var(--space-sm); font-size: clamp(1.45rem, 2vw, 1.9rem); letter-spacing: -0.025em; text-transform: none; }

form { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 12px; }

input, button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input { min-width: 0; width: 100%; padding: 0 var(--space-md); background: oklch(8% 0.018 184 / 0.8); color: var(--paper); }
input::placeholder { color: var(--faint); }

button { border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-soft)); color: var(--ink); font-size: 1.75rem; }

input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

button:not(:disabled) { cursor: pointer; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-top: clamp(26px, 3.8vw, 48px);
  color: var(--faint);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

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

@media (max-width: 940px) {
  body::before { background-position: 63% 50%; }
  .site-shell { grid-template-rows: auto auto auto auto; }
  .hero { min-height: 570px; align-items: center; padding: 90px 0 62px; }
}

@media (max-width: 720px) {
  /* Preserve the product narrative as one panel instead of turning it into a list. */
  .principles {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
  }

  .principle,
  .waitlist-card { scroll-snap-align: start; }

  .waitlist-card { grid-template-columns: 1fr; }
}

@media (min-width: 980px) {
  .hero-line { white-space: nowrap; }
}

@media (max-width: 620px) {
  body::before { background-position: 66% 50%; }
  .site-shell { padding: 24px 20px; }
  .brand-mark { width: 31px; height: 31px; }
  .header-link { font-size: 0.82rem; }
  .header-link span { margin-left: 8px; }
  .hero { min-height: 510px; padding-top: 76px; }
  h1 { font-size: clamp(3.3rem, 14.5vw, 4.75rem); }
  .eyebrow { letter-spacing: 0.3em; }
  .principles { padding: var(--space-xl); }
  .site-footer { font-size: 0.67rem; }
}

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