/* ── ScrollServe landing ─────────────────────────────────────────────── */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */

:root {
  /* brand palette */
  --green-700: #3d7a58;
  --green-600: #53a57d;
  --green-400: #6fbf97;
  --ivory: #f7f5ef;
  --ink: #161b18;
  --sand: #e7dfce;
  --sage-300: #a7c4b0;
  --sage-100: #dceae1;

  /* semantic (light) */
  --bg: var(--ivory);
  --bg-raised: #ffffff;
  --text: var(--ink);
  --text-muted: #5c665f;
  --border: rgba(22, 27, 24, 0.1);
  --border-strong: rgba(22, 27, 24, 0.18);
  --accent: var(--green-700);
  --accent-soft: var(--sage-100);
  --shadow: 0 12px 32px -12px rgba(22, 27, 24, 0.18);
  --hero-glow: radial-gradient(
    60% 50% at 70% 10%,
    rgba(83, 165, 125, 0.14),
    transparent 70%
  );

  --font-display: "Plus Jakarta Sans", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121613;
    --bg-raised: #1b211d;
    --text: #edf2ee;
    --text-muted: #9aa69f;
    --border: rgba(237, 242, 238, 0.12);
    --border-strong: rgba(237, 242, 238, 0.22);
    --accent: var(--green-400);
    --accent-soft: rgba(83, 165, 125, 0.16);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    --hero-glow: radial-gradient(
      60% 50% at 70% 10%,
      rgba(83, 165, 125, 0.18),
      transparent 70%
    );
  }
}

/* ── Base ── */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--green-600);
  color: #fff;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 22px;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
}

.btn-primary:hover {
  background: #33664a;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 14vw, 160px) 0 clamp(72px, 10vw, 120px);
  background-image: var(--hero-glow);
}

.hero-watermark {
  position: absolute;
  top: -60px;
  right: -110px;
  width: clamp(320px, 42vw, 560px);
  opacity: 0.07;
  pointer-events: none;
  transform: rotate(8deg);
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero-mark {
  width: 56px;
  height: auto;
  margin-bottom: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-600) 25%, transparent);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-600);
}

.hero-sub {
  max-width: 560px;
  margin: 24px 0 40px;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Sections ── */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ── Features ── */

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

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Band (always dark) ── */

.band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #f2f5f1;
  padding: clamp(80px, 11vw, 136px) 0;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      55% 65% at 18% 85%,
      rgba(83, 165, 125, 0.22),
      transparent 70%
    ),
    radial-gradient(
      40% 50% at 85% 15%,
      rgba(83, 165, 125, 0.1),
      transparent 70%
    );
}

.band-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.band-mark {
  width: clamp(72px, 8vw, 104px);
  height: auto;
  color: var(--green-400);
}

.band h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.band p {
  margin: 16px 0 0;
  max-width: 52ch;
  color: rgba(242, 245, 241, 0.72);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 245, 241, 0.22);
  background: rgba(242, 245, 241, 0.06);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chip-licensed {
  border-style: dashed;
  color: var(--green-400);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

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

.footer-brand img {
  width: 18px;
  height: auto;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  width: 100%;
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
  }

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

  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    margin-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
