:root {
  --ink: #102a28;
  --ink-soft: #2c4a46;
  --muted: #5c7470;
  --paper: #f3f7f5;
  --paper-2: #e7f0ec;
  --line: rgba(16, 42, 40, 0.12);
  --teal: #0b6b63;
  --teal-deep: #084f4a;
  --mint: #19a38f;
  --sand: #d8e8e1;
  --highlight: #c8f3e4;
  --danger-soft: #ffe8df;
  --shadow: 0 24px 60px rgba(16, 42, 40, 0.12);
  --radius: 22px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-ui: "Sora", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--highlight);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  font-size: 0.95em;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

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

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(25, 163, 143, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 5%, rgba(216, 232, 225, 0.95), transparent 50%),
    linear-gradient(180deg, #eef5f2 0%, var(--paper) 42%, #eaf3ef 100%);
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}

.atmosphere__glow--a {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 18vh;
  background: rgba(25, 163, 143, 0.28);
}

.atmosphere__glow--b {
  width: 280px;
  height: 280px;
  right: -40px;
  top: 8vh;
  background: rgba(11, 107, 99, 0.16);
  animation-delay: -4s;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 42, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 40, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 18px, 0) scale(1.08); }
}

.site-header {
  padding: 1.15rem 0 0.35rem;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand__mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--teal-deep));
  box-shadow: 0 0 0 6px rgba(25, 163, 143, 0.15);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(25, 163, 143, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 163, 143, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(25, 163, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 163, 143, 0); }
}

.hero {
  padding: 1.25rem 0 2.5rem;
}

.hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
  min-height: min(72vh, 720px);
}

.hero__primary {
  animation: rise 0.7s ease both;
}

.hero__news {
  animation: rise 0.85s ease both;
  animation-delay: 0.08s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--ink);
}

.hero__lede {
  margin: 1rem 0 1.4rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.code-stack {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

.code-card {
  position: relative;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 247, 245, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mint), var(--teal-deep));
}

.code-card--accent::before {
  background: linear-gradient(180deg, #f0a070, var(--teal));
}

.code-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.code-card__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.code-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.code-card__meta {
  margin: 0.35rem 0 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--ink);
  color: #f5fffb;
  width: 100%;
}

.btn--primary:hover {
  background: var(--teal-deep);
}

.btn--primary.is-copied {
  background: var(--mint);
  color: #042824;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding-inline: 1.1rem;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 1.15rem;
}

.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero__news {
  position: sticky;
  top: 1rem;
  padding: 1.2rem 1.15rem 1rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(16, 42, 40, 0.94), rgba(8, 79, 74, 0.92));
  color: #e8f6f2;
  box-shadow: var(--shadow);
}

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.news-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.news-head p {
  margin: 0;
  color: rgba(232, 246, 242, 0.65);
  font-size: 0.78rem;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.news-list li a {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.news-list li a:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
}

.news-list__source {
  color: #9fe0d2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-list__title {
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 500;
}

.news-foot {
  margin: 0.9rem 0 0;
  color: rgba(232, 246, 242, 0.55);
  font-size: 0.75rem;
}

.seo-layer {
  padding: 0.5rem 0 4rem;
}

.answer-block {
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.answer-block h2,
.seo-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.answer-block p,
.seo-block p,
.seo-block li {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.seo-block {
  padding: 1.35rem 0 0.5rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.steps li {
  display: grid;
  gap: 0.2rem;
  padding-left: 2.6rem;
  position: relative;
  font-family: var(--font-serif);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--teal-deep);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
}

.steps strong {
  font-family: var(--font-ui);
  color: var(--ink);
  font-size: 0.98rem;
}

.steps span {
  color: var(--ink-soft);
}

.plain-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.85rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0.65rem 0 0.15rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  background: rgba(231, 240, 236, 0.65);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.footer-note {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.site-footer nav a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #f5fffb;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .hero__stage,
  .seo-grid,
  .footer-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero__stage {
    min-height: 0;
  }

  .hero__news {
    position: static;
  }

  .brand-lockup {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .footer-row {
    gap: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmosphere__glow,
  .live-dot,
  .hero__primary,
  .hero__news {
    animation: none;
  }
}
