@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --bg: #0c0f14;
  --bg-elevated: #12171f;
  --surface: #161d27;
  --surface-hover: #1c2531;
  --border: #2a3544;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #eef2f7;
  --muted: #8b98a8;
  --muted-dim: #5c6a7a;
  --accent: #4da3ff;
  --accent-hover: #6eb4ff;
  --accent-muted: rgba(77, 163, 255, 0.15);
  --success: #3dd68c;
  --success-bg: rgba(61, 214, 140, 0.12);
  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, 0.1);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(77, 163, 255, 0.2);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(77, 163, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.06), transparent 45%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 23, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.brand:hover {
  color: var(--accent);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.topbar-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.topbar-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-user {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-logout:hover {
  border-color: var(--muted-dim);
  color: var(--text);
  background: var(--surface);
}

/* ——— Page shell ——— */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

.page-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
}

.page-lead {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42ch;
}

h2 {
  font-size: 0.8125rem;
  margin: 2rem 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}

.title-section {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.user-editor-card {
  border: 1px solid var(--border-subtle);
}

.user-editor-card .form-actions {
  margin-top: 1rem;
}

.label-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
  margin-top: 0.75rem;
  cursor: pointer;
}

.label-inline input {
  width: auto;
  max-width: none;
}

/* ——— Cards ——— */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--hero {
  padding: 1.75rem 1.75rem;
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border-color: rgba(77, 163, 255, 0.12);
}

/* ——— Auth & scan layouts ——— */
body.page-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-auth .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.page-auth .card {
  box-shadow: var(--shadow);
}

body.page-scan .container {
  max-width: 480px;
  padding-top: 2rem;
}

.scan-footer-link {
  margin-top: 1.25rem;
  text-align: center;
}

.scan-footer-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.scan-footer-promo {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
}

.scan-footer-promo a {
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.scan-footer-promo a:hover {
  text-decoration-thickness: 2px;
}

.scan-page.card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.scan-geo-panel {
  margin-top: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
}

body.page-scan .scan-geo-panel {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.scan-geo-toast {
  line-height: 1.45;
}

/* ——— Forms ——— */
label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

label:first-child,
.card > label:first-of-type {
  margin-top: 0;
}

input[type="text"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-dim);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted-dim);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

select {
  cursor: pointer;
  max-width: 420px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: #0a1628;
  transition: background var(--transition), transform 0.1s ease, box-shadow var(--transition);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-danger {
  background: var(--danger);
  color: #1a0505;
  box-shadow: none;
}

.btn-danger:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--muted-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn-ghost:hover {
  background: var(--accent-muted);
  color: var(--accent-hover);
}

/* ——— Alerts ——— */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-bg);
  border-color: rgba(61, 214, 140, 0.35);
  color: #b8f0d0;
}

.alert-error {
  background: var(--danger-bg);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffc9c9;
}

/* ——— Tables ——— */
.table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.2);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

td .btn,
td form {
  vertical-align: middle;
}

/* ——— Dashboard & link grid ——— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition), transform 0.15s ease;
}

.link-card:hover {
  border-color: rgba(77, 163, 255, 0.35);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.link-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ——— Scan result ——— */
.scan-grid {
  display: grid;
  gap: 0;
  text-align: left;
  margin-top: 0.5rem;
}

.scan-grid dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.85rem 0 0.2rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.scan-grid dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.scan-grid dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.security-phone {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0 0;
}

.security-phone a {
  color: inherit;
  text-decoration: none;
}

.security-phone a:hover {
  text-decoration: underline;
}

/* ——— Sticker print ——— */
.sticker-print {
  text-align: center;
  padding: 2rem 1.5rem;
}

.sticker-print .qr-wrap {
  margin: 1rem auto;
  padding: 0.75rem;
  display: inline-block;
  border-radius: var(--radius);
  background: #fff;
}

.sticker-print .qr-wrap img {
  display: block;
  vertical-align: middle;
}

/* High-res QR scaled down on screen; browser uses extra pixels when printing larger */
.sticker-print__qr {
  width: 280px;
  height: 280px;
  max-width: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.sticker-print__num {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  letter-spacing: 0.05em;
  color: var(--text);
}

.sticker-print__meta {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

/* ——— Misc ——— */
.muted {
  color: var(--muted);
}

code,
.code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.84em;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  color: var(--muted);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.25rem 0;
}

/* ——— Print ——— */
@media print {
  .no-print {
    display: none !important;
  }

  @page {
    margin: 12mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    background-image: none !important;
  }

  .topbar,
  .page-head {
    display: none !important;
  }

  .container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .sticker-print.card,
  .sticker-print {
    padding: 0.5rem 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sticker-print .qr-wrap {
    background: #fff !important;
    border: 2px solid #000 !important;
    padding: 6pt !important;
    border-radius: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sticker-print__qr {
    width: 46mm !important;
    height: 46mm !important;
    max-width: none !important;
    image-rendering: crisp-edges;
  }

  .sticker-print__num,
  .sticker-print__meta,
  .sticker-print .muted {
    color: #000 !important;
  }

  .sticker-print__num {
    font-size: 22pt !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    margin-top: 0.35rem !important;
  }

  .sticker-print__meta {
    font-size: 10pt !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 540px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    margin-left: 0;
    justify-content: space-between;
    width: 100%;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══ Marketing landing ═══ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0a1628;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #07090d;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(77, 163, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(99, 102, 241, 0.1), transparent 45%),
    radial-gradient(ellipse 40% 30% at 10% 30%, rgba(45, 212, 191, 0.06), transparent 40%);
}

.landing-main {
  flex: 1;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 9, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.landing-logo:hover {
  color: var(--accent);
}

.landing-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.landing-logo-mark--sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.6rem;
}

.landing-nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.landing-nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.landing-nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.landing-header-actions {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.landing-link-signin {
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.landing-link-signin:hover {
  color: var(--text);
}

.landing-btn-cta {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.25);
}

body[data-active-nav="register"] .landing-btn-cta {
  box-shadow: 0 0 0 2px rgba(77, 163, 255, 0.4), 0 0 24px rgba(77, 163, 255, 0.2);
}

.landing-menu-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.landing-menu-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.landing-mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 16, 22, 0.95);
  gap: 0.25rem;
}

.landing-mobile-menu[hidden] {
  display: none !important;
}

.landing-mobile-menu a {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.landing-mobile-menu a:hover {
  background: var(--surface);
}

@media (min-width: 880px) {
  .landing-nav-links,
  .landing-header-actions {
    display: flex;
  }

  .landing-menu-toggle {
    display: none;
  }

  .landing-mobile-menu {
    display: none !important;
  }
}

.landing-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.landing-container--narrow {
  max-width: 520px;
}

.landing-section {
  padding: 4.5rem 0;
}

.landing-section--tight {
  padding: 3rem 0 4rem;
}

.landing-section--alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.landing-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.landing-kicker--hero {
  margin-bottom: 1.25rem;
}

.landing-hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  background: radial-gradient(closest-side, rgba(77, 163, 255, 0.12), transparent);
  pointer-events: none;
}

.landing-hero-inner {
  position: relative;
}

.landing-hero-title {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.landing-gradient-text {
  background: linear-gradient(105deg, #7eb8ff 0%, #a78bfa 45%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.landing-hero-btn-primary {
  min-height: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.landing-hero-btn-secondary {
  min-height: 3rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.landing-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--muted-dim);
}

.landing-hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted-dim);
}

.landing-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.landing-hero-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.85;
}

.landing-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-section-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  text-align: center;
}

.landing-section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2.5rem;
  max-width: 42ch;
  font-size: 1.05rem;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.landing-feature {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform 0.2s ease;
}

.landing-feature:hover {
  border-color: rgba(77, 163, 255, 0.25);
  transform: translateY(-2px);
}

.landing-feature-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.landing-feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.landing-feature-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.landing-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.landing-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.landing-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.landing-step strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.landing-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.landing-cta {
  padding: 4rem 0 5rem;
}

.landing-cta-inner {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(77, 163, 255, 0.2);
  background: linear-gradient(160deg, rgba(77, 163, 255, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.landing-cta-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.landing-cta-text {
  margin: 0 auto 1.75rem;
  color: var(--muted);
  max-width: 40ch;
}

.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2rem;
  background: rgba(0, 0, 0, 0.35);
}

.landing-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.landing-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.landing-footer-links a:hover {
  color: var(--accent);
}

.landing-footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-dim);
}

/* Register / success */
.landing-page-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  text-align: center;
}

.landing-page-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 46ch;
  line-height: 1.6;
}

.landing-form-section-title {
  margin-top: 0;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.landing-form-card label:first-of-type {
  margin-top: 0;
}

.landing-form-submit {
  margin-top: 1.5rem;
}

.landing-btn-full {
  width: 100%;
  max-width: none;
}

.landing-success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 1.75rem;
  font-weight: 700;
  border: 1px solid rgba(61, 214, 140, 0.35);
}

.landing-cred-card {
  margin-bottom: 1.75rem;
}

.landing-cred-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.landing-cred-label:first-child {
  margin-top: 0;
}

.landing-cred-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.landing-cred-value {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  word-break: break-all;
  color: var(--text);
}

.landing-cred-value--secret {
  font-family: ui-monospace, monospace;
}

.landing-copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
}

.landing-done-actions {
  justify-content: center;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 480px) {
  .landing-done-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}
