:root {
  --bg: #031124;
  --bg-soft: #071b32;
  --surface: rgba(9, 27, 48, 0.72);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eff7ff;
  --muted: rgba(239, 247, 255, 0.72);
  --dark-text: #0d1f31;
  --light-bg: #eef4fb;
  --green: #83d84a;
  --green-deep: #2b7a2f;
  --blue: #22a6ff;
  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(112, 194, 72, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(34, 166, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #031124 0%, #051426 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -2;
}

.site-shell::before {
  top: -10rem;
  right: -8rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(121, 226, 62, 0.28), transparent 60%);
}

.site-shell::after {
  left: -12rem;
  bottom: -10rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(41, 162, 255, 0.18), transparent 60%);
}

.navbar {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(7, 19, 35, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  position: sticky;
  top: 16px;
  z-index: 40;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, rgba(123, 207, 64, 0.95), rgba(30, 113, 36, 0.9));
  border: 1px solid rgba(255,255,255,0.12);
}

.menu-toggle {
  display: none;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 110px 0;
}

.section-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 120px);
  padding-top: 60px;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.95;
  margin: 16px 0 22px;
  letter-spacing: -0.05em;
}

.hero-copy p,
.section-head p,
.card-copy p,
.pillar-card p,
.contrast-card p,
.footer-note,
.legal-page p,
.paper-card p,
.paper-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  color: #ccedff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  background: rgba(0,0,0,0.04);
  color: #27415d;
  border-color: rgba(5, 29, 52, 0.08);
}

.hero-actions,
.cta-stack {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #90df4e, #247b30);
  box-shadow: 0 18px 40px rgba(92, 173, 47, 0.25);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-image-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}

.hero-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,17,36,0.7) 0%, rgba(3,17,36,0.15) 42%, rgba(3,17,36,0.1) 100%);
}

.hero-image-card img {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
}

.section-light {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(235,242,248,0.97) 0%, rgba(234,243,251,0.93) 100%),
    url('assets/hero-farm2.jpg') center/cover no-repeat;
  color: var(--dark-text);
  padding-inline: max(16px, calc((100vw - var(--max-width)) / 2));
}

.system-section {
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2,
.legal-page h1,
.paper-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.narrow { max-width: 700px; }

.flow-wrap {
  background: rgba(255,255,255,0.46);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 31, 49, 0.08);
  box-shadow: 0 24px 48px rgba(27, 57, 84, 0.12);
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 34px;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) 60px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 24px 28px;
}

.flow-item {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  text-align: center;
}

.flow-item.emphasis { color: #1a5c2e; }
.flow-arrow {
  text-align: center;
  color: #3a6887;
  font-size: 2rem;
  line-height: 1;
}
.flow-divider { height: 1px; background: rgba(13, 31, 49, 0.08); }

.cards-grid,
.pillar-grid,
.contrast-grid,
.paper-grid {
  display: grid;
  gap: 22px;
}

.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contrast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; margin: 0 auto; }
.paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }

.info-card,
.pillar-card,
.contrast-card,
.paper-card,
.paper-hero,
.paper-roadmap,
.legal-page {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.glass {
  background: rgba(9, 27, 48, 0.62);
  backdrop-filter: blur(16px);
}

.info-card {
  overflow: hidden;
  background: rgba(255,255,255,0.52);
  border-color: rgba(13, 31, 49, 0.08);
  box-shadow: 0 24px 48px rgba(27, 57, 84, 0.12);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.card-copy {
  padding: 18px 20px 22px;
  color: var(--dark-text);
}

.card-copy h3,
.pillar-card h3,
.contrast-card h3,
.paper-card h2,
.paper-roadmap h2,
.legal-page h2 {
  margin: 10px 0 10px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}
.dot.green { background: linear-gradient(135deg, #b8ef6e, #2d7e3b); }
.dot.blue { background: linear-gradient(135deg, #74dcff, #218fe7); }

.infrastructure-section,
.contrast-section,
.transparency-section {
  position: relative;
}

.infrastructure-section::before,
.contrast-section::before,
.transparency-section::before,
.legal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 90%);
  pointer-events: none;
}

.pillar-card,
.contrast-card,
.paper-card,
.paper-roadmap,
.legal-page,
.paper-hero {
  padding: 26px;
}

.compact { min-height: 100%; }

.transparency-section {
  text-align: center;
}

.text-link {
  color: #b8dfff;
  padding: 6px 0;
}

.footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

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

.paper-page,
.legal-page {
  width: min(calc(100% - 32px), 1120px);
  margin: 40px auto 60px;
}

.paper-hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.paper-roadmap { margin-top: 22px; }
.allocation-list { display: grid; gap: 12px; margin-top: 16px; }
.allocation-list div,
.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.allocation-list div:last-child,
.timeline-item:last-child { border-bottom: 0; }
.timeline-item { align-items: start; }
.timeline-item strong { min-width: 92px; }
.paper-card ul,
.legal-page ul { color: var(--muted); padding-left: 18px; line-height: 1.7; }
.faq-list details {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-list summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
}
.legal-page h2 { margin-top: 28px; }
.nav-links-static { flex-wrap: wrap; }
.compact-footer { padding-top: 0; }

@media (max-width: 1024px) {
  .section-hero,
  .paper-hero,
  .pillar-grid,
  .cards-grid,
  .paper-grid { grid-template-columns: 1fr; }

  .section-hero { min-height: auto; padding-top: 40px; }
  .hero-image-card img { min-height: 420px; }
}

@media (max-width: 800px) {
  .navbar {
    border-radius: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }

  .flow-row {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }
  .flow-arrow { transform: rotate(90deg); }
  .contrast-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: 2.85rem; }
  .section-head h2,
  .legal-page h1,
  .paper-hero h1 { font-size: 2rem; }
  .hero-actions,
  .cta-stack { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .brand img, .footer-brand img { height: 34px; }
}


/* Mobile-first polish update */
@media (max-width: 800px) {
  html, body { overflow-x: hidden; }

  .navbar {
    width: min(calc(100% - 24px), var(--max-width));
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    align-items: center;
  }

  .brand img,
  .footer-brand img {
    height: 32px;
  }

  .menu-toggle {
    min-width: 52px;
    min-height: 52px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    border-radius: 16px;
    font-size: 1.35rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
  }

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

  .nav-links a,
  .nav-links .nav-cta {
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
  }

  .section {
    width: min(calc(100% - 24px), var(--max-width));
    padding: 72px 0;
  }

  .section-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
    min-height: auto;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 32ch;
    margin: 0;
  }

  .hero-actions,
  .cta-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
  }

  .btn {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .hero-visual {
    order: 2;
  }

  .hero-image-card {
    border-radius: 24px;
  }

  .hero-image-card img {
    min-height: 250px;
    max-height: 320px;
    object-position: center;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head p,
  .pillar-card p,
  .contrast-card p,
  .card-copy p,
  .paper-card p,
  .footer-note,
  .legal-page p,
  .paper-hero p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .flow-wrap {
    border-radius: 20px;
    margin-bottom: 24px;
  }

  .flow-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 16px;
  }

  .flow-item {
    font-size: 1.05rem;
  }

  .flow-arrow {
    transform: rotate(90deg);
    font-size: 1.4rem;
    margin: -4px 0;
  }

  .cards-grid,
  .pillar-grid,
  .contrast-grid,
  .paper-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-card,
  .pillar-card,
  .contrast-card,
  .paper-card,
  .paper-roadmap,
  .legal-page,
  .paper-hero {
    border-radius: 20px;
  }

  .card-copy,
  .pillar-card,
  .contrast-card,
  .paper-card,
  .paper-roadmap,
  .legal-page,
  .paper-hero {
    padding: 20px;
  }

  .card-copy h3,
  .pillar-card h3,
  .contrast-card h3,
  .paper-card h2,
  .paper-roadmap h2,
  .legal-page h2 {
    font-size: 1.3rem;
    margin-top: 8px;
  }

  .footer {
    width: min(calc(100% - 24px), var(--max-width));
    padding: 12px 0 34px;
  }

  .footer-brand {
    margin-bottom: 14px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .footer-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
  }

  .footer-note {
    margin: 0 auto;
    max-width: 28ch;
  }

  .paper-page,
  .legal-page {
    width: min(calc(100% - 24px), 1120px);
    margin-top: 24px;
  }

  .allocation-list div,
  .timeline-item {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    padding: 8px 11px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
    line-height: 0.96;
    margin: 14px 0 16px;
  }

  .section-head h2,
  .legal-page h1,
  .paper-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
    line-height: 1.02;
  }

  .navbar {
    padding: 10px 12px;
  }

  .brand img,
  .footer-brand img {
    height: 28px;
  }

  .menu-toggle {
    min-width: 48px;
    min-height: 48px;
    border-radius: 14px;
  }

  .hero-copy p,
  .section-head p,
  .pillar-card p,
  .contrast-card p,
  .card-copy p,
  .paper-card p,
  .footer-note,
  .legal-page p,
  .paper-hero p {
    font-size: 0.98rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-light {
    padding-inline: 12px;
  }

  .hero-image-card img {
    min-height: 220px;
    max-height: 260px;
  }

  .flow-wrap {
    background: rgba(255,255,255,0.6);
  }

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

  .footer-note {
    font-size: 0.94rem;
  }
}


/* === FINAL LOGO + MOBILE NAV FIX === */
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand img,
.footer-brand img {
  height: auto !important;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

@media (max-width: 800px) {
  .navbar {
    padding: 10px 14px;
  }

  .brand img,
  .footer-brand img {
    max-width: 132px;
  }
}

@media (max-width: 560px) {
  .navbar {
    padding: 10px 12px;
  }

  .brand img,
  .footer-brand img {
    max-width: 116px;
  }
}
