:root {
  --bg: #06080c;
  --surface: #141824;
  --ink: #f4f6fb;
  --muted: #a8b0c0;
  --line: rgba(244, 246, 251, 0.12);
  --blue: #4da3ff;
  --blue-dark: #9cc9ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --radius: 22px;
  --max: 1120px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(77, 163, 255, 0.2), transparent 55%),
    radial-gradient(800px 420px at 92% 0%, rgba(108, 92, 231, 0.14), transparent 50%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 9, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a,
.nav-links button.nav-auth {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button.nav-auth:hover,
.nav-links button.nav-auth:focus-visible {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.auth-page-card {
  max-width: 440px;
  margin: 0 auto;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 9, 13, 0.72);
}

.auth-modal.open {
  display: grid !important;
}

.auth-modal .card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(77, 163, 255, 0.22);
}

.auth-modal h2 {
  font-size: 28px;
  margin: 0;
}

.auth-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-modal label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.auth-modal input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 16px;
}

.auth-switch {
  background: none;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--ink);
}

.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 21, 28, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  margin: 22px auto 18px;
  max-width: 16ch;
  font-size: clamp(40px, 7vw, 76px);
}

.lede {
  margin: 0 auto 32px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: #7ab8ff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line);
}

.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.section {
  padding: 88px 0;
}

.section h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 14px;
}

.section-intro {
  max-width: 52ch;
  color: var(--muted);
  margin-bottom: 36px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card,
.glass {
  background: rgba(18, 21, 28, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.card ul {
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}

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

.feature {
  padding: 22px;
  min-height: 180px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(36, 56, 92, 0.45);
  color: var(--blue-dark);
  margin-bottom: 16px;
  font-size: 18px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p,
.tech p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.legal {
  padding: 48px 0 80px;
}

.page-title,
.account-page h1 {
  max-width: none;
  margin: 18px 0 16px;
  text-align: left;
  font-size: clamp(36px, 6vw, 64px);
}

.legal h1 {
  max-width: none;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
}

.account-hero {
  text-align: left;
  padding: 64px 0 12px;
}

.account-hero .lede {
  margin-left: 0;
  margin-right: 0;
}

.account-actions {
  justify-content: flex-start;
}

.account-preview {
  padding-top: 24px;
}

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

.nav-auth-strong {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px !important;
}

.status-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.14);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 650;
}

.legal h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--muted);
  max-width: 72ch;
}

.reveal {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 16px 20px 22px;
    background: rgba(7, 9, 13, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open {
    display: flex;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    animation: none;
  }
}

.nav-chip {
  color: var(--ink);
  font-size: 13px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: relative;
}

.nav-account-btn {
  color: var(--ink);
  background: rgba(77, 163, 255, 0.14);
  border: 1px solid rgba(77, 163, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 50;
}

.account-menu-panel a,
.account-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .account-grid,
  .account-preview-grid {
    grid-template-columns: 1fr;
  }
}

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

.plan-price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}

.auth-form {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.auth-form input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 16px;
}

.status-banner {
  margin: 16px 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
