@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #10231f;
  --ink-soft: #3a534d;
  --paper: #f3f7f4;
  --paper-deep: #e4eee8;
  --jade: #0f8f78;
  --jade-deep: #0c2e2a;
  --signal: #d9ff57;
  --line: rgba(16, 35, 31, 0.12);
  --shadow: 0 24px 60px rgba(12, 46, 42, 0.18);
  --font-display: "Bricolage Grotesque", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-body: "Figtree", "Source Han Sans SC", "PingFang SC", sans-serif;
  --radius: 14px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 143, 120, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(217, 255, 87, 0.18), transparent 50%),
    linear-gradient(180deg, #f7fbf8 0%, var(--paper) 45%, var(--paper-deep) 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--jade); }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--jade-deep);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 244, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  place-items: center;
  cursor: pointer;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav a { text-decoration: none; font-weight: 500; }
.lang-switch {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: var(--jade-deep);
  color: #f4fff8 !important;
  box-shadow: 0 10px 24px rgba(12, 46, 42, 0.22);
}
.btn-primary:hover { background: #134039; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1.05rem; }

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4fff8;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 46, 42, 0.25) 0%, rgba(12, 46, 42, 0.55) 45%, rgba(12, 46, 42, 0.88) 100%),
    radial-gradient(700px 400px at 70% 20%, rgba(217, 255, 87, 0.18), transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 40rem;
  margin-left: max((100% - var(--shell)) / 2, 1.25rem);
  margin-right: auto;
  width: var(--shell);
  animation: rise 700ms ease both;
}
.brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--signal);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  animation: brand-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero h1,
.page-hero h1,
.article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); max-width: 18ch; }
.lead { font-size: 1.12rem; color: rgba(244, 255, 248, 0.88); max-width: 38ch; }
.page-hero .lead,
.section .lead,
.article .lead { color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.page-hero {
  padding: 4.5rem 0 1.5rem;
  background:
    linear-gradient(135deg, rgba(15, 143, 120, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(217, 255, 87, 0.12), transparent 60%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.section { padding: 4rem 0; }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2,
.section-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}

.feature-rows { display: grid; gap: 0; }
.feature-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  animation: rise 700ms ease both;
}
.feature-row:nth-child(2) { animation-delay: 80ms; }
.feature-row:nth-child(3) { animation-delay: 160ms; }
.feature-row h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
}
.feature-row p { margin: 0; color: var(--ink-soft); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
.feature-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.feature-item h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.feature-item p { margin: 0; color: var(--ink-soft); }

.plan-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.plan {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}
.plan-featured {
  background: var(--jade-deep);
  color: #f4fff8;
  box-shadow: var(--shadow);
}
.plan-featured .btn-primary {
  background: var(--signal);
  color: var(--jade-deep) !important;
}
.plan h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.plan-price small { font-size: 0.95rem; font-weight: 500; opacity: 0.75; }
.plan dl { margin: 0 0 1.5rem; }
.plan dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.plan:not(.plan-featured) dl div { border-top-color: var(--line); }
.plan dt { opacity: 0.75; }
.plan dd { margin: 0; font-weight: 600; }
.pricing-note { margin-top: 1.5rem; }

.section-cta {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(15, 143, 120, 0.08));
}
.section-cta p { color: var(--ink-soft); margin: 0 auto 1.25rem; max-width: 36rem; }

.prose { max-width: 42rem; }
.prose p { color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.meta { color: var(--ink-soft); font-size: 0.95rem; }
.text-link { font-weight: 600; color: var(--jade); }

.blog-list { display: grid; gap: 1.5rem; }
.blog-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.blog-item h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0.35rem 0 0.6rem;
}
.blog-item h2 a { text-decoration: none; }

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(12, 46, 42, 0.04);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}
.footer-label {
  font-weight: 700;
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-grid a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}
.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes brand-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); letter-spacing: 0.12em; }
  to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.02em; }
}
@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 900px) {
  .plan-table,
  .feature-list,
  .footer-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .nav-burger { display: grid; }
  .site-nav {
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(243, 247, 244, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero-copy { padding-top: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
