:root {
  --navy: #081b33;
  --navy-secondary: #102b4c;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #22d3ee;
  --ink: #12233d;
  --muted: #60728a;
  --line: #dce5ef;
  --surface: #f5f8fc;
  --success: #12805c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  background: #ffffff;
}

a {
  text-decoration: none;
}

.site-nav {
  padding: 1rem 0;
  background: var(--navy);
}

.navbar-brand {
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 0.75rem;
}

.nav-link {
  color: #f3f7fc !important;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
}

.btn-nav-outline {
  color: #ffffff;
  border: 1px solid #9db5cc;
  background: transparent;
}

.btn-nav-outline:hover {
  color: var(--navy);
  border-color: #ffffff;
  background: #ffffff;
}

.btn-cloudflare {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.btn-cloudflare:hover {
  color: #ffffff;
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.btn-ghost-light {
  color: #ffffff;
  border: 1px solid #9db5cc;
  background: transparent;
}

.btn-ghost-light:hover {
  color: var(--navy);
  background: #ffffff;
}

.site-nav .btn-outline-light {
  color: #ffffff;
  border-color: #d7e5f3;
}

.site-nav .btn-outline-light:hover {
  color: var(--navy);
  background: #ffffff;
}

.hero-section,
.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, #19466f 0, transparent 36%),
    linear-gradient(135deg, var(--navy), #0c2b4d);
}

.hero-section {
  display: flex;
  align-items: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(141, 181, 220, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 181, 220, 0.25) 1px, transparent 1px);
  background-size: 55px 55px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9eeaf5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.kicker-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
}

.hero-copy {
  max-width: 610px;
  color: #e2edf7 !important;
  line-height: 1.7;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: #c1d2e2;
  font-size: 0.78rem;
}

.trust-check {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  border-radius: 50%;
  color: #062039;
  background: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 900;
}

.security-console {
  overflow: hidden;
  border: 1px solid rgba(157, 202, 239, 0.35);
  border-radius: 16px;
  color: #e0f2fe;
  background: rgba(5, 20, 38, 0.86);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

.console-top,
.console-footer {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  color: #a7bdd2;
  font-size: 0.7rem;
}

.console-top {
  border-bottom: 1px solid #234362;
}

.console-lights {
  display: flex;
  gap: 5px;
  margin-right: 0.8rem;
}

.console-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f06b6b;
}

.console-lights i:nth-child(2) {
  background: #f3b562;
}

.console-lights i:nth-child(3) {
  background: #65d6a0;
}

.console-secure {
  margin-left: auto;
  color: #6ee7b7;
}

.console-body {
  padding: 2rem 1.75rem 1.5rem;
}

.console-label {
  color: #8be8f7;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.console-title {
  max-width: 300px;
  margin-top: 0.6rem;
  color: #f5fbff;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.25;
}

.console-map {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
}

.map-ring {
  position: absolute;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
}

.ring-one {
  width: 115px;
  height: 115px;
}

.ring-two {
  width: 175px;
  height: 175px;
  border-style: dashed;
}

.map-core {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #8be8f7;
  border-radius: 50%;
  color: #062039;
  background: linear-gradient(135deg, #8be8f7, #d5fbff);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.35);
  font-size: 1.4rem;
  font-weight: 900;
}

.map-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 5px rgba(110, 231, 183, 0.12);
}

.node-one {
  top: 28px;
  left: 22%;
}

.node-two {
  right: 18%;
  bottom: 38px;
  background: #c4b5fd;
}

.node-three {
  bottom: 25px;
  left: 28%;
}

.console-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #234362;
}

.console-stats strong,
.console-stats span {
  display: block;
}

.console-stats strong {
  color: #f5fbff;
}

.console-stats span {
  margin-top: 0.25rem;
  color: #a7bdd2;
  font-size: 0.7rem;
}

.console-footer {
  border-top: 1px solid #234362;
}

.hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.04));
}

.stats-section {
  position: relative;
  z-index: 2;
  background: var(--surface);
}

.stats-panel {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(13, 32, 56, 0.06);
}

.stat-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-value {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 850;
}

.stat-suffix {
  color: var(--blue);
}

.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.feature-section {
  background: #ffffff;
}

.architecture-preview {
  padding: 6rem 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), #10345b);
}

.architecture-preview p {
  max-width: 500px;
  color: #d2e0ec;
  line-height: 1.7;
}

.text-link-light {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  color: #a7f3fc;
  font-weight: 700;
}

.mini-architecture {
  padding: 1.5rem;
  border: 1px solid rgba(157, 202, 239, 0.3);
  border-radius: 14px;
  background: rgba(5, 20, 38, 0.45);
}

.mini-node {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(157, 202, 239, 0.25);
  border-radius: 9px;
  background: rgba(21, 54, 88, 0.65);
}

.mini-node strong,
.mini-node small {
  display: block;
}

.mini-node strong {
  color: #f5fbff;
  font-size: 0.9rem;
}

.mini-node small {
  margin-top: 0.2rem;
  color: #b7c8da;
  font-size: 0.72rem;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #8be8f7;
  background: rgba(56, 189, 248, 0.15);
}

.mini-icon.orange {
  color: #fbd38d;
  background: rgba(251, 211, 141, 0.15);
}

.mini-connector {
  height: 25px;
  margin-left: 2.2rem;
  border-left: 1px dashed #6d8eac;
}
}

.page-hero {
  padding: 6rem 0 5rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2,
h3 {
  font-weight: 750;
  letter-spacing: -0.025em;
}

.text-gradient {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #b8f5ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero-section .eyebrow,
.page-hero .eyebrow {
  color: #8be8f7;
}

.hero-section .text-light-emphasis,
.page-hero .text-light-emphasis {
  color: #e2edf7 !important;
}

.section-space {
  padding: 6rem 0;
}

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

.feature-card,
.dashboard-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(13, 32, 56, 0.05);
}

.feature-card {
  height: 100%;
}

.feature-card h3 {
  margin-top: 1.2rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.text-secondary {
  color: #52657d !important;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--blue-dark);
  background: #e7f0ff;
  font-weight: 800;
}

.code-card {
  overflow: hidden;
  border: 1px solid #2a4d70;
  border-radius: 16px;
  color: #e0f2fe;
  background: var(--navy);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid #234362;
  color: #9db3c9;
  font-size: 0.72rem;
}

.code-card-header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f06b6b;
}

.code-card-header span:nth-child(2) {
  background: #f3b562;
}

.code-card-header span:nth-child(3) {
  background: #65d6a0;
}

.code-card pre {
  padding: 1.5rem;
  overflow: auto;
  font-size: 0.88rem;
  line-height: 1.8;
}

.code-muted {
  color: #6f8aa5;
}

.code-key {
  color: #d0a2ff;
}

.code-name {
  color: #72e5f4;
}

.code-string {
  color: #9ae6b4;
}

.code-bool {
  color: #fbd38d;
}

.status-line {
  padding: 1rem 1.5rem;
  border-top: 1px solid #234362;
  color: #a7bdd2;
  font-size: 0.8rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #34d399;
}

.site-footer {
  padding: 1.5rem 0;
  color: #63758b;
  background: var(--surface);
  font-size: 0.85rem;
}

.auth-page {
  min-height: 100vh;
  background: var(--surface);
}

.auth-container {
  padding: 5rem 1rem;
}

.auth-card {
  max-width: 440px;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(13, 32, 56, 0.08);
}

.form-control {
  padding: 0.8rem 1rem;
  border-color: #cbd8e6;
  color: var(--ink);
  background: #ffffff;
}

.form-label {
  color: var(--ink);
  font-weight: 650;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.btn-primary {
  border-color: var(--blue);
  background: var(--blue);
}

.btn-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.btn-outline-light {
  color: #ffffff;
  border-color: #d7e5f3;
}

.btn-outline-light:hover {
  color: var(--navy);
  background: #ffffff;
}

.alert-info {
  color: #123b5d;
  background: #e7f5ff;
}

code {
  color: #075985;
}

.badge-live {
  padding: 0.55rem 0.8rem;
  border: 1px solid #b9e6d3;
  border-radius: 99px;
  color: var(--success);
  background: #ecfbf4;
  font-size: 0.8rem;
}

.dashboard-card {
  padding: 2rem;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #dbeafe;
  font-weight: 800;
}

.metric {
  padding: 1rem;
  border-radius: 10px;
  background: #f3f7fb;
}

.metric span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.metric strong {
  font-size: 0.95rem;
}

.health-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.health-item strong {
  color: var(--success);
  font-size: 0.82rem;
}

.stack-list {
  margin-top: 2rem;
}

.stack-list div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.stack-list strong,
.stack-list span {
  display: block;
}

.stack-list span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.architecture-visual {
  padding: 2rem;
  border-radius: 16px;
  color: #ffffff;
  background: var(--navy);
  text-align: center;
}

.arch-node {
  padding: 0.8rem 1rem;
  border: 1px solid #315a82;
  border-radius: 8px;
  background: var(--navy-secondary);
}

.arch-line {
  padding: 0.5rem;
  color: #8be8f7;
  font-size: 1.4rem;
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 0;
    padding: 4rem 0;
  }

  .section-space {
    padding: 4rem 0;
  }

  .auth-container {
    padding-top: 3rem;
  }

  .dashboard-card {
    padding: 1.4rem;
  }
}
