:root {
  --bg: #f6f5f1;
  --bg-muted: #f6f5f1;
  --text: #0b0c0e;
  --text-muted: #6b6f76;
  --accent: #263b51;
  --accent-light: #1c2d3d;
  --border: #e4e4e7;
  --radius: 2px;
  --max-width: 1040px;
  --narrow-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-track {
  display: flex;
  flex-wrap: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  will-change: transform;
}

.page-track > main {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

section {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 14vh 0 80px;
  box-sizing: border-box;
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.container.narrow {
  max-width: var(--narrow-width);
}

/* Hero logo */
.hero-logo {
  max-width: 380px;
  margin: 0 auto 32px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  font-weight: 500;
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.text-center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero .lead {
  margin-bottom: 40px;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.65;
  max-width: 620px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-actions .btn {
  padding: 16px 32px;
  font-size: 15px;
}

.hero-actions .link-secondary {
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-full {
  width: 100%;
}

.link-secondary {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Cards */
.cards-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Section header */
.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.verticals .card h3 {
  margin-bottom: 8px;
}

.verticals-cta {
  text-align: center;
  margin-top: 28px;
}

.verticals-statement {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.verticals-statement p {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Steps */
.section-how h2 {
  margin-bottom: 36px;
}

.steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  text-align: left;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-body {
  flex: 1;
}

.step-body h3 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 500;
}

.step-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-arrow {
  font-size: 16px;
  color: var(--text-muted);
  padding-left: 36px;
  line-height: 1;
  margin: -2px 0;
}

/* Form */
.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-header h2 {
  margin-bottom: 10px;
}

.buyer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.field input {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus {
  border-color: var(--accent);
}

.field input::placeholder {
  color: #a1a1aa;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 0;
  background: var(--bg);
  z-index: 100;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Muted section backgrounds */
.section-muted {
  background: var(--bg-muted);
}

/* Buyers section */
.section-buyers {
  background: var(--bg);
}

.section-buyers .section-header {
  margin-bottom: 48px;
}

.section-buyers .section-header h2 {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 14px;
}

.section-buyers .section-header .lead {
  max-width: 640px;
  font-size: clamp(15px, 1.8vw, 19px);
}

.buyer-cards .card {
  padding: 36px 30px;
  border-color: #e8eaed;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.section-publishers .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-publishers h2 {
  margin-bottom: 0;
}

.section-publishers .lead {
  margin: 14px auto 32px;
}

/* Scroll hint */
.scroll-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden {
  opacity: 0;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 20px;
  background: var(--border);
  animation: hintPulse 1.8s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-track {
    transition: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  section {
    padding: 10vh 0 72px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-logo {
    max-width: 180px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  h2 {
    font-size: clamp(20px, 5.5vw, 26px);
  }

  .lead {
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 40px);
    margin-bottom: 18px;
    line-height: 1.02;
  }

  .hero .lead {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 92%;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-actions .btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  .hero-actions .link-secondary {
    font-size: 14px;
  }

  .cards-three {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    padding: 18px 18px;
  }

  .card h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 13px;
  }

  .section-header {
    margin-bottom: 18px;
  }

  .section-buyers .section-header {
    margin-bottom: 14px;
  }

  .section-buyers .section-header h2 {
    font-size: clamp(20px, 5.5vw, 26px);
    margin-bottom: 6px;
  }

  .section-buyers .section-header .lead {
    font-size: 13px;
    line-height: 1.5;
  }

  .buyer-cards {
    gap: 8px;
  }

  .buyer-cards .card {
    padding: 22px 18px;
  }

  .buyer-cards .card h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .buyer-cards .card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .section-header h2 {
    margin-bottom: 6px;
  }

  .verticals-cta {
    margin-top: 16px;
  }

  .verticals-statement {
    padding: 0;
  }

  .verticals-statement p {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.6;
  }

  .section-how h2 {
    margin-bottom: 24px;
  }

  .section-publishers .lead {
    margin: 10px auto 22px;
  }

  .steps-vertical {
    gap: 6px;
  }

  .step-row {
    gap: 14px;
  }

  .step-number {
    width: 26px;
    font-size: 10px;
  }

  .step-body h3 {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .step-body p {
    font-size: 12px;
    line-height: 1.45;
  }

  .step-arrow {
    font-size: 13px;
    padding-left: 26px;
    margin: -2px 0;
  }

  .form-header {
    margin-bottom: 14px;
  }

  .buyer-form {
    gap: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field {
    gap: 2px;
  }

  .field label {
    font-size: 11px;
  }

  .field input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 12px;
  }

  .btn-full {
    padding: 10px 18px;
  }

  .link-secondary {
    font-size: 12px;
  }

  .site-footer {
    padding: 10px 0;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }

  .footer-links {
    gap: 12px;
    flex-shrink: 0;
  }

  .footer-links a {
    font-size: 10px;
  }

  .copyright {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Extra-compact form for very short viewports */
@media (max-width: 768px) and (max-height: 700px) {
  .form-header {
    margin-bottom: 6px;
  }

  .form-header .eyebrow {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .form-header .lead {
    font-size: 11px;
  }

  .buyer-form {
    gap: 5px;
  }

  .form-row {
    gap: 5px;
  }

  .field input {
    padding: 5px 10px;
    font-size: 12px;
  }

  .btn {
    padding: 7px 16px;
    font-size: 11px;
  }
}
