/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FAFAFA;
  --ink: #111111;
  --green: #00FF66;
  --red: #FF3B30;
  --yellow: #FFD60A;
  --grey: #6b6b6b;
  --border: #e4e4e4;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.02; }

mark { background: var(--green); color: var(--ink); padding: 0 .08em; }
mark.mark-red { background: var(--red); color: #fff; }

/* inline scannable highlights */
.hl-green {
  background: rgba(0,255,102,.28);
  box-shadow: 0 -.05em rgba(0,255,102,.28) inset;
  padding: .02em .12em; border-radius: 3px; font-weight: 600;
}
.hl-red { color: var(--red); font-weight: 700; }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-word {
  font-size: clamp(1.8rem, 8vw, 7.5rem);
  font-weight: 700; letter-spacing: -.02em;
  display: inline-flex; align-items: baseline; white-space: nowrap;
}
.lw-scale {
  display: inline-block; overflow: hidden;
  max-width: 0; opacity: 0; transform: translateX(-.12em);
  color: var(--green);
  transition: max-width .55s cubic-bezier(.16,1,.3,1), opacity .5s ease, transform .5s ease;
}
.loader-word.reveal-scale .lw-scale { max-width: 6em; opacity: 1; transform: none; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(0,0,0,.05);
  padding-top: 14px; padding-bottom: 14px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--green); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: .92rem; letter-spacing: 0; line-height: 1;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  position: relative; opacity: .8; transition: opacity .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--green); transition: width .25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--green); color: var(--ink); text-decoration: none;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .92rem;
  padding: 11px 20px; border-radius: 100px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,255,102,.4); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem;
  padding: 15px 28px; border-radius: 100px; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,255,102,.4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

/* ============ SECTION TITLE ============ */
.section-title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  letter-spacing: -.03em; max-width: 15ch;
}
.accent-dot { color: var(--green); }

section { padding: clamp(70px, 11vw, 150px) clamp(20px, 6vw, 96px); }
[id] { scroll-margin-top: 84px; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: clamp(96px, 13vh, 130px); padding-bottom: clamp(36px, 5vw, 64px);
}
.hero-inner { max-width: 1200px; width: 100%; }
.hero-headline {
  font-size: clamp(2.1rem, 6.4vw, 5.8rem);
  letter-spacing: -.035em; margin-bottom: 26px;
}
.hero-headline .line { display: block; }
.hero-headline em { font-style: italic; }
.hero-headline .line-a { margin-left: 0; }
.hero-headline .line-b { margin-left: 6vw; }
.hero-headline .line-c { margin-left: 2vw; }
.hero-headline .line-d { margin-left: 10vw; }
.hero-subline { font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: var(--grey); margin-bottom: 32px; }
.hero-subline strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink); color: #fff;
  padding: 26px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; animation: scroll-marquee 26s linear infinite;
}
.marquee-track span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem); letter-spacing: -.01em;
}
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ PROBLEMS ============ */
.problems .section-title { margin-bottom: 60px; }
.problem-list { display: flex; flex-direction: column; gap: 28px; max-width: 1200px; margin: 0 auto; }
.problem-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 34px; max-width: 640px; position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.04);
}
.problem-card p { font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.55; }
.problem-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--green); display: block; margin-bottom: 12px;
}
.problem-card.pos-1 { align-self: flex-start; }
.problem-card.pos-2 { align-self: flex-end; }
.problem-card.pos-3 { align-self: center; }
.problem-card.pos-4 { align-self: flex-start; margin-left: 8%; }
.problem-card.pos-5 { align-self: flex-end; margin-right: 4%; }

/* ============ SERVICES ============ */
.services .section-title { margin-bottom: 70px; max-width: 20ch; }
.service-list { display: flex; flex-direction: column; gap: 48px; max-width: 1200px; margin: 0 auto; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  padding: 44px; max-width: 620px;
  box-shadow: 0 14px 50px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.09); }
.service-card.offset-left { align-self: flex-start; }
.service-card.offset-right { align-self: flex-end; }
.service-card.offset-center { align-self: center; }
.service-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 3.2rem;
  color: var(--ink); -webkit-text-stroke: 1.5px var(--ink); color: transparent; display: block; margin-bottom: 8px;
}
.service-card h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 6px; }
.service-sub { color: var(--green); font-weight: 600; margin-bottom: 18px; font-size: 1.02rem; }
.service-card p:last-child { font-size: 1.06rem; color: #333; line-height: 1.6; }

/* ============ PROOF ============ */
.proof { background: var(--ink); color: #fff; }
.proof-inner { max-width: 1100px; margin: 0 auto; }
.proof .section-title { color: #fff; margin-bottom: 28px; max-width: 22ch; }
.proof-body { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: #cfcfcf; max-width: 60ch; margin-bottom: 36px; line-height: 1.6; }
.stats {
  display: flex; gap: 60px; flex-wrap: wrap; margin-top: 80px;
  border-top: 1px solid #2a2a2a; padding-top: 56px;
}
.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -.03em; color: var(--green); line-height: 1;
}
.stat-label { color: #bdbdbd; font-size: 1.05rem; margin-top: 8px; display: block; }

/* ============ QUALIFY ============ */
.qualify {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1200px; margin: 0 auto;
}
.qualify-title { font-size: clamp(1.6rem, 3.5vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 30px; }
.qualify-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.qualify-list li {
  position: relative; padding-left: 40px; font-size: 1.08rem; line-height: 1.5; color: #2a2a2a;
}
.qualify-list li::before {
  position: absolute; left: 0; top: -1px;
  font-weight: 700; font-size: 1.2rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.qualify-list.yes li::before { content: '✓'; background: var(--green); color: var(--ink); }
.qualify-list.no li::before { content: '✕'; background: var(--red); color: #fff; }

/* ============ FAQ ============ */
.faq .section-title { margin-bottom: 24px; max-width: none; white-space: nowrap; }
.faq-list { max-width: 860px; margin: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; padding: 28px 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--ink);
}
.faq-icon { font-size: 1.8rem; font-weight: 400; transition: transform .3s ease; flex-shrink: 0; color: var(--green); }
.faq-item.open .faq-icon { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 0 28px; font-size: 1.08rem; color: #444; line-height: 1.6; max-width: 62ch; }

/* ============ CONTACT ============ */
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact .section-title { margin-bottom: 20px; max-width: 100%; }
.contact-sub { color: var(--grey); font-size: 1.1rem; margin-bottom: 44px; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field input, .field select {
  width: 100%; padding: 16px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #9a9a9a; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,255,102,.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' fill='none' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.form-submit { margin-top: 8px; align-self: flex-start; }
.form-success { text-align: center; padding: 50px 20px; }
.form-success p { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.5rem; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #fff; padding: 60px clamp(20px, 6vw, 96px); text-align: center; }
.footer-tag { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.3rem; margin-bottom: 30px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; font-size: .95rem; }
.footer-row a { color: var(--green); text-decoration: none; font-weight: 600; }
.footer-row a:hover { text-decoration: underline; }

/* ============ POPUP ============ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(17,17,17,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.popup-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.popup-card {
  background: #fff; border-radius: 22px; padding: 50px 44px; max-width: 480px; width: 100%;
  text-align: center; position: relative;
  transform: scale(.92); transition: transform .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.popup-overlay.show .popup-card { transform: scale(1); }
.popup-card h3 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.02em; margin-bottom: 26px; }
.popup-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 1.2rem; cursor: pointer; color: var(--grey); line-height: 1;
}
.popup-close:hover { color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    flex-wrap: wrap;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
  }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 18px;
    width: 100%; order: 3; padding-top: 22px;
  }
  .nav.open .nav-cta { display: inline-block; order: 4; margin-top: 18px; }

  .hero-headline .line { margin-left: 0 !important; }
  .problem-card { max-width: 100%; align-self: stretch !important; margin: 0 !important; }
  .service-card { max-width: 100%; align-self: stretch !important; padding: 32px; }
  .qualify { grid-template-columns: 1fr; gap: 44px; }
  .stats { gap: 40px; }
  .faq .section-title { white-space: normal; }
}
