:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: #151515;
  --panel-2: #202020;
  --line: #343434;
  --text: #f4f4f4;
  --muted: #a9a9a9;
  --green: #32d583;
  --blue: #4aa3ff;
  --pink: #ff3d7f;
  --red: #ff3b3b;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI Variable", "Inter", "Aptos", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(50,213,131,.10), transparent 28%),
    linear-gradient(225deg, rgba(74,163,255,.10), transparent 26%),
    linear-gradient(180deg, #0b0b0b, var(--bg) 420px);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7,7,7,.88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-header nav a,
.header-cta {
  min-height: 36px;
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover,
.header-cta:hover {
  border-color: var(--line);
  color: var(--text);
  background: #151515;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px 28px 48px;
  display: grid;
  gap: 22px;
}

.hero,
.panel,
.plan,
.page-intro,
.directory-grid article {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24,24,24,.98), rgba(12,12,12,.98));
}

.hero {
  min-height: 520px;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: .9;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  font-size: 18px;
}

.hero p,
.panel p,
.plan p,
.page-intro p,
.directory-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-action,
.header-cta {
  border-color: rgba(50,213,131,.55);
  background: linear-gradient(180deg, #227a50, #165f3d);
  color: #fff;
}

.hero-console {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: linear-gradient(180deg, #1d1d1d, #0d0d0d);
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  display: grid;
  gap: 12px;
}

.console-bar {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 20px rgba(50,213,131,.75);
}

.console-bar strong {
  color: var(--text);
}

.console-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
}

.signal-card {
  min-height: 148px;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(50,213,131,.16), rgba(74,163,255,.08)), #111;
  display: grid;
  align-content: end;
  gap: 8px;
}

.signal-card span,
.signal-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signal-card strong {
  font-size: 38px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-grid div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  display: grid;
  align-content: space-between;
}

.signal-grid strong {
  font-size: 20px;
}

.platform-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-stack span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #151515;
}

.platform-stack .yt { color: #ff3158; }
.platform-stack .tw { color: #a970ff; }
.platform-stack .ki { color: #53fc18; }

.trust-row {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
}

a,
button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #191919;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
a:hover {
  border-color: #666;
  background: #242424;
}

.panel {
  padding: 22px;
}

.page-intro {
  min-height: 280px;
  padding: 34px;
  display: grid;
  align-content: end;
  gap: 14px;
}

.page-intro h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: .96;
}

.page-intro p {
  max-width: 760px;
  margin: 0;
}

.route-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.directory-grid article {
  padding: 18px;
  min-height: 260px;
}

.directory-grid h2 {
  font-size: 21px;
  line-height: 1.14;
}

.link-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  border-color: transparent;
  background: rgba(255,255,255,.025);
  color: #d9d9d9;
  font-size: 14px;
}

.download-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.download-card p {
  margin: 0;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 16px;
}

.feature-showcase article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #181818, #101010);
  display: grid;
  align-content: end;
}

.feature-showcase article:first-child {
  min-height: 330px;
  background: linear-gradient(145deg, rgba(50,213,131,.14), rgba(255,255,255,.03)), #101010;
}

.feature-showcase h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

form {
  min-width: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

label {
  display: block;
  margin: 12px 0;
  color: #ddd;
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101010;
  color: var(--text);
  font: inherit;
}

select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101010;
  color: var(--text);
  font: inherit;
}

.plans {
  display: grid;
  gap: 16px;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.section-heading p:last-child {
  color: var(--muted);
}

#plan-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  padding: 20px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.plan:nth-child(3) {
  border-color: rgba(50,213,131,.45);
  background: linear-gradient(180deg, rgba(50,213,131,.09), rgba(12,12,12,.98));
}

.plan:nth-child(3)::before {
  content: "Most flexible";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(50,213,131,.14);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.plan strong {
  font-size: 28px;
}

.plan-limit {
  color: var(--text) !important;
  font-weight: 800;
}

.comparison {
  min-height: 48px;
  color: var(--green) !important;
  font-weight: 800;
}

.features {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.features li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto auto;
  gap: 14px;
  align-items: end;
}

.platform-config,
.network-grid,
.help-section,
.optimization-event {
  display: grid;
  gap: 18px;
}

#platform-modes {
  display: grid;
  gap: 12px;
}

.platform-row {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.platform-row h3 {
  margin: 0 0 6px;
}

.platform-row p {
  margin: 0;
  max-width: 680px;
}

.platform-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(50, 213, 131, .65);
}

.optimization-event {
  border-color: rgba(50, 213, 131, .38);
}

summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.network-grid {
  grid-template-columns: .9fr 1.4fr;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-list div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  display: grid;
  align-content: space-between;
}

.metric-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-list strong {
  font-size: 22px;
}

pre {
  overflow: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f0f0f;
  color: #e8e8e8;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101010;
}

#message {
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1050px) {
  .hero,
  .feature-showcase {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 560px;
  }

  #plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .hero,
  .auth-grid,
  .dashboard,
  .network-grid,
  .platform-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  #plan-list {
    grid-template-columns: 1fr;
  }

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

  .metric-list {
    grid-template-columns: 1fr;
  }

  .platform-actions {
    justify-items: start;
  }
}
