:root {
  --bg: #f8f9fc;
  --bg-soft: #f1f3f6;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(32, 33, 36, 0.16);
  --line-strong: rgba(32, 33, 36, 0.24);
  --ink: #202124;
  --ink-soft: #5f6368;
  --brand: #1a73e8;
  --brand-strong: #174ea6;
  --teal: #34a853;
  --shadow-lg: 0 14px 34px rgba(32, 33, 36, 0.09);
  --shadow-sm: 0 6px 16px rgba(32, 33, 36, 0.07);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.58;
  background: linear-gradient(180deg, #f8f9fa 0%, #f8f9fb 58%, #f6f8fb 100%);
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(26, 115, 232, 0.09), transparent 38%),
    radial-gradient(circle at 82% 10%, rgba(52, 168, 83, 0.06), transparent 36%),
    radial-gradient(circle at 50% 88%, rgba(26, 115, 232, 0.04), transparent 45%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.16;
  background-image: linear-gradient(rgba(32, 33, 36, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 36, 0.014) 1px, transparent 1px);
  background-size: 28px 28px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: rgba(18, 33, 60, 0.05);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  box-shadow: 0 0 20px rgba(5, 167, 163, 0.36);
}

.aura {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0.12;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26, 115, 232, 0.2), rgba(26, 115, 232, 0) 70%);
}

.topbar {
  position: sticky;
  top: 0.9rem;
  z-index: 40;
  width: min(1160px, calc(100% - 2rem));
  margin: 0.9rem auto 0;
  padding: 0.64rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 93%, white 7%);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(10, 29, 58, 0.09);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: 0.42rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--bg-soft) 14%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 6px 14px rgba(10, 29, 58, 0.11);
  overflow: hidden;
}

.brand-mark img {
  width: 1.66rem;
  height: 1.66rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(23, 9, 59, 0.24));
}

.brand-mark.small {
  width: 1.9rem;
  height: 1.9rem;
}

.brand-mark.small img {
  width: 1.45rem;
  height: 1.45rem;
}

.brand-wordmark {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.primary-nav {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
}

.primary-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 640;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  transition: transform 220ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-current {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-current::after {
  transform: scaleX(1);
}

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

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 0.72rem;
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--bg-soft) 12%);
  color: var(--ink);
  padding: 0.5rem 0.74rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
}

.button,
.copy-button {
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.86rem;
  padding: 0.62rem 0.96rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 240ms cubic-bezier(0.2, 0.85, 0.2, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate3d(var(--mx), calc(var(--my) - 1px), 0);
}

.button-solid {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(138deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--teal) 35%));
  box-shadow: 0 10px 22px rgba(47, 100, 255, 0.28);
}

.button-subtle {
  color: var(--brand-strong);
  border-color: color-mix(in srgb, var(--line) 72%, var(--brand) 28%);
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--bg-soft) 12%);
}

.layout {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.4rem auto 2.4rem;
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.9rem;
}

.hero-content,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 90%, white 10%);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 3.2vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 16ch;
}

.eyebrow {
  margin: 0 0 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--brand-strong);
}

.hero-lede {
  margin: 0 0 1.35rem;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
}

.hero-meta {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta span {
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--brand) 30%);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--bg-soft) 14%);
  font-size: 0.79rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink-soft);
}

.hero-panel {
  background: linear-gradient(156deg, color-mix(in srgb, var(--surface-strong) 92%, var(--bg-soft) 8%), color-mix(in srgb, var(--surface-strong) 95%, #f9fbff 5%));
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 0.82rem;
}

.signal {
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 999px;
}

.signal:nth-child(1) {
  background: #ff726f;
}

.signal:nth-child(2) {
  background: #f4bf56;
}

.signal:nth-child(3) {
  background: #58c56e;
}

.panel-head p {
  margin: 0 0 0 0.38rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
}

pre {
  margin: 0;
  padding: 0.92rem 0.96rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, #101f38, #0d1a2f);
  overflow: auto;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
}

pre code {
  color: #d8e7ff;
}

:not(pre) > code {
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--brand) 28%);
  border-radius: 0.46rem;
  padding: 0.1rem 0.35rem;
  background: color-mix(in srgb, var(--surface-strong) 84%, var(--bg-soft) 16%);
}

.mini-metrics {
  margin-top: 0.82rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.mini-metrics article {
  border: 1px solid color-mix(in srgb, var(--line) 68%, var(--teal) 32%);
  border-radius: 0.75rem;
  padding: 0.56rem;
  text-align: center;
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--bg-soft) 12%);
}

.metric-value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 780;
}

.metric-label {
  margin: 0.15rem 0 0;
  font-size: 0.73rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 90%, white 10%);
  box-shadow: var(--shadow-lg);
  padding: 1.8rem;
}

.section-head {
  margin-bottom: 1.1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.44rem, 2.18vw, 2.06rem);
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.quick-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.76rem;
}

.command-shell,
.next-box {
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--brand) 28%);
  border-radius: var(--radius-lg);
  padding: 0.86rem;
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--bg-soft) 12%);
}

.tabbar {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.76rem;
}

.tab {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--line) 76%, var(--brand) 24%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 84%, var(--bg-soft) 16%);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 700;
  padding: 0.42rem 0.8rem;
}

.tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(138deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--teal) 35%));
}

.copy-button {
  margin-top: 0.64rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--brand) 30%);
  border-radius: 0.74rem;
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--bg-soft) 14%);
  color: var(--brand-strong);
  font-size: 0.83rem;
  font-family: inherit;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
  transition:
    transform 240ms cubic-bezier(0.2, 0.85, 0.2, 1),
    background-color 180ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  transform: translate3d(var(--mx), calc(var(--my) - 1px), 0);
  background: color-mix(in srgb, var(--surface-strong) 74%, var(--bg-soft) 26%);
}

.copy-button[data-copied="true"] {
  color: color-mix(in srgb, var(--teal) 82%, var(--ink) 18%);
}

.next-box h3 {
  margin: 0 0 0.65rem;
}

.next-box p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--bg-soft) 14%);
  box-shadow: var(--shadow-sm);
  padding: 0.94rem;
  transition:
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--line) 58%, var(--brand) 42%);
  box-shadow: 0 14px 30px rgba(10, 29, 58, 0.13);
}

.card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card p {
  margin: 0.42rem 0 0;
  color: var(--ink-soft);
}

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.68rem;
}

.flow li {
  border: 1px solid color-mix(in srgb, var(--line) 68%, var(--teal) 32%);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--bg-soft) 12%);
  padding: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.flow li span {
  display: inline-block;
  margin-bottom: 0.52rem;
  border-radius: 0.62rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--brand) 30%);
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--bg-soft) 14%);
  padding: 0.24rem 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--brand-strong);
}

.flow li h3 {
  margin: 0;
}

.flow li p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
}

.doc-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--bg-soft) 14%);
  box-shadow: var(--shadow-sm);
  padding: 0.92rem;
  transition:
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.doc-link:hover,
.doc-link:focus-visible {
  border-color: color-mix(in srgb, var(--line) 58%, var(--teal) 42%);
  box-shadow: 0 14px 30px rgba(10, 29, 58, 0.13);
}

.doc-link h3 {
  margin: 0;
}

.doc-link p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.deploy-cta {
  border: 1px solid color-mix(in srgb, var(--line) 66%, var(--brand) 34%);
  border-radius: var(--radius-xl);
  background: linear-gradient(144deg, color-mix(in srgb, var(--surface-strong) 92%, var(--bg-soft) 8%), color-mix(in srgb, var(--surface-strong) 88%, var(--bg-soft) 12%));
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.65rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.deploy-cta h2 {
  margin: 0 0 0.62rem;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  letter-spacing: -0.018em;
}

.deploy-cta p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

.footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto 2.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 90%, white 10%);
  box-shadow: var(--shadow-sm);
  padding: 0.86rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 760;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 620;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 260ms cubic-bezier(0.18, 0.89, 0.28, 1.02);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

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

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .quick-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar {
    border-radius: 1rem;
    flex-wrap: wrap;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.56rem);
    left: 0;
    right: 0;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--surface-strong) 92%, var(--bg-soft) 8%);
    box-shadow: 0 16px 32px rgba(10, 29, 58, 0.13);
    padding: 0.76rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.58rem;
  }

  .topbar.is-open .primary-nav {
    display: flex;
  }

  .header-actions {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar,
  .layout,
  .footer {
    width: calc(100% - 1.2rem);
  }

  .hero-content,
  .hero-panel,
  .section,
  .deploy-cta {
    padding: 1.18rem;
  }

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

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

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

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

@media (pointer: coarse) {
  .aura {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .tilt-card,
  .button,
  .copy-button {
    transition: none;
  }

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