:root {
  --bg: #0c1117;
  --surface: rgba(17, 24, 37, 0.72);
  --surface-strong: #141d2d;
  --text: #eaf1ff;
  --muted: #9fafc6;
  --line: rgba(175, 195, 220, 0.2);
  --primary: #2cd5c4;
  --primary-strong: #1eb8a9;
  --accent: #ffb36b;
  --radius: 18px;
  --max-width: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(44, 213, 196, 0.22) 0%, rgba(44, 213, 196, 0) 36%),
    radial-gradient(circle at 88% 0%, rgba(255, 179, 107, 0.2) 0%, rgba(255, 179, 107, 0) 40%),
    linear-gradient(165deg, #0a0f16 0%, #0d1421 45%, #101929 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.36;
  pointer-events: none;
  z-index: -1;
}

.bg-orb-left {
  width: 260px;
  height: 260px;
  left: -120px;
  top: 120px;
  background: rgba(44, 213, 196, 0.7);
}

.bg-orb-right {
  width: 320px;
  height: 320px;
  right: -130px;
  top: -80px;
  background: rgba(255, 179, 107, 0.62);
}

.site-header,
.page-shell,
.site-footer {
  width: min(var(--max-width), calc(100% - 28px));
  margin-inline: auto;
}

.site-header {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(11, 16, 25, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: #0a131f;
  background: linear-gradient(140deg, var(--primary), #93fff2);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0.01em;
  font-weight: 650;
}

.top-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.top-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-area {
  display: grid;
  justify-items: center;
  gap: 0;
}

.lang-area label {
  font-size: 12px;
  color: var(--muted);
}

.lang-area select {
  width: auto;
  max-width: none;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 6px 6px;
  font-size: 14px;
  box-shadow: none;
}

.lang-area select:focus,
.lang-area select:focus-visible,
.lang-area select:active {
  outline: none;
  outline-color: transparent;
  -webkit-focus-ring-color: transparent;
  border: 0;
  box-shadow: none;
}


.page-shell {
  margin-top: 30px;
  margin-bottom: 30px;
  display: grid;
  gap: 20px;
}

/* Home page should read as one continuous layout, not segmented blocks. */
body[data-page="home"] .site-header {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 6px 2px 0;
  box-shadow: none;
}

body[data-page="home"] .page-shell {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-page="home"] .hero,
body[data-page="home"] .licenses,
body[data-page="home"] .quick-start,
body[data-page="home"] .roadmap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .licenses,
body[data-page="home"] .quick-start,
body[data-page="home"] .roadmap {
  padding-top: 0;
}

body[data-page="home"] .value-grid {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 clamp(24px, 5vw, 48px) 16px;
}

body[data-page="home"] .value-grid .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-page="home"] .value-grid .card h2 {
  font-size: 22px;
}

body[data-page="home"] .license-grid {
  gap: 28px;
}

body[data-page="home"] .license-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.hero,
.card,
.licenses,
.quick-start,
.roadmap,
.legal-doc,
.site-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(24px, 5vw, 48px);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(30px, 5.7vw, 58px);
  line-height: 1.1;
  max-width: 12.5em;
}

.hero-copy {
  margin: 0;
  max-width: 50em;
  color: var(--muted);
}

.hero-points {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 650;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #04161b;
  background: linear-gradient(135deg, var(--primary), #86f4e8);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.85;
}

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  padding: 20px;
}

.card h2 {
  margin: 0;
  font-size: 20px;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.licenses,
.quick-start,
.roadmap {
  padding: clamp(20px, 4vw, 32px);
}

.license-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.license-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.license-card h3 {
  margin: 0;
  font-size: 22px;
}

.license-card p {
  margin: 10px 0;
  color: var(--muted);
}

.placeholder {
  display: inline-flex;
  align-items: center;
  border: 1px dashed rgba(255, 179, 107, 0.7);
  color: #ffd0a2;
  border-radius: 8px;
  padding: 1px 8px;
  font-size: 13px;
}

.quick-start ol,
.quick-start ul,
.roadmap ul,
.legal-doc ol,
.legal-doc ul {
  padding-left: 1.2em;
}

.quick-start li,
.roadmap li,
.legal-doc li {
  margin: 8px 0;
}

.text-link {
  margin-top: 16px;
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 650;
}

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

.legal-shell {
  max-width: 920px;
}

.legal-doc {
  padding: clamp(20px, 4vw, 36px);
}

.legal-doc h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.legal-doc h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
}

.legal-doc h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: clamp(18px, 2.6vw, 24px);
}

.legal-doc p {
  color: #d3deef;
  margin: 10px 0;
}

.legal-doc code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.site-footer {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.footer-links a {
  color: #cbd9ef;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  border-color: rgba(44, 213, 196, 0.5);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand,
  .lang-area {
    justify-self: center;
  }

  .lang-area {
    justify-items: center;
  }

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

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

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    gap: 8px;
  }
}
