:root {
  --bg-deep: #071210;
  --bg-mid: #0c1f1a;
  --bg-panel: rgba(12, 31, 26, 0.72);
  --ink: #e8f5f0;
  --ink-muted: #9bb8ae;
  --accent: #3dd68c;
  --accent-dim: rgba(61, 214, 140, 0.16);
  --line: rgba(232, 245, 240, 0.1);
  --danger: #f07178;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(61, 214, 140, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 72%, rgba(34, 120, 90, 0.2), transparent 50%),
    radial-gradient(ellipse 45% 35% at 8% 85%, rgba(20, 80, 70, 0.26), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #061612 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 15%, transparent 75%);
  opacity: 0.55;
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 18, 16, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark span {
  color: var(--accent);
}

.brand-mark:hover {
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.footer-brand span {
  color: var(--accent);
}

.footer-note,
.footer-meta {
  margin: 0.35rem 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin: 1rem 0 0.75rem;
}

.footer-links a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* —— Home —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hero-brand span {
  color: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.hero-support {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 28em;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: var(--bg-deep);
  background: var(--accent);
}

.btn-primary:hover {
  text-decoration: none;
  color: var(--bg-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  color: var(--ink);
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  opacity: 0;
  animation: fade-in 1s ease 0.35s forwards;
}

.hero-chart {
  width: 100%;
  height: auto;
  display: block;
}

.hero-chart path.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-line 2.2s ease-out 0.5s forwards;
}

.hero-chart path.area {
  fill: url(#chartFill);
  opacity: 0;
  animation: fade-in 1.2s ease 1.2s forwards;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.section-support {
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.tool-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.tool-item:hover {
  text-decoration: none;
  color: inherit;
  background: var(--accent-dim);
}

.tool-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.tool-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tool-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.learn-link {
  display: block;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.learn-link:hover {
  text-decoration: none;
  color: inherit;
}

.learn-link:hover h3 {
  color: var(--accent);
}

.learn-link h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  transition: color 0.2s ease;
}

.learn-link p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* —— Inner pages —— */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 36em;
  margin: 0;
  line-height: 1.55;
}

.panel {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 1.5rem 1.25rem;
}

.panel-box {
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.panel-box h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
}

.panel-box p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.badge-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.55rem;
  margin-bottom: 0.85rem;
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.article h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.article p,
.article li {
  color: var(--ink-muted);
  line-height: 1.65;
}

.article ul {
  padding-left: 1.2rem;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .hero-visual {
    order: -1;
    min-height: 180px;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: #14352c;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0.5rem;
  }
}

/* —— Cookie consent banner —— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(10, 28, 24, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-banner__btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}

.cookie-banner__btn--primary:hover {
  filter: brightness(1.05);
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.cookie-banner__btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body:not(.cookie-consent-granted) .ad-frame .adsbygoogle {
  display: none !important;
}

body.cookie-consent-granted .ad-frame .ad-placeholder {
  display: none;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
  }
}
