:root {
  color-scheme: dark;
  --bg: #080a12;
  --bg-soft: #0d101a;
  --surface: rgba(19, 23, 36, 0.76);
  --surface-strong: #151927;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f8ff;
  --muted: #a7adc2;
  --subtle: #727b95;
  --indigo: #8f80ff;
  --cyan: #57ddf3;
  --green: #62db9c;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(105, 83, 255, 0.17), transparent 31rem),
    radial-gradient(circle at 88% 20%, rgba(52, 196, 232, 0.12), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #090b12;
  background: var(--cyan);
  font-weight: 750;
  transform: translateY(-160%);
}

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

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 18, 0.76);
  backdrop-filter: blur(24px);
}

.nav {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 780;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(87, 124, 255, 0.25);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.language-switcher {
  min-width: 38px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
}

.hero {
  display: grid;
  min-height: 720px;
  align-items: center;
  gap: 54px;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.34fr);
  padding-block: 94px 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #c8c1ff;
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(54px, 7.2vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.074em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.058em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(112deg, #c8bdff 8%, #8a98ff 42%, #5ce2f2 92%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.button.primary {
  border-color: transparent;
  color: #0a0c14;
  background: linear-gradient(118deg, #b7aaff, #61deef);
  box-shadow: 0 16px 42px rgba(75, 194, 235, 0.18);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
  margin-top: 19px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
}

.hero-meta span:not(:last-child)::after {
  margin-left: 17px;
  color: #42495e;
  content: "·";
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #10131e;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
}

.media-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
  content: "";
  pointer-events: none;
}

.media-frame video,
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.motion-fallback {
  display: none !important;
}

.demo-media {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.demo-media::before {
  position: absolute;
  z-index: -1;
  inset: 10% -5% -8% 8%;
  border-radius: 50%;
  background: linear-gradient(115deg, rgba(137, 111, 255, 0.24), rgba(62, 211, 240, 0.17));
  filter: blur(60px);
  content: "";
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
  display: flex;
  min-height: 112px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 20px 28px;
  border-left: 1px solid var(--line);
}

.proof-grid div:last-child {
  border-right: 1px solid var(--line);
}

.proof-grid strong {
  font-size: 18px;
  letter-spacing: -0.025em;
}

.proof-grid span {
  color: var(--subtle);
  font-size: 12px;
}

.section {
  padding-block: 110px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p,
.open-source-section > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.split-heading {
  display: grid;
  max-width: none;
  align-items: end;
  gap: 70px;
  grid-template-columns: 1.2fr 0.8fr;
}

.split-heading h2 {
  margin-bottom: 0;
}

.feature-bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(110, 91, 255, 0.11), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.feature-card-wide {
  min-height: 510px;
  grid-column: span 3;
}

.feature-card p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}

.feature-card-wide img {
  position: absolute;
  right: -2%;
  bottom: -5%;
  width: 68%;
  border: 1px solid var(--line);
  border-radius: 16px 0 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.feature-number {
  display: block;
  margin-bottom: 70px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 75px;
  place-items: center;
  border: 1px solid rgba(143, 128, 255, 0.3);
  border-radius: 12px;
  color: #c8c1ff;
  background: rgba(143, 128, 255, 0.1);
  font-size: 18px;
}

.finder-section code {
  color: #d1cbff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.local-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 50%, rgba(78, 200, 234, 0.1), transparent 30rem),
    rgba(255, 255, 255, 0.017);
}

.local-grid {
  display: grid;
  align-items: center;
  gap: 85px;
  grid-template-columns: 0.85fr 1.15fr;
}

.local-grid .section-heading {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 24px;
  color: #9deaf4;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.architecture-map {
  position: relative;
  display: grid;
  min-height: 460px;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.architecture-node {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 25px;
  border: 1px solid rgba(143, 128, 255, 0.28);
  border-radius: 20px;
  background: rgba(17, 21, 34, 0.88);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.architecture-node span {
  margin-bottom: 34px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.architecture-node strong {
  font-size: 17px;
}

.architecture-node small {
  color: var(--subtle);
}

.cloud-node {
  border-style: dashed;
  opacity: 0.78;
}

.connector {
  position: absolute;
  z-index: 1;
  display: block;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  opacity: 0.7;
}

.connector-a,
.connector-c {
  top: 25%;
  left: calc(50% - 12px);
  width: 24px;
  height: 1px;
}

.connector-b {
  top: calc(50% - 12px);
  left: 25%;
  width: 1px;
  height: 24px;
}

.connector-c {
  top: 75%;
}

.open-source-section {
  display: grid;
  align-items: end;
  gap: 28px 60px;
  grid-template-columns: 1.1fr 0.9fr;
}

.open-source-section h2 {
  margin-bottom: 0;
}

.open-source-section .actions {
  margin-top: 0;
  grid-column: 2;
}

.final-cta {
  overflow: hidden;
  padding-block: 120px;
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(75, 206, 235, 0.18), transparent 30rem),
    radial-gradient(circle at 50% 0, rgba(118, 91, 255, 0.17), transparent 35rem);
}

.final-cta img {
  width: 72px;
  margin-bottom: 25px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(60, 130, 255, 0.25);
}

.final-cta h2 {
  max-width: 760px;
  margin-inline: auto;
}

.final-cta p {
  color: var(--muted);
}

.final-cta .button {
  margin-top: 18px;
}

.page {
  max-width: 850px;
  min-height: calc(100vh - 180px);
  padding-block: 95px 120px;
}

.page h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 78px);
}

.page h2 {
  margin-top: 64px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.page p,
.page li {
  color: var(--muted);
}

.page a {
  color: #9eeaf4;
}

.page-lead {
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 0.84em;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--subtle);
}

.footer-inner {
  display: grid;
  min-height: 190px;
  align-items: center;
  gap: 16px 35px;
  grid-template-columns: auto 1fr auto;
  font-size: 12px;
}

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

.footer-inner p {
  max-width: 410px;
  margin-bottom: 0;
}

.copyright {
  grid-column: 3;
}

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

  .hero-copy {
    max-width: 720px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-copy > p,
  .hero h1 {
    margin-inline: auto;
  }

  .hero .actions,
  .hero-meta {
    justify-content: center;
  }

  .demo-media {
    transform: none;
  }

  .split-heading,
  .local-grid,
  .open-source-section {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 18px;
  }

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

  .feature-card-wide {
    grid-column: span 2;
  }

  .feature-bento .feature-card:last-child {
    grid-column: span 2;
  }

  .open-source-section .actions {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 9px;
  }

  .nav-links a:not(.language-switcher):not(:last-of-type) {
    display: none;
  }

  .hero {
    gap: 42px;
    padding-block: 60px 55px;
  }

  h1 {
    font-size: 49px;
  }

  h2 {
    font-size: 39px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-meta span::after {
    display: none;
  }

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

  .proof-grid div {
    min-height: 94px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-block: 78px;
  }

  .feature-bento {
    grid-template-columns: 1fr;
  }

  .feature-card-wide,
  .feature-bento .feature-card:last-child {
    min-height: 370px;
    grid-column: span 1;
  }

  .feature-card-wide img {
    right: -12%;
    width: 108%;
  }

  .architecture-map {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .connector {
    display: none;
  }

  .architecture-node {
    min-height: 160px;
  }

  .architecture-node span {
    margin-bottom: 20px;
  }

  .footer-inner {
    padding-block: 42px;
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .copyright {
    grid-column: 1;
  }
}

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

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

  video {
    display: none;
  }

  .motion-fallback {
    display: block !important;
  }
}
