:root {
  --bg: #070a10;
  --panel: #0c111a;
  --elevated: #121826;
  --line: #243044;
  --text: #f3f6fb;
  --muted: #8b97ab;
  --accent: #4fd1c5;
  --accent-hover: #73e4d8;
  --ink: #06201d;
  --chip: #14222a;
  --soft: #b7c4d4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

button, input, select, textarea { font-family: inherit; }

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.glow-a {
  width: 520px;
  height: 520px;
  top: -90px;
  left: -180px;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.2), transparent 70%);
}

.glow-b {
  width: 380px;
  height: 380px;
  right: 8%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, #4fd1c5, #3b82f6);
}

.mark svg { width: 22px; height: 22px; }
.mark.small { width: 28px; height: 28px; border-radius: 8px; }
.mark.small svg { width: 16px; height: 16px; }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong { font-size: 18px; letter-spacing: 0.02em; }
.brand-copy em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.28em;
}

.links {
  display: flex;
  gap: 22px;
  margin-left: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: #151c28;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: #3a4a63; background: #1a2332; }

.nav-cta { height: 40px; font-size: 13px; padding: 0 16px; }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 34rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  background: var(--chip);
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  padding: 7px 12px;
}

.hero-visual { text-align: center; }

.globe {
  width: min(100%, 320px);
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(79, 209, 197, 0.18));
}

.globe-svg { width: 100%; height: auto; display: block; }

.pulse-ring {
  transform-origin: 221px 99px;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(3.2); opacity: 0; }
}

.globe-caption {
  margin-top: 16px;
  color: #5c6a80;
  font-size: 12px;
}

.stats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats article {
  background: var(--panel);
  border: 1px solid #182232;
  border-radius: 18px;
  padding: 18px 16px;
}

.stat {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.label { color: var(--muted); font-size: 13px; }

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-head { max-width: 40rem; margin-bottom: 28px; }

h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.section-head p:last-child { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid #182232;
  border-radius: 18px;
  padding: 22px;
}

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.core .path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid #182232;
  border-radius: 18px;
  padding: 22px;
}

.path span {
  background: #14302e;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 12px;
}

.path .exit { color: var(--accent-hover); }

.path i {
  width: 18px;
  height: 1px;
  background: var(--muted);
  display: block;
}

.download-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  background: var(--panel);
  border: 1px solid #182232;
  border-radius: 22px;
  padding: 36px;
}

.download-card p { color: var(--muted); margin: 0 0 20px; }
.download-card .btn { margin-bottom: 12px; }
.fine { font-size: 12px; color: #5c6a80 !important; }

.checks {
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: center;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
}

.checks li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.brand-foot { color: var(--text); font-weight: 600; }

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.legal-page { max-width: 920px; margin: 0 auto; padding: 56px 24px 40px; }
.legal-heading { margin-bottom: 20px; }
.legal-heading h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 8px 0; }
.legal-notice { margin-bottom: 16px; padding: 14px 16px; border: 1px solid #64532b; border-radius: 12px; background: #221d11; color: #ead8a6; font-size: 13px; }
.legal-copy { padding: 26px; }
.legal-copy h2 { font-size: 18px; margin: 24px 0 8px; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: var(--soft); font-size: 14px; line-height: 1.75; }
.legal-copy p + p { margin-top: 10px; }
.legal-copy ul { margin: 8px 0 0 22px; display: grid; gap: 8px; }
.legal-copy code { color: var(--accent); overflow-wrap: anywhere; }
.legal-page + .footer { margin-top: 12px; }

@media (max-width: 900px) {
  .links { display: none; }
  .hero,
  .download-card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-actions .btn-text { color: var(--accent); }
  .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-text {
  height: 40px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
}
.btn-text:hover { color: var(--text); }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--panel);
  border: 1px solid #182232;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-brand {
  padding: 40px 36px;
  background: linear-gradient(135deg, #071018, #0a1b24 55%, #07141c);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.auth-brand h2 { margin-top: auto; }
.auth-brand p { color: var(--muted); margin-top: 10px; max-width: 22rem; }

.auth-form {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form .btn { width: 100%; margin-top: 8px; }

.auth-form h1 { font-size: 30px; margin-bottom: 8px; }
.auth-form .lede { margin-bottom: 22px; font-size: 14px; }

label.lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0 0 8px 2px;
}

.stack { display: grid; gap: 14px; }
.mt { margin-top: 16px; }

input.field, textarea.field, select.field {
  width: 100%;
  background: #101722;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

input.field { height: 44px; }
textarea.field { min-height: 88px; resize: vertical; }
input.field:focus, textarea.field:focus, select.field:focus {
  outline: none;
  border-color: var(--accent);
}

.form-error {
  color: #f07178;
  font-size: 13px;
  min-height: 1.2em;
  margin-top: 10px;
}

.form-ok { color: var(--accent); font-size: 13px; margin-top: 10px; }

.auth-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.auth-foot a { color: var(--accent); font-weight: 600; }

.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.side {
  background: #0a1018;
  border-right: 1px solid #15202c;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}

.side nav { display: grid; gap: 4px; margin-top: 18px; }
.side a.nav-item,
.side button.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.side a.nav-item:hover,
.side button.nav-item:hover { background: #121a26; color: var(--text); }
.side .nav-item.active {
  background: #14302e;
  color: var(--accent);
}

.side-user {
  margin-top: auto;
  background: #121a26;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #14302e;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.side-user strong { display: block; font-size: 12px; }
.side-user button,
.side-user a {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.app-main { padding: 22px 28px 40px; }
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.app-top h1 { font-size: 22px; margin: 0; }
.pill {
  background: #14302e;
  color: var(--text);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}
.pill .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

.grid-4, .grid-3, .grid-2 { display: grid; gap: 12px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.panel {
  background: var(--panel);
  border: 1px solid #182232;
  border-radius: 18px;
  padding: 18px;
}

.k { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.v { font-size: 26px; font-weight: 700; margin-top: 6px; }
.sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.view { display: none; }
.view.active { display: block; }

.plan {
  border: 1px solid #182232;
  border-radius: 18px;
  padding: 20px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan.featured { border-color: #2a6b64; background: #0e1a22; }
.plan .price { font-size: 32px; font-weight: 700; }
.plan .price em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }
.plan p { color: var(--muted); font-size: 14px; flex: 1; }
.plan form, .plan .btn { width: 100%; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 0 8px 10px;
}
table.data td {
  padding: 12px 8px;
  border-top: 1px solid #182232;
}
.tag {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #14302e;
  color: var(--accent);
}
.tag.warn { background: #3a1520; color: #ff8b93; }

.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 40px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.bar {
  height: 8px;
  background: #121a26;
  border-radius: 8px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 8px;
}

.row-actions { display: flex; gap: 6px; }
.btn-tiny {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 10px;
}

.hidden { display: none !important; }

@media (max-width: 980px) {
  .auth-card, .app, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .side { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
}
