/* AI Tool Tank — shared styles
   Distinctive dark: charcoal + amber accent, monospace ranks */

:root {
  --bg: #0c0e12;
  --bg-elevated: #141820;
  --bg-card: #181c26;
  --bg-card-hover: #1e2430;
  --border: #2a3140;
  --border-subtle: #222833;
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --text-dim: #6b7385;
  --accent: #f0a050;
  --accent-dim: #c47a2e;
  --accent-glow: rgba(240, 160, 80, 0.15);
  --rank-1: #f0a050;
  --rank-2: #7eb8d4;
  --rank-3: #9b8ec4;
  --success: #6bcb8a;
  --skip: #e07a7a;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 720px;
  --max-wide: 880px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(240, 160, 80, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(126, 184, 212, 0.05), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: #ffc078; text-decoration: underline; }

/* —— Layout —— */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.brand-mark {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.nav-links a { color: var(--text-muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

main.wide { max-width: var(--max-wide); }

/* —— Hero —— */
.hero {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-usecase {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-promise {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36em;
}

/* —— How we rank —— */
.how-we-rank {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 2.5rem;
}

.how-we-rank h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.how-we-rank p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* —— Rankings —— */
.rankings { display: flex; flex-direction: column; gap: 1.5rem; }

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tool-card:hover {
  border-color: #3a4255;
  background: var(--bg-card-hover);
}
.tool-card.rank-1 {
  border-color: rgba(240, 160, 80, 0.35);
  box-shadow: 0 0 0 1px rgba(240, 160, 80, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.tool-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.rank-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.rank-badge.r1 { background: var(--accent-glow); color: var(--rank-1); border: 1px solid var(--accent-dim); }
.rank-badge.r2 { background: rgba(126, 184, 212, 0.12); color: var(--rank-2); border: 1px solid #4a7a90; }
.rank-badge.r3 { background: rgba(155, 142, 196, 0.12); color: var(--rank-3); border: 1px solid #6a5f8a; }

.tool-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
}
.tool-name a { color: inherit; text-decoration: none; }
.tool-name a:hover { color: var(--accent); }

.verdict {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 560px) {
  .fit-grid { grid-template-columns: 1fr; }
}

.fit-box {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.fit-box h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fit-box.best h3 { color: var(--success); }
.fit-box.skip h3 { color: var(--skip); }
.fit-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 6px;
  border-left: 3px solid var(--border);
}

.worked {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
}
.worked h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.worked h3 span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.25rem;
}

.worked ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.worked li { margin-bottom: 0.4rem; }
.worked li:last-child { margin-bottom: 0; }
.worked code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--accent);
}

/* —— Home page —— */
.home-hero {
  text-align: left;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}
.home-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.home-hero .tagline {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 28em;
}
.home-hero .lede {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 36em;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.usecase-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.usecase-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.usecase-card:hover {
  border-color: rgba(240, 160, 80, 0.4);
  background: var(--bg-card-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.usecase-card.coming {
  opacity: 0.55;
  pointer-events: none;
  border-style: dashed;
}
.usecase-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.usecase-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill.live { background: rgba(107, 203, 138, 0.15); color: var(--success); }
.pill.soon { background: rgba(107, 115, 133, 0.2); color: var(--text-dim); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .principles { grid-template-columns: 1fr; }
}
.principle {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
}
.principle h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 650;
}
.principle p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— Footer —— */
.site-footer {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.cta-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.cta-banner p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}
.cta-banner strong { color: var(--text); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-meta a { color: var(--text-dim); }
.footer-meta a:hover { color: var(--accent); }

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

/* —— Newsletter signup —— */
.newsletter {
  margin: 2.5rem 0 1rem;
}
.newsletter h2:not(.section-label) {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}
.newsletter-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.newsletter-lede {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.newsletter-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.newsletter-form button {
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0c0e12;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.newsletter-form button:hover { background: #ffc078; }
.newsletter-form button:disabled { opacity: 0.6; cursor: wait; }
.newsletter-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.newsletter-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--text-dim);
}
.newsletter-status.ok { color: var(--success); }
.newsletter-status.err { color: var(--skip); }
