/* MarketHacker marketing pages — shared styles (extension, platform, form) */

:root {
  --bg: #040003;
  --fg: #fbfbfb;
  --muted: #8294ab;
  --accent: #c3fc2f;
  --accent-dark: #a6df1e;
  --purple: #9750a7;
  --card: #0b0b0e;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.muted {
  color: var(--muted);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 8%, rgba(151, 80, 167, 0.2), transparent 60%),
    radial-gradient(700px 500px at 15% 30%, rgba(195, 252, 47, 0.08), transparent 60%);
}

/* ── header / nav ── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(4, 0, 3, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  flex-shrink: 0;
}

.logo img {
  width: 34px;
  height: 34px;
}

.logo b {
  font-weight: 800;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  border: 1px solid rgba(195, 252, 47, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(195, 252, 47, 0.06);
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--muted);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 11, 14, 0.8);
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  z-index: 40;
  background: rgba(4, 0, 3, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 24px;
  overflow-y: auto;
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.nav-drawer a:hover {
  color: var(--fg);
}

.nav-drawer .btn {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

/* ── buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 26px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #040003;
  box-shadow: 0 0 30px rgba(195, 252, 47, 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 42px rgba(195, 252, 47, 0.55);
}

.btn-ghost {
  background: #15161b;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: #1d1e25;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ── typography ── */

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── hero ── */

.hero {
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 26px;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 24px 0 32px;
  max-width: 540px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 80, 167, 0.35), rgba(195, 252, 47, 0.1) 55%, transparent 72%);
  filter: blur(20px);
}

.hero-visual img {
  position: relative;
  width: min(100%, 460px);
  border-radius: 36px;
}

.float-tag {
  position: absolute;
  bottom: 8%;
  left: 2%;
  background: rgba(11, 11, 14, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  backdrop-filter: blur(6px);
}

.float-tag svg {
  color: var(--accent);
  flex-shrink: 0;
}

.mps {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.mps b {
  color: var(--fg);
  font-weight: 600;
  margin: 0 4px;
}

section.block {
  padding: 80px 0;
}

.sec-head {
  max-width: 640px;
  margin-bottom: 46px;
}

.sec-head p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: rgba(195, 252, 47, 0.3);
  transform: translateY(-3px);
}

.ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(195, 252, 47, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}

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

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

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

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.step .num {
  font-size: 44px;
  font-weight: 800;
  color: rgba(195, 252, 47, 0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

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

/* ── waitlist form ── */

.waitlist {
  padding: 90px 0;
}

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(195, 252, 47, 0.35);
  border-radius: 26px;
  padding: 44px;
  box-shadow: 0 0 60px rgba(195, 252, 47, 0.1);
}

.form-card .eyebrow {
  text-align: center;
}

.form-card h2 {
  text-align: center;
}

.form-card > p.sub {
  text-align: center;
  color: var(--muted);
  margin: 16px auto 32px;
  max-width: 460px;
}

form {
  display: grid;
  gap: 16px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}

.req {
  color: var(--accent);
}

input,
select {
  width: 100%;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 14px 15px;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input::placeholder {
  color: #4b5568;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 252, 47, 0.15);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238294ab' stroke-width='2'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

form .btn-primary {
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin-top: 6px;
}

.fineprint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.fineprint a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

.fineprint a:hover {
  border-color: var(--accent);
}

.form-msg {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form-msg .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(195, 252, 47, 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.form-msg h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.form-msg p {
  color: var(--muted);
}

.err-text {
  display: none;
  color: #ff8080;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

/* ── footer ── */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  margin-top: 40px;
}

.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.foot .logo {
  margin-bottom: 14px;
}

.foot p {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
}

.foot h4 {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.foot ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.foot ul a {
  color: var(--muted);
  font-size: 15px;
}

.foot ul a:hover {
  color: var(--fg);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.foot-bottom .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-disclaimer {
  font-size: 13px;
  margin-top: 14px;
}

/* ── standalone form page ── */

body.form-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

body.form-page::before {
  background:
    radial-gradient(600px 400px at 75% 5%, rgba(151, 80, 167, 0.22), transparent 60%),
    radial-gradient(700px 500px at 20% 90%, rgba(195, 252, 47, 0.08), transparent 60%);
}

body.form-page h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
}

body.form-page .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 30px;
}

body.form-page .brand img {
  width: 36px;
  height: 36px;
}

body.form-page .card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid rgba(195, 252, 47, 0.35);
  border-radius: 26px;
  padding: clamp(26px, 5vw, 44px);
  box-shadow: 0 0 60px rgba(195, 252, 47, 0.1);
}

body.form-page .sub {
  text-align: center;
  color: var(--muted);
  margin: 16px auto 30px;
  max-width: 440px;
  font-size: 15px;
}

body.form-page .eyebrow {
  text-align: center;
  margin-bottom: 16px;
  font-size: 12px;
}

body.form-page .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin-top: 6px;
}

body.form-page .form-msg h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

body.form-page .back {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

body.form-page .back a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

body.form-page .back a:hover {
  border-color: var(--accent);
}

/* ── responsive ── */

@media (max-width: 920px) {
  .nav-links,
  .nav-cta .btn-sm {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 0 40px;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 10px;
  }

  .float-tag {
    left: 0;
    right: 0;
    max-width: calc(100% - 24px);
    margin: 0 auto;
  }

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

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

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

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .form-card {
    padding: 30px 22px;
  }

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

  .foot-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover,
  .btn:active {
    transform: none;
  }
}
