:root {
  --bg-page: #f2f2f0;
  --bg-card: #fcfcfb;
  --border-soft: #e7e7e4;
  --border-soften: #ececea;

  --text-strong: #18181b;
  --text-muted-strong: #a8a8ad;
  --text-body: #75757d;
  --text-nav: #6f6f76;

  --pill-bg: #f4f4f5;
  --pill-border: #e6e6e9;
  --pill-text: #3f3f46;

  --dot-color: #dcdcd9;

  --radius-sm: 7px;
  --radius-md: 14px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(20, 20, 20, 0.03), 0 12px 32px -16px rgba(20, 20, 20, 0.08);
  --shadow-btn: 0 1px 2px rgba(20, 20, 20, 0.04);
}

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

html, body {
  background: var(--bg-page);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-strong);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 120px;
}

/* ---------- Card wrapper (nav + hero share this) ---------- */

.navbar,
.hero {
  background: var(--bg-card);
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
}

.navbar {
  border-top: 1px solid var(--border-soft);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-soften);
}

.hero {
  border-bottom: 1px solid var(--border-soft);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ---------- Navbar ---------- */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: inline-flex;
  color: var(--text-strong);
}

.logo-text {
  color: var(--text-strong);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-nav);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-strong);
}

.nav-login {
  color: var(--text-strong);
  white-space: nowrap;
}

.btn-signup {
  background: var(--text-strong);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-btn);
  transition: opacity 0.15s ease;
}

.btn-signup:hover {
  opacity: 0.88;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 76px 24px 64px;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 52%, #000 95%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 52%, #000 95%);
  pointer-events: none;
}

.hero > *:not(.dot-grid) {
  position: relative;
  z-index: 1;
}

/* Badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  box-shadow: var(--shadow-btn);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.badge:hover {
  border-color: #d4d4d8;
  color: var(--text-strong);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff19;
  flex: none;
}

/* Title */

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-title span {
  display: block;
}

.hero-title-dark {
  color: var(--text-strong);
}

.hero-title-light {
  font-size: 2.625rem;
  letter-spacing: 0.001em;
  color: var(--text-muted-strong);
}

/* Subtitle */

.hero-subtitle {
  margin-top: 26px;
  max-width: 600px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
  font-weight: 400;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: var(--radius-full);
  padding: 2px 10px 2px 8px;
  margin: 0 1px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pill-text);
  vertical-align: middle;
  transform: translateY(-1px);
}

.pill-icon {
  flex: none;
  color: #8a8a93;
}

/* CTA buttons */

.cta-group {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--pill-text);
  box-shadow: var(--shadow-btn);
}

.btn-outline:hover {
  border-color: #d4d4d8;
}

.btn-primary {
  background: var(--text-strong);
  color: #ffffff;
  border: 1px solid var(--text-strong);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .page {
    padding: 16px 12px 80px;
  }

  .navbar {
    padding: 14px 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-link:not(.nav-login) {
    display: none;
  }

  .hero {
    padding: 56px 18px 0;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn {
    width: 100%;
  }
}

.page .page {
  display: contents;
}

/* Generic content card that continues the navbar's card look,
   for non-hero pages */
.content-card {
  background: var(--bg-card);
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px;
}


.key-links {
  align-items: center;
  display: flex;
  gap: 14px;
}

.key-link {
  font-size: 1rem!important;
  font-weight: 500;
  color: var(--text-nav);
  transition: color 0.15s ease;
}

.key-link:hover {
  color: var(--text-strong);
}

.key-link.active {
  color: #111;
  font-weight: 600;
  border-bottom: 2px solid #111;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  background: var(--bg-card);
}

.data-table thead th {
  background: #f7f7f6;
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.data-table thead th:first-child {
  border-top-left-radius: var(--radius-md);
}

.data-table thead th:last-child {
  border-top-right-radius: var(--radius-md);
}

.data-table tbody td {
  padding: 15px 16px;
  font-size: 0.94rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-soften);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: #fafaf9;
  color: var(--text-strong);
}

.data-table td:nth-child(1),
.data-table td:nth-child(4) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  color: var(--text-strong);
}

.data-table td:nth-child(2),
.data-table td:nth-child(7) {
  text-align: center;
  white-space: nowrap;
}

.cell-ellipsis {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .content-card {
    padding: 18px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 12px 14px;
  }
}

.data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) { width: 16%; }

.data-table th:nth-child(2),
.data-table td:nth-child(2) { width: 8%; }

.data-table th:nth-child(3),
.data-table td:nth-child(3) { width: 12%; }

.data-table th:nth-child(4),
.data-table td:nth-child(4) { width: 24%; }

.data-table th:nth-child(5),
.data-table td:nth-child(5) { width: 18%; }

.data-table th:nth-child(6),
.data-table td:nth-child(6) { width: 12%; }

.data-table th:nth-child(7),
.data-table td:nth-child(7) { width: 10%; }

.data-table tbody tr {
  cursor: pointer;
}

.data-table tbody tr:hover td {
  background: #f7f7f6;
}

.btn-blue {
  margin-top: 6px;
  padding: 6px 10px;
  background: #00bbff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-blue:hover {
  background: #00a8e6;
}

.btn-blue {
  width: fit-content;
  display: inline-block;
  padding: 6px 10px;
}
.data-table.stacked-table {
  min-width: auto;
  width: 100%;
}

.data-table.stacked-table thead {
  display: none;
}

.data-table.stacked-table tbody tr {
  display: block;
  margin: 8px 0 14px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
}

.data-table.stacked-table tbody td {
  display: block;
  width: 100%;
  padding: 8px 6px;
  border: none;
  white-space: normal;
  color: var(--text-body);
  text-align: left;
}

.data-table.stacked-table tbody td + td {
  border-top: 1px solid var(--border-soften);
}

.data-table.stacked-table tbody td::before {
  content: attr(data-label);
  display: block;
  font-weight: 700;
  color: var(--text-nav);
  margin-bottom: 6px;
  text-align: left;
}

.sub-note {
  margin-top: 8px;
  color: var(--text-body);
  font-size: 0.85rem;
}

.back-link {
  margin-top: 8px;
  color: var(--text-body);
  font-size: 0.65rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}


/* ---------- Validation modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  display: none;            /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.is-visible {
  display: flex;            /* shown when this class is added */
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 40px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-soft);
  border-top-color: #00bbff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.check-mark {
  width: 56px;
  height: 56px;
}

.check-mark svg {
  width: 100%;
  height: 100%;
}

.check-mark circle {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw-circle 0.5s ease forwards;
}

.check-mark path {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw-check 0.3s ease forwards 0.45s;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

#validation-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
}

#validation-close {
  margin-top: 4px;
}