:root {
  --bg: #f5f7fa;
  --bg-strong: #e9eef5;
  --fg: #0f172a;
  --muted: #5b6b82;
  --accent: #1d4ed8;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --accent-strong: #0f3eb7;
  --card: rgba(255, 255, 255, 0.84);
  --border: rgba(203, 213, 225, 0.9);
  --border-strong: rgba(29, 78, 216, 0.28);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.11);
  --radius: 20px;
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111d;
    --bg-strong: #101a2b;
    --fg: #e2e8f0;
    --muted: #9db0c7;
    --accent: #7cb8ff;
    --accent-soft: rgba(124, 184, 255, 0.12);
    --accent-strong: #9fccff;
    --card: rgba(9, 17, 29, 0.84);
    --border: rgba(51, 65, 85, 0.92);
    --border-strong: rgba(124, 184, 255, 0.28);
    --shadow-sm: 0 8px 24px rgba(2, 6, 23, 0.32);
    --shadow-md: 0 16px 40px rgba(2, 6, 23, 0.48);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--fg);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-strong);
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 0.45rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.95em;
}

.site-header {
  padding: 20px 16px 10px;
}

.header-shell,
.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.92rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .top-nav a {
    background: rgba(9, 17, 29, 0.62);
  }
}

.page-shell {
  display: grid;
  gap: 18px;
  padding: 0 16px 28px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.hero-card {
  padding: 26px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.16rem;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.lede-list,
.icon-list,
.link-list,
.content-list,
.trust-list,
.code-list,
.faq-links {
  margin: 0;
  padding-left: 1.15rem;
}

.lede-list li,
.icon-list li,
.link-list li,
.content-list li,
.trust-list li,
.code-list li,
.faq-links li {
  margin: 0.55rem 0;
}

.chip-list,
.operator-grid,
.cta-grid,
.quick-links,
.utility-links {
  display: grid;
  gap: 12px;
}

.chip-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.chip-link,
.operator-card,
.cta-card,
.utility-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.chip-link {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (prefers-color-scheme: dark) {
  .chip-link {
    background: rgba(9, 17, 29, 0.7);
  }
}

.operator-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.operator-card,
.cta-card,
.utility-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (prefers-color-scheme: dark) {
  .operator-card,
  .cta-card,
  .utility-card {
    background: rgba(9, 17, 29, 0.7);
  }
}

.operator-card strong,
.cta-card strong,
.utility-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.operator-card span,
.cta-card span,
.utility-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quick-links {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tracker-card {
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(29, 78, 216, 0.08), transparent 70%),
    var(--card);
}

.tracker-card h2,
.tracker-card h3 {
  margin-bottom: 10px;
}

.tracker-form {
  display: grid;
  gap: 12px;
}

.tracker-label {
  display: block;
  font-weight: 700;
}

.tracker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tracker-input,
.bulk-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 1.05rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .tracker-input,
  .bulk-input {
    background: rgba(9, 17, 29, 0.94);
    color: var(--fg);
  }
}

.tracker-input:focus,
.bulk-input:focus,
.button:focus,
.ghost-button:focus,
.details-summary:focus {
  outline: 3px solid rgba(29, 78, 216, 0.2);
  outline-offset: 2px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22);
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost-button {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.5);
  color: var(--fg);
}

@media (prefers-color-scheme: dark) {
  .ghost-button {
    background: rgba(9, 17, 29, 0.6);
  }
}

.tracker-actions,
.share-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.results {
  display: grid;
  gap: 10px;
}

.result-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--fg);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  font-weight: 700;
  word-break: break-all;
}

.helper-text,
.muted {
  color: var(--muted);
}

.helper-text {
  font-size: 0.95rem;
  margin: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
}

.stack {
  display: grid;
  gap: 16px;
}

.info-box,
.note-box,
.table-wrap,
.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

@media (prefers-color-scheme: dark) {
  .info-box,
  .note-box,
  .table-wrap,
  .faq-item {
    background: rgba(9, 17, 29, 0.64);
  }
}

.info-box,
.note-box {
  padding: 18px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: rgba(29, 78, 216, 0.07);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.breadcrumbs a:hover {
  color: var(--accent);
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.page-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-column {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

@media (prefers-color-scheme: dark) {
  .link-column {
    background: rgba(9, 17, 29, 0.7);
  }
}

.link-column h3 {
  margin-bottom: 8px;
}

.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .inline-tags a {
    background: rgba(9, 17, 29, 0.7);
  }
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.details-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
}

.details-summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.trust-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

@media (prefers-color-scheme: dark) {
  .trust-card {
    background: rgba(9, 17, 29, 0.7);
  }
}

.trust-card strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer {
  padding: 8px 16px 28px;
}

.footer-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.footer-shell a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.scanner-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scanner-panel {
  width: min(100%, 560px);
  max-height: min(92vh, 820px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.35);
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scanner-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg);
}

.scanner-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.84);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.scanner-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 280px;
  max-height: 68vh;
  border-radius: 20px;
  background: #000;
}

.scanner-overlay {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.scanner-frame video,
.scanner-frame canvas,
.scanner-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scanner-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .scanner-panel {
    background: rgba(9, 17, 29, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
  }

  .scanner-close {
    background: rgba(15, 23, 42, 0.92);
    color: var(--fg);
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 16px;
  }

  .hero-layout > .tracker-card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 14px;
    position: sticky;
    top: 0;
    z-index: 25;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(245, 247, 250, 0.92), rgba(245, 247, 250, 0.74));
  }

  .header-shell {
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card,
  .hero-card {
    padding: 20px;
  }

  .tracker-row {
    grid-template-columns: 1fr;
  }

  .button,
  .ghost-button {
    width: 100%;
  }

  .tracker-actions,
  .share-row,
  .button-row {
    display: grid;
  }

  .scanner-shell {
    padding: 10px;
  }

  .scanner-panel {
    width: 100%;
    max-height: 100dvh;
    padding: 12px;
    border-radius: 18px;
  }

  .scanner-frame {
    aspect-ratio: 9 / 14;
    min-height: 240px;
    max-height: calc(100dvh - 180px);
  }

  .scanner-close {
    min-width: 52px;
    min-height: 52px;
  }
}

@media (max-width: 640px) and (prefers-color-scheme: dark) {
  .site-header {
    background: linear-gradient(180deg, rgba(9, 17, 29, 0.94), rgba(9, 17, 29, 0.78));
  }
}
