/* ============================================================
   Base / reset / typography / utilities
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--green);
  color: var(--night-950);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 14px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.ic { width: 1em; height: 1em; }

/* ---- Section scaffolding ---- */
.section { position: relative; padding: 112px 0; }

.dark-section {
  background: var(--night-900);
  color: var(--text-light);
}
.dark-band { background: var(--night-900); color: var(--text-light); }

.section-head { max-width: 820px; margin: 0 auto 64px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.dark-section .eyebrow { color: var(--green-bright); }

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--text-slate);
  line-height: 1.7;
}
.dark-section .section-lead { color: var(--text-soft); }

.text-grad {
  background: linear-gradient(100deg, var(--green-soft) 0%, var(--green) 55%, var(--green-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
  will-change: transform;
}
.btn .ic { font-size: 1.05em; transition: transform 0.25s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, var(--green-bright) 0%, var(--green) 55%, var(--green-deep) 130%);
  color: #0B1A02;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 10px 26px -10px rgba(124,197,33,.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 18px 40px -12px rgba(124,197,33,.7);
}

.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--green-bright);
  background: rgba(124,197,33,0.1);
  box-shadow: 0 0 0 1px rgba(124,197,33,0.25), 0 14px 30px -12px rgba(124,197,33,0.35);
}

.btn-light {
  background: var(--card-light);
  color: var(--text-ink);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-lg { padding: 18px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 12px 20px; font-size: 0.9rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* Scroll reveal base (driven by reveal.js adding .in-view) */
.reveal-rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
.reveal-rise.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-rise { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}
