:root {
  color-scheme: light;
  --paper: #eef3f0;
  --surface: #ffffff;
  --ink: #15241f;
  --muted: #5a6e67;
  --line: #c8d5cf;
  --brand: #0a6f5f;
  --brand-dark: #065245;
  --hero: #0e221d;
  --hero-mid: #16352c;
  --hero-line: #2d4a41;
  --hero-muted: #a8bfb6;
  --accent: #d4573a;
  --mint: #7fd4bc;
  --code: #0a1915;
  --code-line: #243832;
  --shadow: 0 28px 60px rgba(8, 24, 20, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: relative;
  z-index: 10;
  color: #ffffff;
  background: var(--hero);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-right,
.nav-links,
.language-switch {
  display: flex;
  align-items: center;
}

.nav-right {
  gap: 16px;
}

.nav-links {
  gap: 18px;
}

.nav-links a {
  color: var(--hero-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-star {
  display: inline-flex;
  align-items: center;
  height: 28px;
  line-height: 0;
}

.nav-star > span,
.nav-star iframe {
  display: inline-block !important;
  vertical-align: middle;
}

.language-switch {
  padding: 3px;
  border: 1px solid var(--hero-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switch a {
  min-width: 36px;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--hero-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: var(--hero);
  background: #ffffff;
}

.hero-band {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(127, 212, 188, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(212, 87, 58, 0.1), transparent 50%),
    linear-gradient(165deg, var(--hero) 0%, var(--hero-mid) 55%, #0c1c18 100%);
}

.hero-band::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  opacity: 0.35;
  pointer-events: none;
  content: "";
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin-bottom: 0;
  color: var(--hero-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--mint);
  border-radius: 6px;
  color: #0d211c;
  background: var(--mint);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: #a8ecda;
  transform: translateY(-1px);
}

.button.secondary {
  color: #ffffff;
  background: transparent;
  border-color: var(--hero-line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--mint);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: #7f9a91;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  z-index: 2;
  margin: 0;
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 12% -8% -8% 8%;
  border-radius: 20px;
  background: radial-gradient(circle at 40% 30%, rgba(127, 212, 188, 0.28), transparent 65%);
  filter: blur(8px);
  content: "";
  animation: glow-pulse 5s ease-in-out infinite;
}

.hero-frame {
  overflow: hidden;
  border: 1px solid rgba(166, 214, 198, 0.28);
  border-radius: 12px;
  background: #132b24;
  box-shadow: var(--shadow);
}

.hero-frame img {
  width: 100%;
  height: auto;
  background: #1a332c;
}

.hero-visual figcaption {
  margin-top: 14px;
  color: #88a399;
  font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  text-align: center;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.section {
  padding: 72px 0;
}

.section.white {
  background: var(--surface);
}

.section.dark {
  color: #ffffff;
  background: var(--hero);
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.dark .section-heading p {
  color: var(--hero-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 8px 4px 0;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.shot-card a {
  display: block;
  text-decoration: none;
}

.shot-card img {
  width: 100%;
  height: auto;
  background: #e4ebe8;
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s ease;
}

.shot-card a:hover img,
.shot-card a:focus-visible img {
  transform: scale(1.015);
}

.shot-card figcaption {
  padding: 14px 16px 16px;
}

.shot-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.shot-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.coverage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.coverage-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 8px 18px 0;
  border-bottom: 1px solid var(--line);
}

.coverage-item:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.coverage-item:nth-child(even) {
  padding-left: 28px;
}

.coverage-item code {
  color: var(--brand-dark);
  font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 500;
}

.coverage-item strong {
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.4;
}

.quick-start {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.quick-copy .eyebrow {
  color: var(--mint);
}

.quick-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quick-copy p {
  color: var(--hero-muted);
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: 10px;
  background: var(--code);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.code-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--code-line);
  color: #6f877e;
  font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.74rem;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.window-dot.yellow {
  background: #d4a84b;
}

.window-dot.green {
  background: #4cba8a;
  margin-right: 8px;
}

pre,
code {
  font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #d2e0db;
  font-size: 0.84rem;
  line-height: 1.7;
}

.code-comment {
  color: #6d857c;
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 32px 0 44px;
  color: #738a82;
  background: #081410;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #a7bbb3;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

:focus-visible {
  outline: 3px solid #e8c46a;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0 56px;
  }

  .hero-visual {
    max-width: 420px;
  }

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

  .coverage-item,
  .coverage-item:nth-child(odd),
  .coverage-item:nth-child(even) {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    padding: 16px 0;
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .shot-gallery {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 32px, 720px);
  }

  .nav-links {
    display: none;
  }

  .section,
  .section.white {
    padding: 56px 0;
  }

  .feature-grid,
  .quick-start,
  .safety-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-actions .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  pre {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .hero-visual::before,
  .button,
  .shot-card img {
    animation: none;
    transition: none;
  }
}
