:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #8b9bb4;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--text);
}

/* Main */
main {
  flex: 1;
  padding: 2.5rem 0;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
  margin: 0 0.35rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.card ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.card li {
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}

.card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Scan page */
.scan-header {
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.scan-header h1 {
  font-size: 1.6rem;
  margin-right: auto;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  width: 100%;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th {
  background: var(--surface);
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.results-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

.results-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.symbol {
  font-weight: 700;
  color: var(--accent);
}

.sl {
  color: var(--danger);
}

.target {
  color: var(--success);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  nav a {
    margin-left: 0.9rem;
    font-size: 0.85rem;
  }
}

.legal-page { max-width: 720px; margin: 0 auto; padding-bottom: 2rem; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 0.35rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; color: var(--accent); }
.legal-page p, .legal-page li { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.legal-page ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.legal-page a { color: var(--accent); }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.how-it-works { margin-top: 2.5rem; }
.how-it-works h2 { margin-bottom: 1rem; }
.how-it-works ol { color: var(--muted); padding-left: 1.25rem; line-height: 1.8; }
.disclaimer-box { margin-top: 2.5rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.disclaimer-box h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.disclaimer-box p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.75rem; }
.disclaimer-box a { color: var(--accent); }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
