/* ENIGMA Axiom — matches the enigma.ist template (dark, purple accent,
 * DM Sans + Instrument Serif + JetBrains Mono). */
:root {
  --bg-deep: #060608;
  --bg-card: #0b0b12;
  --bg-elevated: #101018;
  --border: #18182a;
  --border-glow: #2d1f6e;
  --text-primary: #eeeef0;
  --text-secondary: #cccccc;
  --text-muted: #b8b8d0;
  --accent: #7c6fe0;
  --accent-bright: #a78bfa;
  --accent-dim: #4c3d99;
  --teal: #34d399;
  --gold: #c9a84c;
}

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

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

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

/* Background flourishes (same as enigma.ist) */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 111, 224, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 111, 224, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(180px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  top: -250px;
  left: -150px;
  width: 700px;
  height: 700px;
  background: var(--accent);
  opacity: 0.07;
}
.bg-glow-2 {
  bottom: -350px;
  right: -250px;
  width: 700px;
  height: 700px;
  background: #1a2e4a;
  opacity: 0.1;
}

main,
nav,
.footer {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-bright);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  background: rgba(124, 111, 224, 0.08);
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(24, 24, 42, 0.6);
}
.logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--text-primary);
}
.logo:hover {
  text-decoration: none;
}
.logo span {
  color: var(--accent-bright);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 90px 24px 90px;
  max-width: 880px;
  margin: 0 auto;
}
.hero .kicker {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--accent-bright);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 64px;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero .sub {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 18px;
  color: var(--text-muted);
}
.hero .sub strong {
  color: var(--gold);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Live feed */
.feed {
  max-width: 760px;
  padding-top: 0;
  padding-bottom: 36px;
}
.feed-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: feed-pulse 2s infinite;
}
@keyframes feed-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}
.feed-list {
  list-style: none;
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg-card);
  font-size: 14px;
}
.feed-ic {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
}
.feed-true .feed-ic {
  color: var(--teal);
}
.feed-false .feed-ic {
  color: #f87171;
}
.feed-uncertain .feed-ic {
  color: #fbbf24;
}
.feed-mid {
  flex: 1;
  min-width: 0;
}
.feed-label {
  color: var(--text-secondary);
}
.feed-paper {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-time {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
}
.feed-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 10px 0;
}

/* Sections */
section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px;
}
section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Try-box */
.try-help {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 22px;
}
#claim {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
#claim::placeholder {
  color: #6a6a82;
}
#claim:focus {
  outline: none;
  border-color: var(--accent);
}
.try-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.quota {
  font-size: 13px;
  color: var(--text-muted);
}
.result {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--bg-card);
}
.verdict {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.verdict.true {
  background: #064e3b;
  color: #6ee7b7;
}
.verdict.false {
  background: #7f1d1d;
  color: #fca5a5;
}
.verdict.uncertain {
  background: #78350f;
  color: #fde68a;
}
.verdict.not_applicable {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.result .explanation {
  margin-bottom: 14px;
  color: var(--text-secondary);
}
.cite-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cite-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--bg-elevated);
}
.cite-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.cite-status.ok {
  color: var(--teal);
  font-weight: 700;
}
.cite-status.bad {
  color: #f87171;
  font-weight: 700;
}
.cite-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  background: rgba(124, 111, 224, 0.15);
  color: var(--accent-bright);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-all;
}
.cite-source {
  font-size: 12px;
  color: var(--text-muted);
}
.cite-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.cite-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.cite-full {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.cite-full-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cite-full-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.cite-copy {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.cite-copy:hover {
  border-color: var(--accent-dim);
}
.cite-full-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}
.cite-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
}
.result-error {
  color: #fca5a5;
}
.result-cta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

/* Provenance: algorithm vs AI */
.methods {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.methods-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.method-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}
.method-tag {
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
}
.method-algo .method-tag {
  background: #164e63;
  color: #a5f3fc;
}
.method-ai .method-tag {
  background: var(--accent-dim);
  color: #ddd6fe;
}
.method-off .method-tag {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.method-desc {
  color: var(--text-secondary);
}
.method-off .method-desc {
  color: var(--text-muted);
}

/* How */
.how {
  max-width: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(124, 111, 224, 0.15);
  color: var(--accent-bright);
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  margin-bottom: 10px;
}
.step h3 {
  margin: 4px 0 6px;
  color: var(--text-primary);
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Pricing */
.pricing-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}
.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(124, 111, 224, 0.15);
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}
.tier h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
}
.price {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 44px;
  font-weight: 400;
}
.price span {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.tier-limit {
  color: var(--accent-bright);
  font-weight: 600;
  margin: 4px 0 16px;
}
.tier ul {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
}
.tier li {
  padding: 5px 0 5px 22px;
  position: relative;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.tier .btn {
  width: 100%;
}
.pricing-foot {
  text-align: center;
  margin-top: 26px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 40px 24px;
}
.footer-brand {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.footer-brand span {
  color: var(--accent-bright);
  font-size: 0.62rem;
  letter-spacing: 2px;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Legal pages */
.legal {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.legal h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  margin-bottom: 6px;
}
.legal h2 {
  font-size: 20px;
  margin: 28px 0 8px;
  color: var(--text-primary);
}
.legal p,
.legal li {
  color: var(--text-muted);
}
.legal .updated {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 14px;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 44px;
  }
  .steps,
  .tiers {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 1rem 1.2rem;
  }
  .nav-links {
    gap: 1rem;
    font-size: 13px;
  }
}
