/* ── Hero section ──────────────────────────────────────────────── */

#hero {
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Track SVG background: starts at top, fades out at bottom */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../svg/track-bg.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Fade: fully visible at top, dissolves toward bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image:         linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

/* Amber glow overlay — evokes stadium lighting */
#hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50%;
  z-index: 0;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(217, 119, 6, 0.10) 0%,
    transparent 70%
  );
  pointer-events: none;
}

#hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--green);
  opacity: .5;
}

.hero-title {
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .95;
  margin-bottom: 1.6rem;
}

.hero-title-jump {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* light mode: dark gradient for contrast on light bg */
.hero-title-board {
  background: linear-gradient(135deg, #1c1917 0%, #44403c 55%, #78716c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* dark mode: white gradient */
[data-theme="dark"] .hero-title-board {
  background: linear-gradient(135deg, #ffffff 0%, #f5f0e8 55%, #d6cfc7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-sub-lead {
  font-size: 1.22em;
  font-weight: 500;
  color: var(--text);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 999px;
  padding: .65em 1.6em;
  transition: background .2s, transform .15s;
}

.hero-cta:hover {
  background: var(--accent2);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ── Platform cover image wrapper ──────────────────────────────── */

.platform-wrap {
  margin-top: 3.5rem;
  /* no background — PNG transparency shows through */
}

.platform-wrap img {
  width: 100%;
  height: auto;
  display: block;
  /* fade all four edges so transparent areas blend into the page */
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 40%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 40%,
    transparent 100%
  );
}

/* ── Section CTA (centered button below a section) ─────────────── */

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ── Uses — why it matters block ───────────────────────────────── */

.uses-why {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.uses-why h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.uses-why > p {
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 1rem;
  max-width: 72ch;
}

.uses-why-note {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 .5rem .5rem 0;
}

.uses-why-note p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: .95rem;
  margin: 0;
}

/* ── Project — cost highlight block ────────────────────────────── */

.project-cost-block {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface2);
  border-radius: .75rem;
  border: 1px solid var(--border);
}

.project-cost-block p {
  color: var(--text-secondary);
  line-height: 1.78;
  margin: 0;
}

/* ── Open source / why-measure section ─────────────────────────── */

#why {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.06) 0%, rgba(245, 158, 11, 0.04) 100%);
  border-top: 1px solid rgba(217, 119, 6, 0.12);
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.os-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 680px) {
  .os-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.os-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: .8rem;
  color: var(--text);
}

.os-title span {
  color: var(--green);
}

.os-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.os-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.os-stat-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--accent);
}

.os-stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.os-stat-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}

.os-stat-value {
  font-size: .92rem;
  color: var(--text);
}

/* ── Steps (what I built) ──────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .5rem;
}

/* ── Fork Notice (bridge between project section and roadmap) ───── */

.fork-notice {
  padding: 2rem 2.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.fork-notice-lead {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.fork-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .fork-paths { grid-template-columns: 1fr; }
}

.fork-path {
  display: block;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .15s;
}

.fork-path:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.fork-path-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.fork-path p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.fork-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: .45rem 1rem;
  border-radius: 8px;
  letter-spacing: .03em;
  transition: background .15s;
}

.fork-path:hover .fork-cta {
  background: var(--accent2);
}

/* ── About / Biography ─────────────────────────────────────────── */

#about {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: 72ch;
}

.about-inner .about-lead {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-inner p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-inner p:last-child {
  margin-bottom: 0;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.75rem 0;
}

.about-badge {
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ── About layout with identity sidebar ─────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}

.about-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
}

.about-identity-logo {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 16%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .14);
  flex-shrink: 0;
}

.about-identity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-identity-product {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
  line-height: 1;
  margin-top: .25rem;
}

.about-identity-by {
  font-size: .7rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-top: .5rem;
  margin-bottom: .1rem;
}

.about-identity-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}

.about-identity-link {
  font-size: .78rem;
  color: var(--accent);
  text-decoration: none;
  opacity: .75;
  word-break: break-all;
}

.about-identity-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── Roadmap sub-task banners ───────────────────────────────────── */

.roadmap-subtasks {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .85rem;
  padding-left: 1.75rem;
}

.roadmap-subtask {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.roadmap-subtask-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: .6;
}

.roadmap-subtask-text {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.roadmap-subtask-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .75;
  margin-right: .3rem;
}
