:root {
  --page: #070a0e;
  --ink: #f7f4ee;
  --muted: #8f98a4;
  --soft: #c7d0d8;
  --panel: rgba(13, 18, 24, 0.74);
  --panel-2: rgba(18, 25, 32, 0.84);
  --line: rgba(197, 217, 229, 0.12);
  --line-strong: rgba(197, 217, 229, 0.2);
  --aqua: #6bc7c9;
  --aqua-strong: #83dddc;
  --fire: #ff7a32;
  --fire-soft: #ffb36e;
  --violet: #b46cff;
  --red: #ff6b78;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(107, 199, 201, 0.16), transparent 24rem),
    radial-gradient(circle at 8% 92%, rgba(255, 122, 50, 0.14), transparent 26rem),
    linear-gradient(180deg, #080b10 0%, #070a0e 58%, #06080b 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(197, 217, 229, 0.11);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.topbar-actions,
.hero-actions,
.trust-row,
.dashboard-header,
.summary-top,
.panel-title,
.panel-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 15px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 122, 50, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 179, 110, 0.32), transparent 52%),
    linear-gradient(145deg, rgba(255, 122, 50, 0.18), rgba(107, 199, 201, 0.16));
  font-size: 20px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 38px rgba(255, 122, 50, 0.18);
}

.nav-links {
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 4px;
  border: 1px solid rgba(197, 217, 229, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.topbar-actions,
.hero-actions {
  gap: 10px;
}

.primary-button,
.ghost-button,
.small-button,
.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.primary-button {
  padding: 0 18px;
  background: linear-gradient(135deg, var(--aqua-strong), #74c8c5);
  color: #061014;
  box-shadow: 0 16px 38px rgba(107, 199, 201, 0.22);
}

.ghost-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.ghost-button:hover,
.small-button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.065);
}

.large {
  min-height: 52px;
  padding: 0 24px;
}

.full {
  width: 100%;
}

main,
section,
.hero,
.hero-copy,
.hero-text,
.trust-row,
.dashboard-grid,
.feature-grid,
.pricing-grid,
.faq-grid {
  min-width: 0;
  max-width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.9fr);
  gap: 72px;
  align-items: center;
  min-height: clamp(720px, 84vh, 880px);
  padding: 42px 0 88px;
}

.eyebrow {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--fire-soft);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6.2vw, 78px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span:last-child {
  color: var(--aqua);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(31px, 4.2vw, 54px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text,
.section-heading p {
  max-width: 640px;
  color: var(--soft);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.68;
  overflow-wrap: break-word;
}

.trust-row {
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.trust-row span {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.trust-row span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--fire);
  vertical-align: 2px;
  content: "";
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.planet {
  position: relative;
  width: min(420px, 84vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 44% 43%, rgba(107, 199, 201, 0.2), transparent 13%),
    radial-gradient(circle at 44% 54%, #f7f4ee 0 9%, transparent 9.5%),
    radial-gradient(circle at 33% 37%, #f7f4ee 0 11%, transparent 11.5%),
    radial-gradient(circle at 62% 33%, #f7f4ee 0 13%, transparent 13.5%),
    radial-gradient(circle at 64% 64%, #f7f4ee 0 15%, transparent 15.5%),
    linear-gradient(145deg, #111820, #080c12);
  box-shadow:
    inset 0 0 0 1px rgba(197, 217, 229, 0.08),
    inset 0 -48px 90px rgba(0, 0, 0, 0.48),
    0 42px 90px rgba(0, 0, 0, 0.44);
}

.planet-grid {
  position: absolute;
  inset: -22px;
  border: 1px dashed rgba(107, 199, 201, 0.12);
  border-radius: 999px;
}

.flame-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 179, 110, 0.95), transparent 22%),
    linear-gradient(145deg, var(--aqua-strong), #5cb6b9);
  font-size: 46px;
  font-weight: 950;
  transform: translate(-50%, -50%);
  box-shadow: 0 28px 70px rgba(107, 199, 201, 0.3);
}

.orbit {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(107, 199, 201, 0.16);
  border-radius: 999px;
}

.orbit-one {
  transform: rotate(21deg);
}

.orbit-two {
  transform: rotate(-31deg) scale(1.12);
}

.floating-card {
  position: absolute;
  min-width: 138px;
  padding: 15px 16px;
  border: 1px solid rgba(197, 217, 229, 0.13);
  border-radius: 8px;
  background: rgba(18, 25, 32, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.floating-card span {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.floating-card strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.card-protocol {
  right: -30px;
  top: 44px;
}

.card-speed {
  left: -52px;
  bottom: 70px;
}

.card-locations {
  right: -62px;
  bottom: 110px;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(107, 199, 201, 0.28);
  border-radius: 999px;
  background: rgba(107, 199, 201, 0.08);
  color: #c3f5f2;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.account-panel,
.feature-card,
.price-card,
.auth-card,
.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section,
.plans-section,
.dashboard-section,
.faq-section {
  padding: 82px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.feature-grid,
.pricing-grid,
.dashboard-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.price-card,
.account-panel,
.faq-grid article {
  padding: 24px;
}

.feature-card {
  min-height: 250px;
  background: linear-gradient(180deg, rgba(107, 199, 201, 0.07), rgba(13, 18, 24, 0.74));
}

.feature-icon {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 44px;
  border: 1px solid rgba(255, 122, 50, 0.28);
  border-radius: 999px;
  color: var(--fire-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 0 11px;
}

.feature-card p,
.price-card li,
.footer,
.config-box,
.faq-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.dashboard-section {
  scroll-margin-top: 88px;
}

.dashboard-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.config-panel {
  grid-column: span 2;
}

.summary-panel {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 122, 50, 0.13), transparent 14rem),
    linear-gradient(145deg, rgba(107, 199, 201, 0.1), rgba(13, 18, 24, 0.78));
}

.connect-panel {
  background:
    radial-gradient(circle at 88% 16%, rgba(107, 199, 201, 0.16), transparent 14rem),
    linear-gradient(145deg, rgba(18, 25, 32, 0.92), rgba(13, 18, 24, 0.74));
}

.connect-panel p {
  color: var(--soft);
  line-height: 1.62;
}

.renewal-panel {
  grid-column: span 2;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 122, 50, 0.13), transparent 15rem),
    linear-gradient(145deg, rgba(18, 25, 32, 0.92), rgba(13, 18, 24, 0.78));
}

.renewal-panel .panel-title p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.55;
}

.renewal-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.renewal-option {
  cursor: pointer;
}

.renewal-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.renewal-option span {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(197, 217, 229, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.renewal-option input:checked + span {
  border-color: rgba(107, 199, 201, 0.45);
  background: rgba(107, 199, 201, 0.1);
}

.renewal-option:hover span {
  transform: translateY(-1px);
}

.renewal-option strong {
  color: var(--ink);
  font-size: 17px;
}

.renewal-option small {
  color: var(--fire-soft);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 850;
}

.renewal-option em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.connect-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 10px;
  margin: 22px 0 18px;
}

.setup-steps {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(197, 217, 229, 0.08);
}

.setup-steps span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.subscription-panel {
  min-width: 0;
}

.summary-top,
.panel-title {
  justify-content: space-between;
  gap: 16px;
}

.summary-top strong {
  display: block;
  margin-top: 8px;
  word-break: break-word;
}

.status-pill.neutral {
  border-color: rgba(197, 217, 229, 0.16);
  background: rgba(197, 217, 229, 0.05);
  color: var(--muted);
}

.trial-meter {
  height: 10px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid rgba(197, 217, 229, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.trial-meter-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--fire));
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.summary-stats span,
.muted-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.summary-stats div {
  padding: 16px;
  border: 1px solid rgba(197, 217, 229, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.summary-stats strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
}

.config-box {
  min-height: 78px;
  margin-bottom: 0;
  padding: 16px;
  border: 1px solid rgba(197, 217, 229, 0.08);
  border-radius: 8px;
  background: #090d12;
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

.panel-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.subscription-preview {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid rgba(197, 217, 229, 0.08);
  border-radius: 8px;
  background: #090d12;
  color: #dcebe5;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.58;
  padding: 16px;
}

.icon-button,
.small-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.icon-button {
  width: 40px;
  font-size: 20px;
}

.small-button {
  padding: 0 12px;
  font-size: 13px;
}

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

.price-card.highlighted {
  border-color: rgba(107, 199, 201, 0.3);
  background: linear-gradient(145deg, rgba(107, 199, 201, 0.12), rgba(13, 18, 24, 0.78));
}

.price {
  margin: 20px 0;
  font-size: 38px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 12px;
  min-height: 152px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-card li::before {
  margin-right: 10px;
  color: var(--fire);
  font-weight: 900;
  content: "✓";
}

.plans-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.plans-note span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(197, 217, 229, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0 12px;
}

.faq-grid {
  grid-template-columns: repeat(3, 1fr);
}

.faq-grid article {
  min-height: 170px;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.auth-modal {
  width: min(440px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.auth-modal::backdrop {
  background: rgba(4, 7, 10, 0.78);
  backdrop-filter: blur(10px);
}

.auth-card {
  position: relative;
  padding: 28px;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-size: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 0 14px;
}

input:focus {
  border-color: rgba(107, 199, 201, 0.72);
  box-shadow: 0 0 0 4px rgba(107, 199, 201, 0.1);
}

.form-message {
  min-height: 22px;
  margin: 12px 0;
  color: var(--red);
  font-size: 14px;
}

.text-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  background: transparent;
  color: var(--aqua);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(197, 217, 229, 0.14);
  border-radius: 8px;
  background: #f7f4ee;
  color: #071015;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100% - 28px, 760px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 42px;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .feature-grid,
  .pricing-grid,
  .dashboard-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel,
  .config-panel,
  .renewal-panel {
    grid-column: auto;
  }

  .connect-actions {
    grid-template-columns: 1fr;
  }

  .renewal-options {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .topbar-actions {
    display: none;
  }

  .topbar {
    border-radius: 24px;
    padding: 10px 12px;
  }

  .hero {
    padding: 34px 0 56px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions,
  .footer,
  .dashboard-header,
  .summary-stats,
  .panel-actions,
  .connect-actions {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: 100%;
  }

  .trust-row {
    gap: 12px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .planet {
    width: min(310px, 78vw);
  }

  .flame-core {
    width: 78px;
    height: 78px;
    font-size: 32px;
  }

  .floating-card {
    min-width: 112px;
    padding: 12px;
  }

  .card-protocol {
    right: -4px;
    top: 10px;
  }

  .card-speed {
    left: -4px;
    bottom: 42px;
  }

  .card-locations {
    right: -8px;
    bottom: 74px;
  }

  .section,
  .plans-section,
  .dashboard-section,
  .faq-section {
    padding: 56px 0;
  }

  .feature-card,
  .price-card,
  .account-panel,
  .auth-card,
  .faq-grid article {
    padding: 20px;
  }

  .feature-card {
    min-height: 220px;
  }

  .price-card ul {
    min-height: auto;
  }
}
