/* ===========================
   VALIDATIFY — Design System
   =========================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #0A0A0A;
  --bg-elevated: #141410;
  --bg-card: #1A1A16;
  --border: #2A2A24;
  --text: #E8E4DD;
  --text-muted: #8A8578;
  --accent: #FF5C39;
  --accent-hover: #FF7A5C;
  --success: #3DD68C;
  --warning: #F0C239;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  --max-width: 1120px;
  --section-padding: 120px 24px;
  --radius: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  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: 200px 200px;
}

/* --- Selection --- */
::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 42, 36, 0.5);
  transition: background var(--transition);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__logo span {
  color: var(--accent);
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-transform: uppercase;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 92, 57, 0.3);
}

.btn--solid {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.btn--solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 92, 57, 0.35);
}

.btn--solid:active {
  transform: translateY(0);
}

.btn--large {
  font-size: 0.9rem;
  padding: 16px 36px;
}

/* ===========================
   SECTIONS — General
   =========================== */
.section {
  padding: var(--section-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__label::before {
  content: '//';
  color: var(--accent);
  font-weight: 700;
}

.section__headline {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.section__body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 680px;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.animate-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in:nth-child(2) {
  transition-delay: 0.08s;
}

.animate-in:nth-child(3) {
  transition-delay: 0.16s;
}

.animate-in:nth-child(4) {
  transition-delay: 0.24s;
}

/* Fallback: if JS fails completely, reveal everything after 2s */
@keyframes forceReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: forceReveal 0s 2s forwards;
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 92, 57, 0.1);
  border: 1px solid rgba(255, 92, 57, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero__headline {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero__subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero__cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__spots {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__spots .counter {
  color: var(--warning);
  font-weight: 700;
  font-size: 1rem;
}

/* ===========================
   PROBLEM SECTION
   =========================== */
.problem__body {
  margin-bottom: 56px;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.problem__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.problem__card-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.problem__card-title::before {
  content: '>';
  color: var(--accent);
  font-weight: 400;
}

.problem__card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ===========================
   HOW IT WORKS
   =========================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.step:hover {
  border-color: rgba(255, 92, 57, 0.4);
  transform: translateY(-4px);
}

.step__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step__title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.step__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ===========================
   OUTPUT SECTION
   =========================== */
.output__list {
  list-style: none;
  margin-top: 40px;
  display: grid;
  gap: 16px;
}

.output__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.output__item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.output__item-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.output__item-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   BUILT DIFFERENT — COMPARISON
   =========================== */
.comparison {
  margin-top: 48px;
  display: grid;
  gap: 16px;
}

.comparison__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison__header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 24px;
}

.comparison__header--them {
  background: rgba(138, 133, 120, 0.1);
  color: var(--text-muted);
}

.comparison__header--us {
  background: rgba(255, 92, 57, 0.1);
  color: var(--accent);
}

.comparison__cell {
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.55;
  display: flex;
  align-items: center;
}

.comparison__cell--them {
  background: rgba(138, 133, 120, 0.05);
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(138, 133, 120, 0.3);
}

.comparison__cell--us {
  background: rgba(255, 92, 57, 0.05);
  color: var(--text);
  font-weight: 500;
}

/* ===========================
   WAITLIST CTA SECTION
   =========================== */
.waitlist-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.waitlist {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist__form {
  margin-top: 40px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waitlist__input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.waitlist__input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.waitlist__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 57, 0.12);
}

.waitlist__counter {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--warning);
  margin-top: 20px;
  padding: 12px 24px;
  background: rgba(240, 194, 57, 0.08);
  border: 1px solid rgba(240, 194, 57, 0.2);
  border-radius: var(--radius);
}

.waitlist__counter .counter-num {
  font-size: 1.3rem;
  font-weight: 800;
}

.waitlist__success {
  display: none;
  margin-top: 24px;
  padding: 24px 32px;
  background: rgba(61, 214, 140, 0.08);
  border: 1px solid rgba(61, 214, 140, 0.25);
  border-radius: var(--radius);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
  max-width: 480px;
}

.waitlist__success.show {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

.waitlist__error {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: none;
  margin-top: -4px;
}

.waitlist__error.show {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 48px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {

  .problem__cards,
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 20px;
  }

  .nav {
    padding: 0 16px;
  }

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

  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .comparison__row {
    grid-template-columns: 1fr;
  }

  .comparison__cell--them {
    border-bottom: 1px solid var(--border);
  }

  .btn--large {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__badge {
    font-size: 0.6rem;
    padding: 6px 12px;
  }

  .section__headline {
    font-size: 1.7rem;
  }

  .hero__headline {
    font-size: 2rem;
  }

  .waitlist__form {
    max-width: 100%;
  }
}