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

:root {
  --burnt-orange: #c8622a;
  --orange-light: #e07a45;
  --cream: #f5f0e8;
  --warm-white: #faf7f2;
  --dark: #1a1510;
  --dark-mid: #2a2018;
  --muted: #8a7968;
  --muted-light: #b5a898;

  --font-display: "DM Serif Display", serif;
  --font-mono: "DM Mono", monospace;
  --font-body: "DM Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--warm-white);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =====================
   NOISE
   ===================== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 98, 42, 0.1);
  transition: box-shadow 0.3s;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.footer-logo {
  color: var(--muted-light) !important;
}

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

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--burnt-orange);
  text-decoration: none;
  border: 1px solid var(--burnt-orange);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  transition:
    background 0.2s,
    color 0.2s;
}

.nav-cta:hover {
  background: var(--burnt-orange);
  color: var(--cream);
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 4rem 6rem;
  max-width: 900px;
  position: relative;
}

.hero::after {
  content: "⚽";
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20rem;
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--burnt-orange);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.hero-title em {
  font-style: italic;
  color: var(--burnt-orange);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--burnt-orange);
  color: var(--cream);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 2px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(26, 21, 16, 0.2);
  border-radius: 2px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--burnt-orange);
  color: var(--burnt-orange);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.7s;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--burnt-orange);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* =====================
   SECTIONS
   ===================== */
.section {
  padding: 6rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-tinted {
  background: var(--cream);
  max-width: 100%;
  padding: 6rem 4rem;
}

.section-tinted .section-title,
.section-tinted .features-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark {
  background: var(--dark);
  color: var(--cream);
  max-width: 100%;
  padding: 6rem 4rem;
}

.section-dark .section-title {
  color: var(--cream);
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.section-dark .section-label {
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.section-dark .endpoints-note {
  max-width: 1100px;
  margin: 1.5rem auto 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* =====================
   SOURCES GRID
   ===================== */
.sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.source-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(200, 98, 42, 0.3);
  border-radius: 2px;
  color: var(--dark);
  background: var(--cream);
  transition:
    background 0.2s,
    border-color 0.2s;
}

.source-pill:hover {
  background: var(--burnt-orange);
  color: var(--cream);
  border-color: var(--burnt-orange);
}

.sources-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* =====================
   FEATURES GRID
   ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(200, 98, 42, 0.12);
  border: 1px solid rgba(200, 98, 42, 0.12);
}

.feature-card {
  background: var(--cream);
  padding: 2.25rem;
  transition: background 0.2s;
}

.section-tinted .feature-card {
  background: var(--warm-white);
}

.feature-card:hover {
  background: var(--warm-white);
}

.section-tinted .feature-card:hover {
  background: #f5f0e8;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(200, 98, 42, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  color: var(--burnt-orange);
}

/* =====================
   ENDPOINTS
   ===================== */
.endpoint-group {
  max-width: 780px;
  margin: 0 auto 2rem;
}

.endpoint-group:last-of-type {
  margin-bottom: 0;
}

.endpoint-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark-mid);
  padding: 0.95rem 1.5rem;
  margin-bottom: 1.5px;
  transition: background 0.2s;
}

.endpoint:hover {
  background: #322818;
}

.endpoint.highlight {
  background: #2e1e0e;
  border-left: 2px solid var(--burnt-orange);
}

.method {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.method.get {
  background: rgba(200, 98, 42, 0.18);
  color: var(--burnt-orange);
  border: 1px solid rgba(200, 98, 42, 0.3);
}

.endpoint code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cream);
  flex: 0 0 260px;
}

.endpoint-desc {
  font-size: 0.82rem;
  color: var(--muted-light);
  flex: 1;
}

.endpoint-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--burnt-orange);
  border: 1px solid rgba(200, 98, 42, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.endpoints-note {
  font-size: 0.8rem;
  color: var(--muted-light);
  font-family: var(--font-mono);
  text-align: center;
}

/* =====================
   TITLE CODE
   ===================== */
.title-code {
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--burnt-orange);
  background: rgba(200, 98, 42, 0.12);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-style: normal;
}

/* =====================
   RESPONSE / CODE BLOCK
   ===================== */
.response-intro {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.code-block {
  background: var(--dark);
  border-radius: 2px;
  overflow: hidden;
  max-width: 640px;
  border: 1px solid rgba(200, 98, 42, 0.15);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: var(--dark-mid);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--burnt-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-route {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-light);
}

.code-block pre {
  padding: 1.5rem 1.25rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cream);
  line-height: 1.7;
}

/* =====================
   PROBLEMS
   ===================== */
.problems-list {
  display: flex;
  flex-direction: column;
  max-width: 780px;
  margin: 0 auto;
}

.problem-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.07);
  align-items: start;
}

.problem-item:last-child {
  border-bottom: none;
}

.problem-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--burnt-orange);
  letter-spacing: 0.06em;
  padding-top: 0.25rem;
}

.problem-item h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--cream);
  margin-bottom: 0.45rem;
}

.problem-item p {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.7;
  font-weight: 300;
}

.problem-item code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(200, 98, 42, 0.15);
  color: var(--burnt-orange);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

/* =====================
   USE CASES
   ===================== */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.use-case-card {
  border: 1px solid rgba(200, 98, 42, 0.18);
  padding: 1.75rem;
  border-radius: 2px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.use-case-card:hover {
  border-color: var(--burnt-orange);
  transform: translateY(-3px);
}

.use-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--burnt-orange);
  background: rgba(200, 98, 42, 0.08);
  border: 1px solid rgba(200, 98, 42, 0.2);
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}

.use-case-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =====================
   CTA
   ===================== */
.cta-section {
  text-align: center;
  padding: 8rem 4rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.btn-large {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--dark);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-by {
  font-size: 0.82rem;
  color: var(--muted-light);
}
.footer-by a {
  color: var(--burnt-orange);
  text-decoration: none;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--burnt-orange);
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero::after {
    font-size: 10rem;
    right: -1rem;
    opacity: 0.03;
  }

  .hero-stats {
    gap: 2rem;
  }

  .section,
  .section-tinted,
  .section-dark {
    padding: 4rem 1.5rem;
  }

  .endpoint {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .endpoint code {
    flex: 0 0 auto;
  }

  .problem-item {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .footer {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}
