/* ============================================================
   base.css — shared across every page (marketing + app)
   Reset, design tokens, navbar, buttons, footer, section scaffolding
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0e14;
  --bg-raised: #12161f;
  --bg-sunken: #0d1119;
  --bg-panel: #0f131c;
  --border: #232838;
  --border-soft: #181e2a;
  --text: #e6e8ef;
  --text-muted: #8b93a7;
  --text-faint: #5a637a;
  --text-heading: #fff;
  --accent: #727FD5;
  --accent-hover: #5a66c4;
  --accent-soft: rgba(114, 127, 213, 0.12);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius-pill: 40px;
  --radius-lg: 16px;
  --radius-md: 8px;
}

body {
  font-family: 'Urania Light', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- NAVIGATION (shared shell; marketing vs app nav differ in content only) ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav-links a {
  color: var(--text-muted);
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--text-heading);
}
.nav-links a.current {
  color: var(--text-heading);
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: 0.2s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(114, 127, 213, 0.3);
  color: #fff !important;
}
.hamburger {
  display: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* ----- BUTTONS ----- */
.btn {
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 28px rgba(114, 127, 213, 0.35);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid #3a405a;
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(114, 127, 213, 0.08);
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text-heading);
}
.btn-danger {
  background: transparent;
  border: 1px solid #4a2530;
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(248, 113, 113, 0.08);
  border-color: var(--danger);
}
.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----- SECTIONS ----- */
section {
  /* padding: 80px 0; */
  border-bottom: 1px solid var(--border-soft);
}
.section-title {
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.section-sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
}
.text-muted {
  color: var(--text-muted);
}
.badge-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
}

/* ----- FOOTER ----- */
footer {
  background: #090c12;
  padding: 50px 0 30px;
  border-top: 1px solid var(--border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #b0b8cf;
  font-size: 14px;
  margin-bottom: 6px;
  transition: 0.2s;
}
.footer-col a:hover {
  color: var(--text-heading);
}
.footer-col .logo img {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}
.socials {
  display: flex;
  gap: 18px;
}
.socials a {
  color: var(--text-muted);
  font-size: 18px;
  transition: 0.2s;
}
.socials a:hover {
  color: var(--accent);
}

/* ----- toast (shared, used by app pages) ----- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-width: 360px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.toast-error {
  border-color: #4a2530;
  color: #fca5a5;
}
