@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #060F07;
  --surface: #0D1F0F;
  --surface-2: #111E12;
  --text: #F0EDE6;
  --text-dim: rgba(240, 237, 230, 0.52);
  --text-mid: rgba(240, 237, 230, 0.75);
  --accent: #7DC952;
  --accent-light: #A8D86E;
  --accent-glow: rgba(125, 201, 82, 0.22);
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 900px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
  max-width: 100%;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(6, 15, 7, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: -1;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav a {
  color: var(--text-dim); margin-left: 24px; font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}

.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(125, 201, 82, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(95, 183, 131, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(95, 183, 131, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb-1 { width: 500px; height: 500px; background: #3a8c30; top: -160px; left: 50%; transform: translateX(-50%); }
.orb-2 { width: 300px; height: 300px; background: #2a6e45; bottom: 5%; right: -80px; opacity: 0.12; }
.orb-3 { width: 250px; height: 250px; background: #5cb85c; bottom: 10%; left: -60px; opacity: 0.10; }

.hero-inner {
  position: relative; z-index: 1;
  text-align: center; padding: 80px 24px 100px;
  max-width: 720px;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block; margin-bottom: 28px;
}
.hero-logo-bloom {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(125, 201, 82, 0.35) 0%, transparent 65%);
  filter: blur(24px);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.hero-logo {
  width: 96px; height: 96px;
  position: relative;
  filter: drop-shadow(0 4px 24px rgba(125, 201, 82, 0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(125, 201, 82, 0.1);
  border: 1px solid rgba(125, 201, 82, 0.25);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.hero h1 {
  font-size: clamp(46px, 8.5vw, 82px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 22px;
  background: linear-gradient(175deg, #ffffff 20%, rgba(168,216,110,0.9) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex; align-items: center;
  background: var(--accent);
  color: #071409;
  font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(125,201,82,0.3), 0 8px 32px -8px rgba(125,201,82,0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  letter-spacing: -0.01em;
}
.cta-primary:hover {
  background: var(--accent-light);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(168,216,110,0.4), 0 16px 40px -10px rgba(125,201,82,0.7);
}

.cta-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-mid); font-weight: 500; font-size: 15px;
  padding: 14px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.18s, border-color 0.18s, transform 0.18s;
  letter-spacing: -0.01em;
}
.cta-ghost::after { content: "↓"; font-size: 13px; opacity: 0.7; }
.cta-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); text-decoration: none; transform: translateY(-1px); }

/* ── Features ────────────────────────────── */
.features-section {
  padding: 40px 0 100px;
  position: relative;
}
.features-section::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent);
}

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 8px; color: var(--text);
}
.section-sub {
  font-size: 17px; color: var(--text-dim); margin-bottom: 52px;
}

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

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

.card {
  position: relative; overflow: hidden;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(125,201,82,0.06) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.25s;
  border-radius: inherit;
}
.card:hover { transform: translateY(-4px); border-color: rgba(125,201,82,0.28); box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(125,201,82,0.1); }
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(125, 201, 82, 0.1);
  border: 1px solid rgba(125, 201, 82, 0.18);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px; color: var(--text);
}
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ── Reveal animation ────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.features .card:nth-child(2) { transition-delay: 0.08s; }
.features .card:nth-child(3) { transition-delay: 0.16s; }
.features .card:nth-child(4) { transition-delay: 0.24s; }

/* ── Download CTA ────────────────────────── */
.download-section { padding: 0 0 120px; }

.download-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #0e1f10, #091409);
  border: 1px solid rgba(125,201,82,0.2);
  border-radius: var(--radius-lg);
  padding: 60px 52px;
  display: flex; align-items: center; gap: 32px;
  box-shadow: 0 0 0 1px rgba(125,201,82,0.06) inset, 0 40px 80px -30px rgba(0,0,0,0.6);
}

.download-glow {
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125,201,82,0.15), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.download-logo { width: 80px; height: 80px; flex-shrink: 0; filter: drop-shadow(0 4px 20px rgba(125,201,82,0.4)); }

.download-text { flex: 1; }
.download-text h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.download-text p { font-size: 15px; color: var(--text-dim); }

@media (max-width: 640px) {
  .download-card { flex-direction: column; text-align: center; padding: 40px 28px; }
}

/* ── Legal / content pages ───────────────── */
.content { padding: 48px 0 96px; }
.content h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.content .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 36px; }
.content h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 8px; }
.content p, .content li { color: var(--text-dim); font-size: 15px; line-height: 1.75; }
.content strong { color: var(--text); }
.content ul { padding-left: 20px; }
.content a { word-break: break-word; }

/* ── Footer ──────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 32px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-nav a { color: var(--text-dim); margin-left: 20px; font-size: 13px; font-weight: 500; transition: color 0.15s; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.copyright { font-size: 13px; color: var(--text-dim); opacity: 0.6; }

/* ── 404 page ───────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.error-main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 72px 24px 96px;
  text-align: center;
}
.error-glow {
  position: absolute;
  z-index: -1;
  width: min(760px, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 201, 82, 0.17), rgba(42, 110, 69, 0.06) 42%, transparent 70%);
  filter: blur(18px);
}
.error-card { max-width: 650px; }
.error-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
  margin-bottom: 30px;
  color: rgba(240, 237, 230, 0.13);
  font-size: clamp(92px, 20vw, 164px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.72;
}
.error-mark img {
  width: clamp(76px, 14vw, 118px);
  height: clamp(76px, 14vw, 118px);
  filter: drop-shadow(0 8px 32px rgba(125, 201, 82, 0.48));
  animation: float 6s ease-in-out infinite;
}
.error-card .section-label { margin-bottom: 14px; }
.error-card h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 7vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}
.error-copy {
  max-width: 510px;
  margin: 0 auto 32px;
  color: var(--text-mid);
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.7;
}
.error-support::after { content: "→"; }

@media (max-width: 520px) {
  .site-header { padding: 0 18px; }
  .nav a { margin-left: 12px; font-size: 13px; }
  .error-main { padding-top: 54px; }
}
