/* Static Dist Client — static.dist-client.com */
:root {
  color-scheme: dark;
  --accent-cyan: #22d3ee;
  --accent-teal: #14b8a6;
  --accent-blue: #3b82f6;
  --accent-blue-deep: #2563eb;
  --accent-mint: #6ee7b7;
  --bg-base: #050a12;
  --bg-elevated: #0b1220;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-solid: #111c2f;
  --border: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(20, 184, 166, 0.35);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --glow-soft: rgba(34, 211, 238, 0.12);
  --teal-soft: rgba(20, 184, 166, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --header-h: 72px;
  --maxw: 1140px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-base: #f3f6fb;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(37, 99, 235, 0.22);
  --text: #0f172a;
  --text-muted: #475569;
  --glow-soft: rgba(37, 99, 235, 0.06);
  --teal-soft: rgba(13, 148, 136, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(20, 184, 166, 0.1), transparent),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(37, 99, 235, 0.08), transparent);
  z-index: -1;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(34, 211, 238, 0.06), transparent),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(20, 184, 166, 0.05), transparent);
}

main#main-content {
  flex: 1;
}

a {
  color: var(--accent-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-teal);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--maxw), calc(100% - 2.5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue-deep));
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal), var(--accent-blue-deep));
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.35);
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-desktop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
}
.nav-desktop a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
}
.theme-toggle:hover {
  border-color: var(--border-glow);
}
.theme-toggle-icon::before {
  content: "☀";
  font-size: 1.1rem;
}
[data-theme="light"] .theme-toggle-icon::before {
  content: "☾";
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1rem 0 1.25rem;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-ghost {
    display: none;
  }
}

@media (min-width: 961px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue-deep));
  color: #fff;
  box-shadow: 0 8px 28px rgba(20, 184, 166, 0.35);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 36px rgba(34, 211, 238, 0.35);
}
.btn-secondary {
  background: var(--bg-card-solid);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin: 0 0 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 3rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-meta strong {
  color: var(--text);
}

.trust-bar {
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease-out both;
}
.stat-card:nth-child(2) {
  animation-delay: 0.06s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.12s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.18s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 0.25rem;
}
.stat-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--glow-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.code-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.65s ease-out both;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  background: color-mix(in srgb, var(--bg-base) 65%, var(--bg-elevated));
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}
.code-dot:nth-child(1) {
  background: #fb7185;
}
.code-dot:nth-child(2) {
  background: #fbbf24;
}
.code-dot:nth-child(3) {
  background: #34d399;
}
.code-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}
.code-body .kw {
  color: var(--accent-cyan);
}
.code-body .str {
  color: var(--accent-mint);
}
.code-body .cmt {
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}
.price-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.2), var(--shadow);
}
.price-tier {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
}
.price-amount small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}
.price-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price-list li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 700;
}

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}
.compare th,
.compare td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare th {
  background: var(--bg-card-solid);
  font-weight: 700;
}
.compare tr:last-child td {
  border-bottom: none;
}
.check {
  color: var(--accent-teal);
  font-weight: 700;
}

/* CDN map */
.map-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .map-panel {
    grid-template-columns: 1fr 1fr;
  }
}
.map-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Blog / docs */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-item {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.article-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.article-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Legal */
.legal {
  max-width: 48rem;
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}
.legal p,
.legal li {
  color: var(--text-muted);
}
.legal ul {
  padding-left: 1.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-brand {
  margin: 0 0 0.5rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer-bar {
  border-top: 1px solid var(--border);
}
.footer-bar-inner {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg-elevated) 95%, black);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.cookie-banner-inner {
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.cookie-title {
  margin: 0 0 0.35rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Utilities */
.muted {
  color: var(--text-muted);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
