/* ============================================================
   WareIQ — Main Stylesheet
   ============================================================ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --ink:          #030149;
  --ink-mid:      #4a4a44;
  --ink-soft:     #7a7a72;
  --rule:         #030149;
  --surface:      #f7f6f2;
  --white:        #ffffff;
  --teal:         #0f6e56;
  --teal-light:   #e1f5ee;
  --amber:        #854f0b;
  --amber-light:  #faeeda;
  --orange:       #f25c19;
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   48px;
  --space-xl:   80px;

  /* Layout */
  --max-width:  1200px;
  --side-pad:   48px;
}

/* ── Base ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ────────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 560px;
}

h1 em {
  font-style: italic;
  color: var(--orange);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 20px;
}

h2 em {
  font-style: italic;
  color: var(--orange);
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--side-pad);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-byline {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.nav-logo-text span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-login {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}

.nav-login:hover {
  color: var(--orange);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--orange);
  border: none;
  padding: 9px 20px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  opacity: 0.88;
}

/* Hamburger — hidden by default */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--side-pad);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a,
.nav-drawer button {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: block;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.01em;
}

.nav-drawer a:last-child,
.nav-drawer button:last-child {
  border-bottom: none;
}

.nav-drawer .drawer-login {
  color: var(--ink);
}

.nav-drawer .drawer-cta {
  color: var(--orange);
  font-weight: 500;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--orange);
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-primary svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-ghost {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s;
}

.btn-ghost:hover {
  color: var(--ink);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
  padding: 80px var(--side-pad) 72px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

.hero-body {
  font-size: 16px;
  color: var(--ink);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.hero-trust::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ── Diagnostic Card ─────────────────────────────────────────── */
.diag-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}

.diag-card-header {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diag-card-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.diag-question {
  margin-bottom: 16px;
}

.diag-q-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.diag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diag-opt {
  font-size: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}

.diag-opt:hover,
.diag-opt.sel {
  background: var(--teal-light);
  border-color: var(--orange);
  color: var(--orange);
}

.diag-progress {
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  margin: 20px 0 16px;
  overflow: hidden;
}

.diag-progress-fill {
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  width: 20%;
  transition: width 0.3s ease;
}

.diag-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.diag-step-label {
  font-size: 11px;
  color: var(--ink-soft);
}

.diag-next {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--orange);
  border: none;
  padding: 8px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.diag-next:hover {
  opacity: 0.85;
}

/* ── Section Dividers ─────────────────────────────────────────── */
.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  padding: var(--space-xl) var(--side-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--rule);
}

.section-intro {
  font-size: 16px;
  color: var(--ink);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Problem Section ─────────────────────────────────────────── */
.problem-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 56px;
}

.pain-cell {
  background: var(--white);
  padding: 28px 28px 32px;
}

.pain-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--teal-light);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.pain-quote {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 16px;
}

.pain-body {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
}

/* ── How It Works ─────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.how-step-num {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.how-step-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.how-step-body {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Output Cards ─────────────────────────────────────────────── */
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.output-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
}

.output-card.featured {
  background: var(--ink);
  border-color: var(--ink);
}

.output-icon {
  width: 32px;
  height: 32px;
  background: var(--teal-light);
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.output-card.featured .output-icon {
  background: rgba(255, 255, 255, 0.1);
}

.output-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.output-card.featured .output-title {
  color: var(--white);
}

.output-body {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
}

.output-card.featured .output-body {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Benchmark Strip ─────────────────────────────────────────── */
.benchmark-strip {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-lg);
}

.benchmark-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 48px;
  align-items: center;
}

.benchmark-intro-text {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 220px;
  line-height: 1.6;
}

.benchmark-stat {
  text-align: center;
  border-left: 1px solid var(--rule);
  padding-left: 48px;
}

.benchmark-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.benchmark-num span {
  color: var(--orange);
}

.benchmark-label {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 140px;
}

/* ── Neutral Bar ─────────────────────────────────────────────── */
.neutral-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px var(--side-pad);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.neutral-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.neutral-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  padding: 96px var(--side-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.cta-left h2 {
  max-width: 480px;
  margin-bottom: 16px;
}

.cta-left p {
  font-size: 15px;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
}

.cta-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.cta-card-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-weight: 300;
}

.cta-checklist {
  list-style: none;
  margin-bottom: 24px;
}

.cta-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 300;
  line-height: 1.5;
}

.cta-checklist li:last-child {
  border-bottom: none;
}

.check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check svg {
  width: 9px;
  height: 9px;
}

.cta-free-note {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
}

.cta-btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: #0f172a;
  padding: 64px var(--side-pad) 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
}

/* Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-width: 200px;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 36px;
  height: auto;
}

.footer-logo-name {
  font-size: 18px;
  font-weight: 500;
  color: #f9fafb;
  letter-spacing: -0.01em;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(249,250,251,0.64);
  line-height: 1.8;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(249,250,251,0.7);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.footer-social-icon:hover {
  background: rgba(255,255,255,0.16);
  color: #f9fafb;
}

/* Right side */
.footer-right {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: flex-end;
}

/* Nav columns */
.footer-columns {
  display: flex;
  gap: 48px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 500;
  color: #f9fafb;
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-links a {
  font-size: 13px;
  color: rgba(249,250,251,0.64);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col-links a:hover {
  color: #f9fafb;
}

/* Subscribe */
.footer-subscribe {
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 280px;
}

.footer-subscribe-body {
  font-size: 12px;
  color: rgba(249,250,251,0.64);
  margin-bottom: 14px;
  line-height: 1.6;
}

.footer-email-input {
  height: 40px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0 14px;
  font-size: 13px;
  color: #f9fafb;
  outline: none;
  width: 100%;
  margin-bottom: 10px;
  font-family: var(--sans);
}

.footer-email-input::placeholder {
  color: rgba(249,250,251,0.32);
}

.footer-subscribe-btn {
  align-self: flex-start;
  padding: 8px 20px;
  background: #e85c1a;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #f9fafb;
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity 0.15s;
}

.footer-subscribe-btn:hover {
  opacity: 0.88;
}

/* Divider + copyright */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 40px 0;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(249,250,251,0.64);
}

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

/* ── Tablet: ≤ 1024px ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --side-pad: 32px;
  }

  .hero {
    grid-template-columns: 1fr 360px;
    gap: 40px;
  }

  .benchmark-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .benchmark-stat {
    padding-left: 24px;
  }

  .benchmark-intro-text {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ── Mobile: ≤ 768px ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --side-pad: 20px;
    --space-xl: 56px;
  }

  /* Nav */
  nav {
    padding: 16px var(--side-pad);
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 48px var(--side-pad);
    gap: 40px;
  }

  .hero-body {
    font-size: 15px;
  }

  /* Problem section */
  .problem-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* How it works */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Output cards */
  .output-grid {
    grid-template-columns: 1fr;
  }

  /* Benchmark */
  .benchmark-strip {
    padding: 36px var(--side-pad);
  }

  .benchmark-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .benchmark-intro-text {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-bottom: 8px;
  }

  .benchmark-stat:first-of-type {
    border-left: none;
    padding-left: 0;
  }

  /* CTA */
  .cta-section {
    grid-template-columns: 1fr;
    padding: 56px var(--side-pad);
    gap: 40px;
  }

  /* Neutral bar */
  .neutral-bar {
    gap: 16px;
    padding: 20px var(--side-pad);
    justify-content: flex-start;
  }

  /* Footer */
  footer {
    padding: 48px var(--side-pad) 32px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-socials {
    margin-top: 24px;
  }

  .footer-right {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-subscribe {
    max-width: 100%;
  }
}

/* ── Small Mobile: ≤ 480px ──────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --side-pad: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .benchmark-inner {
    grid-template-columns: 1fr;
  }

  .benchmark-stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
    text-align: left;
  }

  .benchmark-stat:first-of-type {
    border-top: none;
    padding-top: 0;
  }

  .benchmark-label {
    max-width: 100%;
  }

  .pain-quote {
    font-size: 17px;
  }
}
