:root {
  color-scheme: dark;
  --bg: #07111c;
  --bg-soft: #0c1724;
  --panel: rgba(13, 25, 39, 0.78);
  --panel-strong: rgba(16, 30, 46, 0.94);
  --text: #eef5ff;
  --muted: #a8bbd1;
  --faint: #7188a0;
  --line: rgba(180, 210, 255, 0.12);
  --accent: #86f6d5;
  --accent-strong: #7db3ff;
  --accent-warm: #ffc772;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(133, 246, 213, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(125, 179, 255, 0.14), transparent 24%),
    radial-gradient(circle at 75% 72%, rgba(255, 199, 114, 0.08), transparent 28%),
    linear-gradient(180deg, #051019 0%, #081321 42%, #06101a 100%);
  color: var(--text);
  font-family: "Noto Sans SC", "Space Grotesk", sans-serif;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
  opacity: 0.28;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10vw 0 auto;
  width: 42vw;
  height: 42vw;
  pointer-events: none;
  background: radial-gradient(circle, rgba(134, 246, 213, 0.12), transparent 64%);
  filter: blur(36px);
  animation: drift 14s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100%, calc(var(--max-width) + 48px));
  margin: 0 auto;
  padding: 18px 24px 32px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.64);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: 0.04em;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #041117;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 700;
}

.brand__name {
  font-size: 0.98rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.nav a {
  transition: color 160ms ease, transform 160ms ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(17, 32, 50, 0.96), rgba(10, 20, 33, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(134, 246, 213, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: 26px 4px 42px;
}

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

.hero h1,
.section h2,
.mockup h2 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.92;
  text-wrap: balance;
}

.hero__lead {
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.button--primary {
  color: #051018;
  background: linear-gradient(135deg, var(--accent), #b4ffe9);
  box-shadow: 0 18px 40px rgba(134, 246, 213, 0.22);
}

.button--secondary {
  border-color: rgba(180, 210, 255, 0.18);
  background: rgba(16, 29, 45, 0.68);
}

.hero__note {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--faint);
  line-height: 1.7;
}

.hero__visual {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.8;
  animation: drift 12s ease-in-out infinite alternate;
}

.visual-orb--one {
  top: 10%;
  right: 8%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(125, 179, 255, 0.6), transparent 70%);
}

.visual-orb--two {
  bottom: 8%;
  left: 6%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(134, 246, 213, 0.38), transparent 70%);
  animation-delay: -4s;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18, 32, 49, 0.92), rgba(10, 18, 28, 0.96));
  box-shadow: var(--shadow);
}

.mockup {
  width: min(100%, 470px);
  padding: 24px;
  backdrop-filter: blur(18px);
  animation: lift 8s ease-in-out infinite alternate;
}

.mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(134, 246, 213, 0.11), transparent 32%, transparent 65%, rgba(125, 179, 255, 0.08));
  pointer-events: none;
}

.mockup__header,
.usage-block__row,
.account-card,
.mockup__actions,
.publish-panel {
  position: relative;
  z-index: 1;
}

.mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mockup__eyebrow,
.publish-panel__label {
  margin: 0 0 6px;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mockup h2 {
  font-size: 2rem;
}

.badge,
.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(134, 246, 213, 0.25);
  border-radius: 999px;
  background: rgba(134, 246, 213, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.account-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(134, 246, 213, 0.95), rgba(125, 179, 255, 0.95));
  color: #07111c;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.account-card__copy {
  display: grid;
  gap: 2px;
}

.account-card__label,
.account-card__sub,
.usage-block__row > span,
.footer {
  color: var(--muted);
}

.account-card__copy strong,
.usage-block__row strong,
.publish-panel strong {
  color: var(--text);
  font-weight: 700;
}

.usage-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.usage-block__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.usage-block__row div {
  display: grid;
  gap: 4px;
}

.meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #b8f6ff);
}

.meter--secondary span {
  background: linear-gradient(90deg, var(--accent-warm), #ffdca8);
}

.mockup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.section {
  padding: 54px 0 0;
}

.section__header {
  max-width: 42rem;
  margin-bottom: 26px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.section__header p:last-child {
  margin-bottom: 0;
}

.section__header p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

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

.principle,
.feature,
.step {
  padding: 22px;
  min-height: 100%;
}

.principle__index,
.step__index {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.principle h3,
.feature h3,
.step h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.22rem;
}

.principle p,
.feature p,
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.step code,
.section code {
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.publish-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
}

.publish-panel strong {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 2px 8px;
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.footer__year {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
}

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

@keyframes lift {
  from {
    transform: translate3d(0, 8px, 0);
  }
  to {
    transform: translate3d(0, -8px, 0);
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }

  .hero__visual {
    min-height: 540px;
  }

  .principles,
  .feature-grid,
  .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-inline: 16px;
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    gap: 22px;
    padding-top: 8px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero__visual {
    min-height: 500px;
  }

  .panel,
  .publish-panel {
    border-radius: 22px;
  }

  .principles,
  .feature-grid,
  .install-grid,
  .publish-panel {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
