:root {
  --bg: #030711;
  --bg-soft: #050c1c;
  --surface: rgba(8, 17, 35, 0.72);
  --border: rgba(115, 146, 188, 0.22);
  --text: #f4f8ff;
  --muted: #95a8c7;
  --primary: #18e2ff;
  --primary-strong: #00b8e0;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #000;
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 75% 20%, rgba(24, 226, 255, 0.16), transparent 42%),
    radial-gradient(circle at 20% 75%, rgba(98, 96, 255, 0.14), transparent 38%),
    linear-gradient(to right, rgba(25, 91, 142, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 91, 142, 0.12) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  position: sticky;
  top: 0.5rem;
  z-index: 30;
}

.glass-wrap {
  backdrop-filter: blur(12px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(8, 20, 49, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  display: inline-grid;
  place-items: center;
  color: #001a26;
  background: linear-gradient(135deg, #9defff, #00c7eb);
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-nav a,
.sign-link,
.footer-cols a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sign-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(7, 14, 30, 0.8);
}

.lang-pill {
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.lang-pill.is-active {
  background: rgba(24, 226, 255, 0.2);
  color: #fff;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 4rem 0 2rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 2rem;
  align-items: center;
}

.status-pill {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--primary);
}

.hero h1,
.section h2,
.cta h2 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
}

.hero h1 span,
.section h2 span,
.cta h2 span {
  color: var(--primary);
}

.hero-copy > p {
  color: var(--muted);
  max-width: 45ch;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.74rem 1.1rem;
  border-radius: 0.55rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  color: #00131f;
  background: linear-gradient(120deg, var(--primary), #49d9ff);
  box-shadow: 0 0 18px rgba(24, 226, 255, 0.35);
}

.button-outline {
  border-color: rgba(24, 226, 255, 0.44);
  background: rgba(7, 16, 34, 0.8);
}

.hero-metrics {
  margin-top: 2.1rem;
  display: flex;
  gap: 1.4rem;
}

.hero-metrics article strong,
.strip-metrics article strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
}

.hero-metrics article span,
.strip-metrics article span,
.partners p {
  color: #7c8faa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.hero-panel {
  min-height: 390px;
  display: grid;
  place-items: center;
  position: relative;
}

.terminal-card {
  width: min(390px, 100%);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(12, 28, 54, 0.9), rgba(6, 14, 30, 0.95));
  box-shadow: 0 0 50px rgba(6, 20, 52, 0.65);
}

.terminal-head {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(115, 146, 188, 0.25);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terminal-head span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #66f0ff;
}

.terminal-head em {
  margin-left: auto;
  color: #8194af;
  font-style: normal;
  font-size: 0.72rem;
}

.terminal-body {
  padding: 0.9rem;
}

.row {
  padding: 0.75rem 0.7rem;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(115, 146, 188, 0.2);
  border-radius: 0.45rem;
  display: flex;
  justify-content: space-between;
  background: rgba(5, 17, 37, 0.75);
}

.row b,
.row i,
pre,
.code-card pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.row b {
  font-weight: 500;
  color: #b3c6df;
}

.row i {
  font-style: normal;
  color: var(--primary);
}

.row i.ok {
  color: #53f58c;
}

.terminal-body pre {
  margin: 0;
  font-size: 0.72rem;
  color: #8d9eb8;
  padding: 0.75rem;
  border-radius: 0.45rem;
  background: rgba(2, 9, 20, 0.9);
}

.float-card {
  position: absolute;
  border: 1px solid var(--border);
  background: rgba(8, 20, 40, 0.92);
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.75rem;
  color: #8ea2be;
}

.float-card strong {
  display: block;
  color: #fff;
  margin-top: 2px;
}

.float-card.top {
  top: 24%;
  right: 0;
}

.float-card.bottom {
  bottom: 10%;
  left: 0;
}

.strip-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: rgba(7, 16, 34, 0.85);
}

.strip-metrics article {
  padding: 1.3rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(115, 146, 188, 0.22);
}

.strip-metrics article:last-child {
  border-right: 0;
}

.section {
  padding: 5rem 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.section-header p {
  color: var(--muted);
}

.cards-3 {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card,
.code-card {
  border: 1px solid var(--border);
  background: rgba(6, 14, 30, 0.8);
  border-radius: 0.9rem;
}

.feature-card {
  padding: 1.3rem;
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p,
.steps p,
.cta p,
.footer-brand p,
.footer-cols a {
  color: var(--muted);
}

.feature-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.steps {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 226, 255, 0.6);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.steps h3 {
  margin: 0;
  font-size: 1rem;
}

.steps p {
  margin: 0.35rem 0 0;
}

.code-card {
  overflow: hidden;
}

.code-card header {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(115, 146, 188, 0.25);
  color: #a4b5cb;
  font-size: 0.76rem;
  text-align: center;
}

.code-card pre {
  margin: 0;
  padding: 1rem;
  color: #afc2db;
  line-height: 1.5;
  font-size: 0.83rem;
}

.partners {
  border-top: 1px solid rgba(115, 146, 188, 0.15);
  border-bottom: 1px solid rgba(115, 146, 188, 0.15);
  margin: 3rem 0;
  padding: 2rem 0;
  text-align: center;
}

.partners div {
  margin-top: 1.1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  color: #8596b0;
}

.cta {
  margin: 0 0 3rem;
  text-align: center;
  padding: 3.2rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 0%, rgba(24, 226, 255, 0.2), rgba(2, 7, 14, 0.82));
}

.cta .hero-actions {
  justify-content: center;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(115, 146, 188, 0.18);
}

.footer-brand p {
  max-width: 34ch;
}

.footer-cols {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 1rem;
}

.footer-cols h3 {
  font-size: 0.95rem;
}

.footer-cols a {
  display: block;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(115, 146, 188, 0.18);
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: #72849f;
}

.status {
  color: #53f58c;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .strip-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics,
  .footer-bottom {
    flex-direction: column;
  }

  .strip-metrics {
    grid-template-columns: 1fr;
  }

  .strip-metrics article {
    border-right: 0;
    border-bottom: 1px solid rgba(115, 146, 188, 0.22);
  }

  .strip-metrics article:last-child {
    border-bottom: 0;
  }
}
