/* ============================================================
   SLOP NO MORE — Landing Page Styles
   Dark · Precise · Zero fluff
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* --- CSS Custom Properties ---------------------------------- */
:root {
  --bg:            #0A0A0B;
  --surface:       #111113;
  --surface-2:     #18181B;
  --border:        rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.10);

  --text:          #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted:    #52525B;

  --accent:        #F97316;
  --accent-dark:   #EA6C10;
  --accent-bg:     rgba(249, 115, 22, 0.08);
  --accent-border: rgba(249, 115, 22, 0.22);
  --accent-glow:   rgba(249, 115, 22, 0.18);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --nav-height:     60px;
  --container-max:  680px;
  --section-gap:    88px;
}

/* --- Base --------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* --- Layout utility ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: rgba(10, 10, 11, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.nav-wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background-color: var(--surface);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-block: 80px 64px;
  overflow: hidden;
}

/* Dot grid — subtle depth signal */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Bottom vignette to fade grid into background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
  pointer-events: none;
}

/* Crystalline mesh canvas — no blur, sharp angular edges */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.70;
  /* screen blend: lines add light to the dark bg, never go muddy */
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(249, 115, 22, 0.50);
  background-color: rgba(249, 115, 22, 0.18);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--accent);

  animation: fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

/* --- Heading --- */
.hero-heading {
  font-size: clamp(36px, 6.5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);

  animation: fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.12s;
}

/* --- Subline --- */
.hero-subline {
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 460px;

  animation: fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.20s;
}

/* --- Subscribe wrapper & placeholder form --- */
.subscribe-wrapper {
  width: 100%;
  max-width: 480px;
  animation: fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.28s;
}

/* Beehiiv iframe will need these to blend with the dark theme */
.subscribe-wrapper iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background: transparent;
}

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

.form-status {
  font-size: 13px;
  line-height: 1.5;
  min-height: 1.5em;
  color: transparent;
}

.form-status--success {
  color: #34d399;
}

.form-status--error {
  color: #f87171;
}

.form-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.email-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: rgba(249, 115, 22, 0.40);
  background-color: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.btn-primary {
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.30);
}

.btn-primary:active {
  transform: scale(0.97);
}

/* --- Micro-copy --- */
.micro-copy {
  font-size: 13px;
  color: var(--text-muted);

  animation: fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.36s;
}

/* --- Social proof --- */
.social-proof {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);

  animation: fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.44s;
}

/* ============================================================
   CREDIBILITY STRIP
   ============================================================ */
.credibility {
  padding-block: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 44px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-unit {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background-color: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   ISSUE PREVIEW
   ============================================================ */
.preview {
  padding-block: var(--section-gap);
}

.preview-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.preview-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.preview-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 12px;
  font-family: var(--font-mono);
  line-height: 1.9;
}

.preview-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.2s ease;
}

.preview-link:hover {
  gap: 10px;
}

/* ============================================================
   WHAT TO EXPECT
   ============================================================ */
.expect {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.expect-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.expect-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.expect-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.expect-item strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: 32px;
  border-top: 1px solid var(--border);
}

.footer-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-sep {
  opacity: 0.35;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-domain {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet and wider */
@media (min-width: 640px) {
  .hero {
    padding-block: 120px 80px;
  }
}

/* Narrow mobile */
@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary {
    width: 100%;
    height: 52px;
    font-size: 15px;
  }

  .email-input {
    width: 100%;
    height: 52px;
    /* 16px prevents iOS Safari from zooming in on focus */
    font-size: 16px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 32px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .stat {
    padding: 0 16px;
  }

  .preview-card {
    padding: 24px 20px;
  }

  .hero-inner {
    gap: 18px;
  }
}
