:root {
  --bg: #eef4fb;
  --bg-soft: #f8fbff;
  --surface: #ffffff;
  --surface-tint: #f4f9ff;
  --surface-deep: #0f2236;
  --line: rgba(21, 55, 90, 0.12);
  --line-strong: rgba(30, 58, 95, 0.18);
  --text: #16314d;
  --text-soft: #5b7088;
  --text-muted: #7890a8;
  --primary: #1e3a5f;
  --secondary: #4a90d9;
  --accent: #60a5fa;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow-soft: 0 20px 50px rgba(17, 42, 70, 0.08);
  --shadow-card: 0 26px 70px rgba(18, 47, 79, 0.11);
  --shadow-hero: 0 34px 90px rgba(16, 44, 76, 0.22);
  --radius-2xl: 36px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 18rem),
    radial-gradient(circle at top right, rgba(74, 144, 217, 0.22), transparent 20rem),
    linear-gradient(180deg, #fafdff 0%, var(--bg) 34%, #edf5fc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  opacity: 0.35;
}

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

img {
  max-width: 100%;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.84);
  border-bottom: 1px solid rgba(215, 227, 242, 0.72);
}

.topbar-inner,
.page-section,
.footer-inner,
.hero-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), transparent 40%),
    linear-gradient(145deg, #17345b, #4a90d9);
  box-shadow: 0 18px 36px rgba(30, 58, 95, 0.24);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-stack span {
  font-size: 1.02rem;
}

.brand-stack small {
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(21, 55, 90, 0.08);
  box-shadow: 0 10px 26px rgba(17, 44, 72, 0.06);
}

.nav a {
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav a:hover,
.nav a.active {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.16), rgba(96, 165, 250, 0.18));
  color: var(--primary);
}

.hero {
  padding: 46px 0 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 38px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 20rem),
    radial-gradient(circle at 88% 14%, rgba(96, 165, 250, 0.26), transparent 16rem),
    linear-gradient(135deg, #163255 0%, #23466d 38%, #4a90d9 100%);
  box-shadow: var(--shadow-hero);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 68%);
}

.hero-card::after {
  width: 220px;
  height: 220px;
  top: -60px;
  right: 18%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.81rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 22px;
}

.hero h1,
.page-header h1 {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Aptos", sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  line-height: 1.78;
}

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

.hero-note {
  margin: 16px 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 16px 30px rgba(8, 22, 38, 0.14);
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.stat-grid,
.card-grid,
.plan-grid,
.link-grid,
.signal-grid {
  display: grid;
  gap: 18px;
}

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

.stat-card,
.content-card,
.plan-card,
.support-card,
.document-card,
.aside-card {
  position: relative;
  overflow: hidden;
}

.stat-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.26rem;
  letter-spacing: -0.02em;
}

.page-section {
  width: min(var(--max-width), calc(100% - 32px));
  padding: 34px 0;
}

.section-header,
.page-header {
  max-width: 52rem;
  margin-bottom: 20px;
}

.section-header h2,
.page-header h2 {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Aptos", sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-header p,
.page-header p,
.page-header .lede {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.82;
}

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

.signal-card,
.content-card,
.support-card,
.plan-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.signal-card::before,
.content-card::before,
.support-card::before,
.plan-card::before,
.document-card::before,
.aside-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(30, 58, 95, 0.9), rgba(74, 144, 217, 0.8), rgba(96, 165, 250, 0.7));
}

.signal-card {
  display: grid;
  gap: 8px;
}

.signal-card strong {
  font-size: 1.05rem;
}

.signal-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.content-card h3,
.support-card h3,
.plan-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.content-card p,
.support-card p,
.plan-card p,
.content-card li,
.support-card li,
.plan-list li {
  color: var(--text-soft);
  line-height: 1.78;
}

.node-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.chip.free {
  color: #0d6b38;
  background: rgba(255, 255, 255, 0.94);
}

.chip.premium {
  color: #10335a;
  background: rgba(255, 255, 255, 0.9);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(21, 55, 90, 0.08);
}

.comparison-table th {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, rgba(237, 244, 251, 0.9), rgba(245, 249, 255, 0.92));
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card.featured {
  transform: translateY(-6px);
  border-color: rgba(74, 144, 217, 0.3);
  background:
    linear-gradient(180deg, rgba(241, 248, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.plan-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(74, 144, 217, 0.11);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.plan-list li {
  display: flex;
  gap: 10px;
  margin: 0;
}

.plan-list li::before {
  content: "+";
  color: var(--secondary);
  font-weight: 900;
}

.muted-list {
  padding-left: 18px;
  margin: 10px 0 0;
}

.muted-list li + li {
  margin-top: 8px;
}

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.document-card {
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.document-card section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 55, 90, 0.08);
}

.document-card h2,
.document-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.document-card p,
.document-card li {
  color: var(--text-soft);
  line-height: 1.84;
}

.aside-card {
  position: sticky;
  top: 94px;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 11rem),
    linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.aside-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.aside-card p,
.aside-card li {
  color: var(--text-soft);
  line-height: 1.78;
}

.status-box {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(74, 144, 217, 0.16);
  background: rgba(74, 144, 217, 0.08);
  color: var(--text-soft);
  line-height: 1.65;
}

.status-box.success {
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.12);
}

.status-box.error {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
}

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

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.input,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(21, 55, 90, 0.14);
  background: #fbfdff;
  color: var(--text);
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(74, 144, 217, 0.42);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(215, 227, 242, 0.8);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 24px 0 30px;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1024px) {
  .hero-layout,
  .page-body,
  .card-grid,
  .plan-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .aside-card {
    position: static;
  }
}

@media (max-width: 760px) {
  body::before {
    opacity: 0.18;
    background-size: 56px 56px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card,
  .content-card,
  .plan-card,
  .support-card,
  .document-card,
  .aside-card,
  .signal-card {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    align-items: flex-start;
  }
}
