:root {
  color-scheme: light;
  --dark: #070a12;
  --dark-2: #0d1320;
  --ink: #111827;
  --text: #4b5b70;
  --muted: #7c899b;
  --paper: #f7faff;
  --surface: #ffffff;
  --line: rgba(17, 24, 39, 0.12);
  --line-dark: rgba(255, 255, 255, 0.13);
  --blue: #3b82f6;
  --blue-soft: #dbeafe;
  --teal: #16c4a3;
  --cream: #f8fbff;
  --shadow: 0 28px 80px rgba(24, 40, 72, 0.13);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: "Geist", "Noto Sans SC", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p,
pre {
  margin: 0;
}

code {
  font-family: var(--mono);
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--dark);
  transition: transform 260ms var(--ease);
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 32px));
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(13, 18, 29, 0.74);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand {
  color: var(--cream);
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 26px rgba(59, 130, 246, 0.3));
}

.brand-logo rect,
.hero-logo rect {
  fill: #070a12;
}

.brand-logo .logo-lines,
.hero-logo .logo-lines {
  fill: none;
  stroke: #f8fbff;
  stroke-width: 7;
  stroke-linecap: round;
}

.brand-logo .logo-tunnel,
.hero-logo .logo-tunnel {
  fill: none;
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linecap: round;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.ghost-link {
  color: rgba(248, 251, 255, 0.78);
  font-size: 14px;
  font-weight: 650;
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.nav-links a:hover,
.ghost-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.lang-option {
  min-width: 34px;
  min-height: 30px;
  cursor: pointer;
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

.lang-option:hover {
  transform: translateY(-1px);
  color: #fff;
}

.lang-option.active {
  background: rgba(248, 251, 255, 0.92);
  color: #0f172a;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(180deg, #fff, #dfe8f5);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 800px;
  padding: 148px 0 84px;
  background:
    radial-gradient(circle at 70% 14%, rgba(59, 130, 246, 0.26), transparent 28rem),
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.12), transparent 20rem),
    linear-gradient(180deg, #0c111d 0%, #070a12 72%, #0b101a 100%);
  color: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, transparent 82%);
  opacity: 0.24;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 4rem;
  width: min(920px, 80vw);
  height: 460px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 68%);
  filter: blur(16px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.section-copy,
.capability-grid,
.skill-panel,
.skill-list,
.install-card,
.final-cta > * {
  min-width: 0;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker span,
.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.78);
  font-size: 14px;
  font-weight: 650;
}

h1 {
  max-width: 780px;
  margin-top: 34px;
  color: #fff;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

.hero-lead {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

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

.hero-command {
  width: min(100%, 680px);
  max-width: 100%;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 251, 255, 0.84);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-command,
.skill-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.hero-command code {
  display: block;
  min-width: 0;
  padding: 4px 6px;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 5px 6px 5px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.button span:last-child {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.button.primary {
  color: #0f172a;
  background: linear-gradient(180deg, #fff, #dfe8f5);
  box-shadow: 0 18px 44px rgba(255, 255, 255, 0.18);
}

.button.primary span:last-child {
  background: rgba(15, 23, 42, 0.1);
}

.button.secondary {
  color: rgba(248, 251, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button.secondary span:last-child {
  background: rgba(255, 255, 255, 0.1);
}

.button.dark {
  color: var(--cream);
  background: var(--dark);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.2);
}

.button.dark span:last-child {
  background: rgba(255, 255, 255, 0.1);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.button:active,
.header-cta:active,
.lang-option:active,
.tab:active,
.copy-button:active {
  transform: scale(0.98);
}

.inline-copy {
  justify-self: end;
  min-height: 34px;
  padding: 0 13px;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.1);
  color: rgba(248, 251, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.hero-command .inline-copy {
  background: rgba(248, 251, 255, 0.12);
}

.inline-copy:hover {
  transform: translateY(-1px);
  background: rgba(248, 251, 255, 0.17);
}

.logo-stage {
  position: relative;
  min-height: 420px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 40%, rgba(59, 130, 246, 0.2), transparent 15rem),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 152px;
  height: 152px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 70px rgba(59, 130, 246, 0.34));
}

.route-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.9), transparent);
}

.route-one {
  left: 8%;
  right: 52%;
  top: 46%;
}

.route-two {
  left: 52%;
  right: 8%;
  top: 58%;
}

.route-label {
  position: absolute;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.09);
  border: 1px solid rgba(248, 251, 255, 0.12);
  color: rgba(248, 251, 255, 0.72);
  font: 700 12px/1 var(--mono);
}

.route-label.local {
  left: 28px;
  top: 78px;
}

.route-label.cloud {
  right: 28px;
  bottom: 78px;
}

.trust-row {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 58px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 116px 0;
  scroll-margin-top: 110px;
}

.section-copy {
  max-width: 760px;
}

.section-copy.center {
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  max-width: 760px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.section-copy p:not(.eyebrow),
.skill-panel p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
  text-wrap: pretty;
}

.section-copy code,
.capability-card code,
.skill-panel code {
  padding: 0.06em 0.34em;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 0.9em;
  font-weight: 700;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
  padding-top: 84px;
}

.capability-grid {
  display: grid;
  gap: 14px;
}

.capability-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 42px rgba(24, 40, 72, 0.06);
}

.capability-card span,
.skill-list span {
  color: var(--blue);
  font: 800 12px/1 var(--mono);
}

.capability-card h3 {
  margin-top: 44px;
}

.capability-card p {
  margin-top: 12px;
  color: var(--text);
  line-height: 1.64;
}

.latest-section {
  padding-top: 64px;
}

.latest-section .section-copy p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

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

.latest-card {
  min-width: 0;
  min-height: 240px;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12), transparent 16rem),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(24, 40, 72, 0.07);
}

.latest-card.wide {
  grid-column: span 2;
  min-height: 270px;
}

.latest-card span {
  color: var(--blue);
  font: 800 12px/1 var(--mono);
}

.latest-card h3 {
  margin-top: 36px;
  max-width: 420px;
}

.latest-card p {
  margin-top: 14px;
  color: var(--text);
  line-height: 1.66;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.feature-chips code {
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0b1018;
  color: rgba(248, 251, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.skill-section {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
}

.skill-panel {
  padding: 44px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.14), transparent 18rem),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.skill-command {
  margin-top: 26px;
  max-width: 100%;
  padding: 10px;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1018;
  color: rgba(248, 251, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-command code {
  display: block;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: inherit;
  background: transparent;
  padding: 4px 8px;
}

.skill-list {
  display: grid;
  gap: 12px;
}

.skill-list div {
  padding: 24px;
  border-radius: 22px;
  background: #eef4ff;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.skill-list strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.42;
}

.install {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.install-card {
  padding: 10px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: #eef4ff;
}

.tab {
  flex: 1;
  min-width: max-content;
  min-height: 42px;
  cursor: pointer;
  border-radius: 999px;
  color: #5b6678;
  font-size: 13px;
  font-weight: 800;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

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

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.code-wrap {
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 20px;
  background: #0b1018;
}

.copy-button {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  min-height: 35px;
  padding: 0 13px;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.1);
  color: var(--cream);
  font-size: 13px;
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.copy-button:hover {
  transform: translateY(-1px);
  background: rgba(248, 251, 255, 0.16);
}

.code-pane {
  display: none;
  min-height: 278px;
  padding: 58px 27px 27px;
  color: rgba(248, 251, 255, 0.88);
  white-space: pre-wrap;
  font: 500 13px/1.72 var(--mono);
}

.code-pane.active {
  display: block;
}

.final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-brand {
  color: var(--ink);
}

.footer .brand-logo {
  width: 30px;
  height: 30px;
}

.footer a {
  color: #1d4ed8;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 3px;
}

.reveal {
  transition:
    opacity 740ms var(--ease),
    transform 740ms var(--ease),
    filter 740ms var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(7px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 170ms;
}

.delay-3 {
  transition-delay: 250ms;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .ghost-link {
    display: none;
  }

  .site-header {
    width: calc(100% - 24px);
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
  }

  .hero-inner,
  .intro,
  .latest-grid,
  .skill-section,
  .install {
    grid-template-columns: 1fr;
  }

  .latest-card.wide {
    grid-column: auto;
  }

  .logo-stage {
    min-height: 360px;
  }

  h1 {
    max-width: 720px;
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .site-header {
    top: 12px;
    min-height: 58px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .site-header {
    gap: 10px;
    padding: 8px 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-option {
    min-width: 30px;
    min-height: 28px;
    font-size: 11px;
  }

  .hero {
    padding: 92px 0 42px;
  }

  .hero-inner,
  .section,
  .trust-row,
  .footer {
    width: calc(100% - 32px);
  }

  .hero-inner {
    gap: 36px;
  }

  .hero-kicker {
    align-items: flex-start;
  }

  .hero-kicker span,
  .trust-row span {
    min-height: 34px;
    font-size: 13px;
  }

  h1 {
    margin-top: 28px;
    font-size: 38px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .button {
    min-height: 48px;
    padding-left: 16px;
    font-size: 13px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    padding-right: 6px;
  }

  .button span:last-child {
    width: 30px;
    height: 30px;
  }

  .logo-stage {
    min-height: 238px;
    border-radius: 28px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }

  .route-label {
    font-size: 11px;
  }

  .route-label.local {
    left: 18px;
    top: 34px;
  }

  .route-label.cloud {
    right: 18px;
    bottom: 34px;
  }

  .trust-row {
    display: none;
  }

  .section {
    padding: 82px 0;
  }

  .skill-panel {
    padding: 28px;
    border-radius: 24px;
  }

  .tabs {
    overflow-x: auto;
    border-radius: 18px;
  }

  .latest-grid {
    margin-top: 34px;
  }

  .latest-card {
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .latest-card h3 {
    margin-top: 28px;
  }

  .code-pane {
    min-height: 310px;
    font-size: 12px;
  }

  .hero-command code,
  .skill-command code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-command,
  .skill-command {
    align-items: center;
  }

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