:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #e8eef6;
  --muted: #9db1c7;
  --cyan: #74e0ff;
  --emerald: #7df6ba;
  --amber: #ffd88a;
  --violet: #bba3ff;
  --ink: #0f1720;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(116, 224, 255, 0.17), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(125, 246, 186, 0.15), transparent 20%),
    radial-gradient(circle at 52% 45%, rgba(255, 216, 138, 0.08), transparent 24%),
    linear-gradient(180deg, #08131b 0%, #071018 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-shell {
  position: relative;
  padding: 24px;
}

.docs-shell .topbar,
.docs-shell .section {
  width: min(1100px, 100%);
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(157, 177, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 177, 199, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 74%);
}

.topbar,
.hero,
.section {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.docs-main {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0 40px rgba(116, 224, 255, 0.1);
}

.brand-mark img {
  width: 180px;
  color: #131820;
}

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
}

.subtle {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #74e0ff, #9cf7d3);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(116, 224, 255, 0.18);
}

.button-secondary,
.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero {
  display: grid;
  gap: 26px;
  margin-top: 26px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.hero-copy,
.hero-panel,
.topology-card,
.pricing-section,
.messaging-section,
.enterprise-section {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at top left, rgba(116, 224, 255, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(125, 246, 186, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(8, 19, 27, 0.96), rgba(10, 22, 31, 0.86));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.34);
}

.hero-kicker {
  margin: 0;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 0;
  max-width: 820px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-body {
  margin: 26px 0 0;
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #c5d3e0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.metric-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-hero,
.docs-section {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(116, 224, 255, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(8, 19, 27, 0.96), rgba(10, 22, 31, 0.86));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.docs-card-grid,
.docs-content-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-card-link {
  display: block;
}

.docs-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.docs-panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.docs-code {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(116, 224, 255, 0.16);
  background: rgba(4, 10, 16, 0.85);
  color: #d9f4ff;
  font-size: 0.94rem;
  line-height: 1.6;
}

.docs-list {
  margin: 0;
  padding-left: 18px;
  color: #c5d3e0;
  line-height: 1.8;
}

.docs-list-numbered {
  padding-left: 20px;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
}

.metric-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.hero-panel {
  padding: 30px;
  border: 1px solid rgba(116, 224, 255, 0.18);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.97), rgba(237, 248, 255, 0.92), rgba(236, 255, 247, 0.9));
  color: #102131;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.28);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #74e0ff, #9cf7d3, #ffd88a);
}

.panel-header h2 {
  margin: 14px 0 0;
  font-size: 2rem;
  line-height: 1.08;
}

.panel-callout {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(16, 33, 49, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

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

.panel-callout p {
  margin: 10px 0 0;
  line-height: 1.7;
  color: #455768;
}

.section {
  margin-top: 26px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.24);
}

input,
select,
textarea,
button {
  font: inherit;
}

.topology-section {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.section-copy h2 {
  margin: 16px 0 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.06;
}

.section-copy p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 720px;
  line-height: 1.85;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.feature-list article,
.message-cards article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(5, 11, 16, 0.36);
}

.feature-list h3,
.message-cards h3 {
  margin: 0;
  font-size: 1.06rem;
}

.feature-list p,
.message-cards p {
  margin: 10px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.topology-card {
  min-height: 540px;
  padding: 30px;
  border: 1px solid rgba(116, 224, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 48% 18%, rgba(116, 224, 255, 0.12), transparent 22%),
    radial-gradient(circle at 38% 84%, rgba(125, 246, 186, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(6, 12, 20, 0.96), rgba(8, 17, 30, 0.9));
}

.topology-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(157, 177, 199, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 177, 199, 0.4) 1px, transparent 1px);
  background-size: 56px 56px;
}

.topology-link {
  position: absolute;
  border-top: 1px solid rgba(157, 177, 199, 0.56);
}

.topology-link::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(116, 224, 255, 0.65);
}

.link-a { left: 28%; top: 30%; width: 18%; transform: rotate(31deg); }
.link-b { left: 58%; top: 30%; width: 18%; transform: rotate(26deg); }
.link-c { left: 39%; top: 58%; width: 22%; transform: rotate(10deg); }
.link-d { left: 34%; top: 70%; width: 36%; transform: rotate(-8deg); }

.topology-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 172px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid transparent;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 38px rgba(0, 0, 0, 0.2);
  animation: drift 7s ease-in-out infinite;
}

.topology-node strong {
  font-size: 1rem;
}

.topology-node span {
  font-size: 0.84rem;
  opacity: 0.84;
}

.cyan { background: rgba(116, 224, 255, 0.1); border-color: rgba(116, 224, 255, 0.24); }
.emerald { background: rgba(125, 246, 186, 0.1); border-color: rgba(125, 246, 186, 0.24); }
.amber { background: rgba(255, 216, 138, 0.1); border-color: rgba(255, 216, 138, 0.24); }
.violet { background: rgba(187, 163, 255, 0.12); border-color: rgba(187, 163, 255, 0.24); }

.node-a { left: 8%; top: 12%; }
.node-b { right: 9%; top: 17%; animation-delay: 0.5s; }
.node-c { left: 29%; top: 42%; animation-delay: 1.1s; }
.node-d { right: 18%; top: 45%; animation-delay: 0.9s; }
.node-e { left: 18%; bottom: 11%; animation-delay: 1.4s; }
.node-f { right: 8%; bottom: 12%; animation-delay: 0.3s; }

.messaging-section {
  background:
    radial-gradient(circle at top right, rgba(116, 224, 255, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.04);
}

.compact h2 {
  max-width: 860px;
}

.message-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-section {
  color: #101823;
  background:
    radial-gradient(circle at top left, rgba(116, 224, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(237, 242, 249, 0.95));
}

.pricing-section .section-copy p:not(.eyebrow) {
  color: #516273;
}

.pricing-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(16, 24, 35, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(15, 23, 35, 0.08);
}

.price-card.featured {
  color: white;
  background: linear-gradient(180deg, #0c1721, #111f2d);
  border-color: #0c1721;
  transform: translateY(-6px);
}

.price-card h3 {
  margin: 14px 0 0;
  font-size: 2rem;
}

.price-card p {
  margin: 16px 0 0;
  line-height: 1.7;
  color: inherit;
}

.price-line {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
}

.price-line strong {
  font-size: 3.5rem;
  line-height: 1;
}

.price-line span {
  padding-bottom: 8px;
  color: #64758a;
}

.price-card.featured .price-line span,
.price-card.featured .eyebrow {
  color: var(--cyan);
}

.price-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  line-height: 1.9;
}

.memory-ladder {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.memory-ladder div {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(16, 24, 35, 0.1);
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.memory-ladder span {
  display: block;
  color: #64758a;
  font-size: 0.92rem;
}

.memory-ladder strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
}

.interest-section {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.interest-embed {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  min-height: 720px;
}

.interest-embed [data-tf-live] {
  min-height: 670px;
}

.enterprise-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.enterprise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@keyframes drift {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 1080px) {
  .hero,
  .topology-section,
  .interest-section,
  .enterprise-section {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metric-grid,
  .message-cards,
  .pricing-grid,
  .memory-ladder,
  .docs-card-grid,
  .docs-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .hero-panel,
  .section {
    padding: 32px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 14px;
  }

  .topbar,
  .brand-lockup,
  .nav-actions,
  .hero-actions,
  .enterprise-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid,
  .message-cards,
  .pricing-grid,
  .memory-ladder,
  .docs-card-grid,
  .docs-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .section,
  .docs-hero,
  .docs-section {
    padding: 24px;
    border-radius: 28px;
  }

  .topology-card {
    min-height: 680px;
  }

  .topology-node {
    width: 148px;
  }

  .node-a { left: 5%; top: 9%; }
  .node-b { right: 4%; top: 18%; }
  .node-c { left: 20%; top: 37%; }
  .node-d { right: 8%; top: 48%; }
  .node-e { left: 8%; bottom: 14%; }
  .node-f { right: 4%; bottom: 10%; }
}
