/* SpecPeek Static Site — Modern Developer Dark Aesthetic (Linear / Raycast inspired) */
:root {
  --bg: #070b14;
  --bg-elevated: #0d1322;
  --bg-card: #101829;
  --bg-card-hover: #152036;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(640px 380px at 85% 60px, rgba(6, 182, 212, 0.12), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

code, pre {
  font-family: var(--font-mono);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: #162033;
  border-color: rgba(148, 163, 184, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #ffffff;
}

/* Badges & Pills */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 8px var(--emerald);
  display: inline-block;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-indigo {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.pill-rose {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.32);
}

.pill-neutral {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  margin: 20px auto 18px;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(125deg, #ffffff 10%, #a5b4fc 52%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-strip {
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--text-soft);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-check {
  color: var(--emerald-light);
  font-weight: 700;
}

/* Browser Showcase */
.showcase-wrap {
  margin: 44px auto 0;
  max-width: 1020px;
}

.browser-frame {
  background: #0b101d;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(99, 102, 241, 0.14);
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #0f172a;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.tl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tl-red { background: #ef4444; opacity: 0.78; }
.tl-yellow { background: #f59e0b; opacity: 0.78; }
.tl-green { background: #10b981; opacity: 0.78; }

.browser-url {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
  background: #090d16;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-perm-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 16px;
  background: #0c1220;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 12px 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* Bento Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, rgba(16, 24, 41, 0.94) 0%, rgba(11, 17, 30, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.card:hover {
  border-color: rgba(129, 140, 248, 0.34);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: #a5b4fc;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Code snippet inline */
.code-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-strong);
  color: #e2e8f0;
}

/* Comparison Table */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

table.compare-table th,
table.compare-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.compare-table thead th {
  background: rgba(15, 23, 42, 0.9);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

table.compare-table thead th.col-specpeek {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
}

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

table.compare-table td.col-specpeek {
  background: rgba(99, 102, 241, 0.05);
  color: #f8fafc;
  font-weight: 500;
}

table.compare-table td.col-label {
  font-weight: 600;
  color: var(--text-soft);
  width: 28%;
}

.good { color: var(--emerald-light); font-weight: 600; }
.warn { color: #fbbf24; }
.bad { color: #fb7185; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(22, 31, 56, 0.98) 0%, rgba(12, 18, 34, 0.98) 100%);
  border-color: rgba(129, 140, 248, 0.48);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.16);
}

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

.price-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-big {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-strike {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-note {
  font-size: 13px;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.check-icon {
  color: var(--emerald-light);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Legal & Comparison Subpages */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 16px;
}

.prose {
  padding: 40px 0 72px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p, .prose li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.72;
}

.prose ul, .prose ol {
  padding-left: 22px;
  margin: 12px 0 18px;
}

.prose li {
  margin-bottom: 8px;
}

.callout {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0 28px;
  color: #d1fae5;
}

.callout-indigo {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(129, 140, 248, 0.34);
  color: #e0e7ff;
}

.callout strong {
  color: #ffffff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  background: #060911;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.14s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 16px; }
  .hero { padding: 48px 0 36px; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2, .pricing-grid, .faq-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-cta .btn-ghost { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .browser-perm-tag { display: none; }
  table.compare-table th, table.compare-table td { padding: 12px 13px; font-size: 13px; }
}
