/* ==========================================================================
   Frankenstein — Landing Page
   Design tokens, global styles, sections 1–6, editorial typography
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --color-base: #0E0E0E;
  --color-surface: #1A1A1A;
  --color-surface-elevated: #222222;
  --color-text: #E8E4DC;
  --color-accent: #E8954B;

  --opacity-heading: 1;
  --opacity-body: 0.70;
  --opacity-meta: 0.45;
  --opacity-hairline: 0.10;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --border-hairline: 1px solid rgba(232, 228, 220, 0.10);

  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 228, 220, 0.04) 0%, transparent 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Focus Rings --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* --- Typography --- */
h1, h2 {
  font-family: var(--font-mono);
  color: var(--color-text);
  opacity: var(--opacity-heading);
}

h1 {
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
}

p {
  opacity: var(--opacity-body);
  max-width: 560px;
}

strong {
  font-weight: 500;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: block;
}

/* --- Layout --- */
.section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: 80px 24px;
  position: relative;
}

/* Section dividers — hairline between sections (not on hero) */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  max-width: 1280px;
  height: 1px;
  background: rgba(232, 228, 220, 0.08);
}

/* Hide dividers on small mobile — too tight */
@media (max-width: 479px) {
  .section + .section::before {
    display: none;
  }
}

.section-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Links --- */
a {
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 200ms ease;
}

a:hover::after {
  width: 100%;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-base);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter 120ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary::after {
  display: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  padding: 12px 24px;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter 120ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn-ghost::after {
  display: none;
}

.btn-ghost:hover {
  filter: brightness(1.2);
}

/* --- Section Fade-in --- */
.section-inner {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.section-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   SECTION 1 — Hero (text-only)
   ========================================================================== */

.hero {
  padding-top: 64px;
  padding-bottom: 40px;
}

.hero .section-inner {
  max-width: 900px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  margin-bottom: 24px;
}

.hero-subhead {
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-cue 2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 16px;
  height: 16px;
}

@keyframes bounce-cue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

/* ==========================================================================
   SECTION 2 — The Gap
   ========================================================================== */

.gap-section .section-inner {
  max-width: 560px;
}

.gap-text h2 {
  margin-bottom: 24px;
}

.gap-text p {
  margin-bottom: 16px;
}

.gap-text p:last-of-type {
  margin-bottom: 0;
}

/* Tool marquee — infinite scrolling tool names */
.tool-marquee {
  margin-top: 64px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tool-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.tool-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  opacity: 0.30;
  padding: 10px 20px;
  border: 1px solid rgba(232, 228, 220, 0.08);
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tool-marquee-track {
    animation: none;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   SECTION 3 — What We Do
   ========================================================================== */

.what-section .section-inner {
  max-width: 720px;
}

.what-text h2 {
  margin-bottom: 24px;
}

.what-text p {
  margin-bottom: 16px;
}

.what-callout {
  border-left: 2px solid rgba(232, 149, 75, 0.40);
  padding-left: 20px;
  max-width: 560px;
  margin-top: 40px;
}

.what-callout p {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION 4 — Proof
   ========================================================================== */

.proof-section .section-inner {
  max-width: 720px;
}

.proof-text h2 {
  margin-bottom: 24px;
}

.proof-text p {
  margin-bottom: 16px;
}

/* Pull quote — magazine callout treatment */
.pull-quote {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.85;
  border-left: 2px solid rgba(232, 149, 75, 0.60);
  padding-left: 24px;
  margin: 48px 0;
  max-width: 600px;
}

.proof-link {
  margin-top: 8px;
  font-weight: 500;
}

/* ==========================================================================
   SECTION 5 — What You Get
   ========================================================================== */

.get-section .section-inner {
  max-width: 760px;
}

.get-text h2 {
  margin-bottom: 48px;
}

.deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.deliverable-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 16px;
  align-items: start;
}

.deliverable-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-accent);
  line-height: 1;
}

.deliverable-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deliverable-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.3;
}

.deliverable-desc {
  font-size: 16px;
  max-width: 520px;
  opacity: var(--opacity-body);
  line-height: 1.6;
}

.closing-line {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin-top: 80px;
  color: var(--color-text);
}

/* ==========================================================================
   SECTION 6 — CTA
   ========================================================================== */

.cta-section .section-inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-text h2 {
  margin-bottom: 16px;
}

.cta-blurb {
  margin-bottom: 32px;
}

.cta-primary {
  margin-bottom: 64px;
}

.cta-secondary-label {
  font-size: 14px;
  opacity: var(--opacity-meta);
  margin-bottom: 16px;
}

.cta-secondary-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.30;
  font-family: var(--font-sans);
}

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  .section {
    padding: 80px 48px;
  }

  .section + .section::before {
    left: 48px;
    right: 48px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 36px;
  }

  .section-label {
    font-size: 14px;
  }

  body {
    font-size: 17px;
  }

  .hero-subhead {
    font-size: 17px;
  }

  .closing-line {
    font-size: 24px;
  }

  .cta-secondary-buttons {
    flex-direction: row;
  }

  .pull-quote {
    font-size: 19px;
  }
}

/* ==========================================================================
   Responsive — Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  .section {
    padding: 80px 96px;
  }

  .section + .section::before {
    left: 96px;
    right: 96px;
  }

  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 44px;
  }

  .section-label {
    font-size: 14px;
  }

  body {
    font-size: 18px;
  }

  .hero-subhead {
    font-size: 18px;
  }

  .closing-line {
    font-size: 28px;
  }

  .pull-quote {
    font-size: 21px;
  }
}
