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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0e0f0c;
  --green: #9fe870;
  --green-dark: #163300;
  --green-mint: #e2f6d5;
  --gray: #868685;
  --gray-warm: #454745;
  --surface: #f7faf4;
  --white: #ffffff;
  --border: rgba(14,15,12,0.12);
  --shadow: rgba(14,15,12,0.12) 0px 0px 0px 1px;
  --radius-pill: 9999px;
  --radius-card: 30px;
  --radius-sm: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: 0.18px;
  color: var(--black);
  background: var(--white);
  font-feature-settings: "calt";
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 24px;
}
.logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--black);
  font-feature-settings: "calt";
}
.site-nav {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(211,242,192,0.4); color: var(--black); }

.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: var(--black); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--green-dark);
  font-weight: 600; font-size: 1rem;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: transform 0.18s;
  font-feature-settings: "calt";
  letter-spacing: -0.108px;
  text-decoration: none;
}
.btn-primary:hover { transform: scale(1.05); color: var(--green-dark); }
.btn-primary:active { transform: scale(0.95); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(22,51,0,0.08); color: var(--black);
  font-weight: 600; font-size: 1rem;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: transform 0.18s;
  font-feature-settings: "calt";
  letter-spacing: -0.108px;
  text-decoration: none;
}
.btn-secondary:hover { transform: scale(1.05); }
.btn-secondary:active { transform: scale(0.95); }

/* Hero */
.hero {
  background: var(--surface);
  padding: 80px 0 64px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--green-mint);
  color: var(--green-dark);
  font-weight: 600; font-size: 0.85rem;
  padding: 4px 14px; border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--black);
  font-feature-settings: "calt";
  margin-bottom: 24px;
}
.hero-desc {
  font-weight: 400; font-size: 1.1rem; color: var(--gray-warm);
  max-width: 480px; margin-bottom: 32px; line-height: 1.6;
}
.hero-img {
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-img img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-card); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 0.95; letter-spacing: -0.02em;
  color: var(--black);
  font-feature-settings: "calt";
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem; color: var(--gray); max-width: 560px; margin-bottom: 48px; line-height: 1.6;
}

/* Cards */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card-img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  background: var(--green-mint);
  color: var(--green-dark);
  font-weight: 600; font-size: 0.78rem;
  padding: 3px 12px; border-radius: var(--radius-pill);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}
.card-title {
  font-weight: 600; font-size: 1.25rem; line-height: 1.3;
  letter-spacing: -0.02em; margin-bottom: 10px; color: var(--black);
  font-feature-settings: "calt";
}
.card-desc { font-size: 0.95rem; color: var(--gray-warm); line-height: 1.55; margin-bottom: 20px; }
.card-link {
  font-weight: 600; font-size: 0.95rem; color: var(--green-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover { color: var(--black); }
.card-link::after { content: '→'; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 24px rgba(14,15,12,0.08); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-mint); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; color: var(--black); }
.feature-desc { font-size: 0.95rem; color: var(--gray-warm); line-height: 1.55; }

/* Contact Form */
.contact-section { padding: 72px 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-weight: 900; font-size: 2rem; line-height: 1; margin-bottom: 16px; letter-spacing: -0.02em; }
.contact-info p { color: var(--gray-warm); line-height: 1.6; margin-bottom: 12px; }
.contact-info a { color: var(--green-dark); font-weight: 600; }
.contact-form { background: var(--white); border-radius: var(--radius-card); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--black); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 1rem; color: var(--black); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--green-dark);
  box-shadow: inset rgb(134,134,133) 0px 0px 0px 1px;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; }
.form-notice { font-size: 0.8rem; color: var(--gray); margin-top: 12px; line-height: 1.5; }

/* Article page */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 56px 0; }
.article-main {}
.article-header { margin-bottom: 32px; }
.article-tag { display: inline-block; background: var(--green-mint); color: var(--green-dark); font-weight: 600; font-size: 0.78rem; padding: 3px 12px; border-radius: var(--radius-pill); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.article-title { font-weight: 900; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 16px; font-feature-settings: "calt"; }
.article-meta { font-size: 0.88rem; color: var(--gray); }
.article-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-card); margin-bottom: 40px; }
.article-body h2 { font-weight: 900; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; margin: 40px 0 16px; font-feature-settings: "calt"; }
.article-body h3 { font-weight: 600; font-size: 1.2rem; margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; line-height: 1.7; color: var(--black); }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; line-height: 1.6; }
.article-body a { color: var(--green-dark); font-weight: 600; text-decoration: underline; }
.article-body figure { margin: 32px 0; }
.article-body figcaption { font-size: 0.85rem; color: var(--gray); margin-top: 8px; text-align: center; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.article-body th { background: var(--green-mint); color: var(--green-dark); font-weight: 600; padding: 12px 16px; text-align: left; }
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.article-body tr:last-child td { border-bottom: none; }

.article-sidebar {}
.sidebar-card { background: var(--surface); border-radius: var(--radius-sm); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.sidebar-card h4 { font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.sidebar-card a { display: block; font-size: 0.92rem; color: var(--green-dark); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-card a:last-child { border-bottom: none; }
.sidebar-card a:hover { color: var(--black); }
.sidebar-toc a { color: var(--gray-warm) !important; font-weight: 400 !important; font-size: 0.9rem; }
.sidebar-toc a:hover { color: var(--black) !important; }

/* Page (about/privacy/terms) */
.page-layout { max-width: 820px; margin: 0 auto; padding: 56px 24px; }
.page-title { font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 32px; font-feature-settings: "calt"; }
.page-body h2 { font-weight: 700; font-size: 1.4rem; margin: 36px 0 12px; }
.page-body h3 { font-weight: 600; font-size: 1.1rem; margin: 24px 0 10px; }
.page-body p { margin-bottom: 18px; line-height: 1.7; color: var(--black); }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 18px; }
.page-body li { margin-bottom: 8px; line-height: 1.6; }
.page-body a { color: var(--green-dark); font-weight: 600; }
.page-updated { font-size: 0.85rem; color: var(--gray); margin-bottom: 40px; }

/* Stats bar */
.stats-bar { background: var(--black); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-value { font-weight: 900; font-size: 2.4rem; color: var(--green); line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--black); color: var(--white);
  border-radius: var(--radius-card); padding: 20px 28px;
  box-shadow: 0 8px 40px rgba(14,15,12,0.25);
  z-index: 9999; max-width: 600px; width: calc(100% - 48px);
}
.cookie-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { font-size: 0.9rem; flex: 1; line-height: 1.5; }
.cookie-inner a { color: var(--green); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { color: var(--white); display: block; margin-bottom: 16px; font-size: 1.4rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.footer-company { font-size: 0.82rem !important; color: rgba(255,255,255,0.45) !important; }
.footer-company a { color: rgba(255,255,255,0.6); }
.footer-nav h4 { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-nav a { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-bottom: 10px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--green); }
.footer-bottom { padding: 24px 0; font-size: 0.82rem; color: rgba(255,255,255,0.35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Disclaimer */
.disclaimer { background: var(--green-mint); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.88rem; color: var(--green-dark); margin: 32px 0; line-height: 1.6; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--gray); }
.breadcrumb a { color: var(--green-dark); font-weight: 600; }
.breadcrumb span { margin: 0 8px; }

/* Responsive */
@media (max-width: 992px) {
  .hero-inner, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 576px) {
  .cards-grid, .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
