:root {
  --bg: #f4f1ea;
  --bg-dark: #eae5da;
  --text: #1f2a24;
  --muted: #5f6b63;
  --green: #20382f;
  --green-dark: #172820;
  --green-light: #2a4d3f;
  --gold: #d9a441;
  --gold-dark: #a87318;
  --gold-light: #e5c06a;
  --card: #ffffff;
  --line: #ddd6c8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--green); }
a:hover { color: var(--gold-dark); }

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

h1, h2, h3, p, li { overflow-wrap: anywhere; }

h1 { margin: 0; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h3 { margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 16px; }
ul { margin: 0; padding-left: 22px; }
li + li { margin-top: 10px; }

/* ──────────── Canvas ──────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ──────────── Header ──────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(23, 40, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-icon { flex-shrink: 0; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.nav-links a {
  color: rgba(247, 243, 235, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ──────────── Hero ──────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.subtitle {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(246, 239, 225, 0.9);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ──────────── Buttons ──────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  color: #ffffff;
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.button:hover {
  color: #ffffff;
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.button-gold {
  color: var(--green-dark);
  background: var(--gold);
  border-color: var(--gold);
}

.button-gold:hover {
  color: var(--green-dark);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button-outline {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-outline:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.button-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.button-accent {
  color: var(--green-dark);
  background: var(--gold);
  border-color: var(--gold);
}

.button-accent:hover {
  color: var(--green-dark);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ──────────── Section styling ──────────── */
.section-eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  color: var(--green);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 48px;
}

/* ──────────── Features ──────────── */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--bg);
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  background: rgba(32, 56, 47, 0.08);
  border-radius: 14px;
  color: var(--green);
}

.feature-card h3 {
  color: var(--green);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ──────────── Marketplace ──────────── */
.marketplace {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--green);
  color: #ffffff;
}

.marketplace .section-eyebrow { color: var(--gold); }
.marketplace .section-title { color: #ffffff; margin-bottom: 24px; }

.marketplace-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.marketplace-desc {
  color: rgba(247, 243, 235, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.marketplace-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
}

.marketplace-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(247, 243, 235, 0.8);
  line-height: 1.65;
}

.marketplace-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.marketplace-list strong { color: #ffffff; }

/* Mock marketplace cards */
.marketplace-visual {
  display: flex;
  justify-content: center;
}

.marketplace-card-stack {
  position: relative;
  width: 280px;
  height: 360px;
}

.mock-card {
  position: absolute;
  width: 240px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 16px;
  color: var(--text);
  transition: transform 0.3s;
}

.mock-card .mock-img {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #d4e7dc, #a8c5b2);
  border-radius: 10px;
  margin-bottom: 12px;
}

.mock-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.mock-price {
  display: block;
  margin-top: 4px;
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

.mc-1 { top: 0; left: 0; z-index: 3; transform: rotate(-3deg); }
.mc-2 { top: 30px; left: 40px; z-index: 2; transform: rotate(2deg); }
.mc-3 { top: 60px; left: 10px; z-index: 1; transform: rotate(-1deg); }

.marketplace-card-stack:hover .mc-1 { transform: rotate(-3deg) translateY(-8px); }
.marketplace-card-stack:hover .mc-2 { transform: rotate(2deg) translateX(8px); }
.marketplace-card-stack:hover .mc-3 { transform: rotate(-1deg) translateY(8px); }

/* ──────────── Download ──────────── */
.download {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--bg);
  text-align: center;
}

.download-desc {
  max-width: 480px;
  margin: -24px auto 48px;
  color: var(--muted);
  font-size: 1.05rem;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#qrcode {
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.qr-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.app-store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--green-dark);
  color: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.app-store-badge:hover {
  color: #ffffff;
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-store-badge small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  line-height: 1;
}

.app-store-badge strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.coming-soon-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* ──────────── Policies ──────────── */
.policies {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.policies-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.policy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.policy-card h3 {
  color: var(--green);
  font-size: 1.15rem;
}

.policy-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* ──────────── Footer ──────────── */
.site-footer {
  position: relative;
  z-index: 1;
  color: rgba(247, 243, 235, 0.8);
  background: var(--green-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-links a {
  color: rgba(247, 243, 235, 0.7);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ──────────── Legal pages ──────────── */
.legal-page {
  position: relative;
  z-index: 1;
  padding: 120px 0 64px;
  background: var(--bg);
}

.legal-page h1 {
  color: var(--green);
  font-size: clamp(2.25rem, 8vw, 4rem);
}

.updated {
  margin: 12px 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.intro {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-page section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-page section p,
.legal-page section li {
  color: var(--muted);
}

.legal-page strong { color: var(--text); }

/* ──────────── Responsive ──────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: rgba(23, 40, 32, 0.95);
    backdrop-filter: blur(12px);
  }

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

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-content { padding: 120px 0 80px; }

  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }

  .features-grid { grid-template-columns: 1fr; }

  .marketplace-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .marketplace-visual { display: none; }

  .download-row {
    flex-direction: column;
    gap: 32px;
  }

  .download-cta { align-items: center; }
  .coming-soon-note { text-align: center; }

  .policies-row { grid-template-columns: 1fr; }

  .button { width: 100%; }
  .hero-buttons .button { width: auto; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .button { width: 100%; }
}
