/* roadmapper.io marketing page — base: tokens, type, buttons, nav, hero copy.
   Brand: Deep Dark / Brand Core indigo / Bright Purple; Outfit + Geist + Geist Mono.
   Companion sheets: roadmap.css (gantt visuals), sections.css (page sections). */

:root {
  --ink: #0b0b1e; /* Deep Dark — page background */
  --ink-raised: #12122b; /* panels, cards */
  --ink-line: #23233f; /* hairlines on dark */
  --core: #4f46e5; /* Brand Core */
  --bright: #6366f1; /* Bright Purple — CTAs, highlights */
  --lavender: #eef2ff; /* Soft Lavender */
  --grayblue: #64748b; /* Cool Gray-Blue */
  --near-white: #faf9ff;
  --teal: #06b6d4; /* progress / success */
  --coral: #f97316; /* problem / attention */
  --text-hi: #faf9ff;
  --text-mid: #b9bfd8;
  --text-low: #8089a8;
  --radius: 14px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --week-cols: 8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.container-narrow {
  max-width: 760px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-hi);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  max-width: 22ch;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "// ";
  opacity: 0.6;
}

.eyebrow-coral {
  color: var(--coral);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bright), var(--core));
  color: var(--near-white);
  box-shadow: 0 8px 24px rgb(79 70 229 / 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(99 102 241 / 0.45);
}

.btn-ghost {
  color: var(--lavender);
  border: 1px solid var(--ink-line);
  background: rgb(238 242 255 / 0.03);
}

.btn-ghost:hover {
  border-color: var(--bright);
  color: var(--near-white);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.125rem;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgb(11 11 30 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--ink-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-hi);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links > a:not(.btn) {
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.nav-links > a:not(.btn):hover {
  color: var(--near-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--near-white);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero (copy layer; the frame/wireframe lives in roadmap.css) ---------- */

.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 6vh, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* faint week-column grid, faded at the edges */
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 95px,
    rgb(238 242 255 / 0.045) 95px,
    rgb(238 242 255 / 0.045) 96px
  );
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%, transparent
    78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%,
    transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.orb-indigo {
  width: 560px;
  height: 560px;
  top: -220px;
  left: 50%;
  transform: translateX(-62%);
  background: rgb(79 70 229 / 0.32);
}

.orb-teal {
  width: 320px;
  height: 320px;
  top: 60px;
  right: -80px;
  background: rgb(6 182 212 / 0.13);
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
}

/* the signature: a headline word set as a draggable roadmap bar */
.bar-word {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.32em 0.06em;
  border-radius: 0.32em;
  background: linear-gradient(135deg, var(--bright), var(--core));
  color: var(--near-white);
  box-shadow: 0 6px 28px rgb(99 102 241 / 0.45);
}

.bar-word::before,
.bar-word::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--ink);
  transform: translateY(-50%);
}

.bar-word::before {
  left: -0.11em;
}

.bar-word::after {
  right: -0.11em;
}

.hero-sub {
  max-width: 58ch;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-mid);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.trust-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-low);
  margin-top: 1.1rem;
  letter-spacing: 0.02em;
}

/* ---------- Responsive & reduced motion (base layer) ---------- */

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1.1rem;
    background: rgb(11 11 30 / 0.97);
    border-bottom: 1px solid var(--ink-line);
    display: none;
  }

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

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }
}

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

  .btn {
    transition: none;
  }
}
