:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-2: #0d1217;
  --surface: #10161c;
  --surface-2: #141d23;
  --surface-3: #19242a;
  --text: #eef7f5;
  --muted: #9bb0ad;
  --soft: #6f8581;
  --line: rgba(164, 255, 230, 0.14);
  --line-strong: rgba(54, 231, 196, 0.34);
  --primary: #36e7c4;
  --primary-strong: #6affdd;
  --primary-dark: #0d6d5f;
  --gold: #ffc55c;
  --coral: #ff7a66;
  --ok: #75f0a8;
  --danger: #ff6b7c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --page: min(1160px, calc(100vw - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(54, 231, 196, 0.06), transparent 26rem),
    linear-gradient(90deg, rgba(255, 197, 92, 0.04), transparent 38rem);
  z-index: -2;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--primary);
  color: #06100e;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 15, 0.82);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(54, 231, 196, 0.18);
}

.nav-links,
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.lang-switch a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover,
.lang-switch a:hover,
.lang-switch .active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  min-height: clamp(660px, 88vh, 820px);
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg img {
  position: absolute;
  width: min(68vw, 900px);
  right: max(-80px, calc((100vw - 1280px) / 2));
  top: 110px;
  opacity: 0.54;
  filter: saturate(1.08) contrast(1.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.98) 0%, rgba(8, 11, 15, 0.82) 34%, rgba(8, 11, 15, 0.38) 68%, rgba(8, 11, 15, 0.88) 100%),
    linear-gradient(180deg, rgba(8, 11, 15, 0.10) 0%, rgba(8, 11, 15, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: 84px 0 76px;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--primary);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(54, 231, 196, 0.72);
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  color: #c7d8d4;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.62;
  max-width: 640px;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button.primary {
  color: #04120f;
  background: linear-gradient(180deg, var(--primary-strong), var(--primary));
  box-shadow: 0 12px 34px rgba(54, 231, 196, 0.26);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.button.ghost {
  color: var(--primary);
  border-color: rgba(54, 231, 196, 0.22);
  background: rgba(54, 231, 196, 0.06);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(54, 231, 196, 0.58);
}

.button:focus-visible,
.nav-links a:focus-visible,
.lang-switch a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(54, 231, 196, 0.68);
  outline-offset: 3px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #c7d8d4;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
  font-weight: 750;
}

.pill.gold {
  color: #ffdda1;
  border-color: rgba(255, 197, 92, 0.28);
  background: rgba(255, 197, 92, 0.08);
}

.section {
  padding: 86px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 86px;
}

.section.alt {
  background: var(--bg-2);
}

.section-inner {
  width: var(--page);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

.feature-card,
.release-card,
.step,
.note-panel {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.feature-card {
  min-height: 220px;
  padding: 22px;
}

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--primary);
  background: rgba(54, 231, 196, 0.08);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-card h3,
.step h3,
.release-card h3,
.note-panel h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.feature-card p,
.step p,
.note-panel p,
.release-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.preview-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(54, 231, 196, 0.08), rgba(255, 255, 255, 0.02)),
    #0b0f14;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.preview-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.preview-frame img {
  width: 100%;
}

.preview-copy {
  display: grid;
  gap: 14px;
}

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

.metric {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1.1rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
}

.release-card {
  padding: 24px;
}

.release-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.release-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.release-list dt {
  color: var(--muted);
}

.release-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.sha-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(54, 231, 196, 0.22);
  border-radius: 8px;
  background: rgba(54, 231, 196, 0.06);
}

.sha-box code {
  display: block;
  overflow-wrap: anywhere;
  color: #c9fff1;
  line-height: 1.55;
  font-size: 0.86rem;
}

.sha-box code::selection {
  color: #04120f;
  background: var(--primary);
}

.copy-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.copy-row a {
  min-height: 40px;
  border: 1px solid rgba(54, 231, 196, 0.35);
  border-radius: 6px;
  color: var(--primary);
  background: transparent;
  padding: 0 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.copy-row a:hover {
  background: rgba(54, 231, 196, 0.09);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 22px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: #07100e;
  background: var(--gold);
  font-weight: 900;
}

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

.note-panel {
  padding: 22px;
}

.site-footer {
  padding: 42px 0;
  background: #06090c;
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.legal-page {
  min-height: 100vh;
  padding: 70px 0;
}

.legal-page .section-inner {
  max-width: 860px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1280px) {
  .nav-shell {
    min-height: 64px;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 8px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg img {
    width: 800px;
    right: -330px;
    top: 250px;
    opacity: 0.24;
  }

  .hero-content {
    padding: 72px 0 62px;
  }

  .feature-grid,
  .steps,
  .note-grid,
  .preview-layout,
  .release-layout {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 0;
  }

  .brand {
    order: 1;
    flex: 0 1 auto;
  }

  .nav-links {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .lang-switch {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    margin-left: 0;
  }

  .nav-links a,
  .lang-switch a {
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .hero-content {
    padding-top: 52px;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(100vw - 28px, 1160px);
  }

  .nav-shell {
    gap: 10px 12px;
    padding: 10px 0;
  }

  .nav-links a,
  .lang-switch a {
    min-height: 36px;
    padding: 0 6px;
    font-size: 0.82rem;
  }

  .hero-bg img {
    width: 680px;
    right: -310px;
    top: 275px;
    opacity: 0.18;
  }

  .hero-content {
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .hero-copy,
  .lead,
  .hero-actions,
  .trust-strip {
    max-width: 340px;
  }

  h1 {
    font-size: clamp(2.35rem, 10vw, 3rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 7.2vw, 2rem);
    line-height: 1.08;
  }

  .preview-copy .section-heading h2,
  .preview-copy .section-heading p {
    max-width: 340px;
  }

  .button {
    width: 100%;
  }

  .trust-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .pill {
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 62px 0;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .release-list div,
  .copy-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-list dd {
    text-align: left;
  }
}

@media (max-width: 1280px) {
  .site-header .nav-shell {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 0;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .site-header .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .lang-switch {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    display: flex !important;
    justify-content: flex-end;
  }

  .site-header .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .site-header .nav-links a,
  .site-header .lang-switch a {
    min-width: 0;
    min-height: 34px;
    padding: 0 4px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
