/* ========================================
   Aletheia Strategic - Marketing Site
   ======================================== */

:root {
  --bg-base: #08090a;
  --bg-surface: #111318;
  --bg-elevated: #1b1f27;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-muted: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #f4f4f5;
  --text-secondary: rgba(244, 244, 245, 0.65);
  --text-muted: rgba(244, 244, 245, 0.40);
  --accent: #00c4ff;
  --accent-hover: #38d9ff;
  --accent-glow: rgba(0, 196, 255, 0.35);
  --accent-soft: rgba(0, 196, 255, 0.08);
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.40);
  --green: #22c55e;
  --warning: #f59e0b;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --max-width: 72rem;
  --radius: 16px;
  --radius-sm: 8px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-base);
  box-shadow:
    0 0 0 1px rgba(0, 196, 255, 0.4),
    0 0 20px 4px rgba(0, 196, 255, 0.25),
    0 0 60px 8px rgba(0, 196, 255, 0.08);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 20px rgba(0, 196, 255, 0.1);
}

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.nav-brand:hover { color: var(--accent); }
.nav-logo { width: 50px; height: 50px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Dot grid background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.10) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 30%, transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 30%, transparent 100%
  );
  z-index: 0;
}

/* Aurora mesh gradient */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 25% 15%, rgba(124, 58, 237, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 75% 20%, rgba(0, 196, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 85%, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes aurora-drift {
  0%   { opacity: 1; transform: scale(1) translate(0, 0); }
  33%  { opacity: 0.8; transform: scale(1.05) translate(2%, -1%); }
  66%  { opacity: 1; transform: scale(0.98) translate(-1%, 2%); }
  100% { opacity: 0.9; transform: scale(1.03) translate(1%, -2%); }
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 196, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 50rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    160deg,
    #f4f4f5 0%,
    rgba(244, 244, 245, 0.80) 50%,
    rgba(0, 196, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section Headings ---- */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 1rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.75rem;
}

/* ---- Problem ---- */
.problem {
  padding: 6rem 0;
  position: relative;
}
.problem h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.problem-card:hover {
  border-color: var(--border-muted);
  transform: translateY(-2px);
}
.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}
.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- How It Works ---- */
.how-it-works {
  padding: 6rem 0;
}
.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}
.step { text-align: center; }
.step-num {
  width: 3.5rem;
  height: 3.5rem;
  line-height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 30px rgba(0, 196, 255, 0.2), 0 0 60px rgba(124, 58, 237, 0.1);
}
.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Features ---- */
.features {
  padding: 6rem 0;
}
.features h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.35s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 196, 255, 0.12),
    0 0 40px rgba(0, 196, 255, 0.05);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
  z-index: -1;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 196, 255, 0.2);
}
.feature-card:hover::after {
  opacity: 1;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Comparison Table ---- */
.comparison {
  padding: 6rem 0;
}
.comparison h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
.highlight-row {
  background: linear-gradient(90deg, rgba(0, 196, 255, 0.06), rgba(124, 58, 237, 0.06));
}
.highlight-row td {
  color: var(--text-primary);
  font-weight: 500;
}

/* ---- Pricing ---- */
.pricing-preview, .pricing-page {
  padding: 6rem 0;
}
.pricing-preview h2, .pricing-page h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
}
.all-tiers-note {
  margin-bottom: 3rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.35s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-muted);
}
.pricing-card.featured {
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(135deg, rgba(0, 196, 255, 0.5), rgba(124, 58, 237, 0.5)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 40px rgba(0, 196, 255, 0.08),
    0 0 80px rgba(124, 58, 237, 0.05);
}
.pricing-card.featured:hover {
  box-shadow:
    0 0 40px rgba(0, 196, 255, 0.15),
    0 0 80px rgba(124, 58, 237, 0.10);
}
.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-card ul {
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.pricing-card li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card .btn { width: 100%; text-align: center; }
.price-original {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.15rem;
}
.pricing-card.beta-highlight {
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(96, 165, 250, 0.5)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 40px rgba(56, 189, 248, 0.08),
    0 0 80px rgba(96, 165, 250, 0.05);
}
.pricing-card.beta-highlight:hover {
  box-shadow:
    0 0 40px rgba(56, 189, 248, 0.15),
    0 0 80px rgba(96, 165, 250, 0.10);
}
.beta-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(96, 165, 250, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.btn-coming-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: default;
  border: 1px solid var(--border-subtle);
}
.early-adopter-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(0, 196, 255, 0.3);
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.msp-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.highlight-feature {
  color: var(--accent) !important;
  font-weight: 500;
}
.early-adopter-blurb {
  text-align: center;
  max-width: 40rem;
  margin: -1.5rem auto 3rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(0, 196, 255, 0.25);
  border-radius: var(--radius);
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.pricing-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Device Intel Section ---- */
.device-intel-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}
.di-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
}
.di-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.di-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.di-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- CTA ---- */
.cta {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(0, 196, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ---- FAQ ---- */
.faq { padding: 3rem 0 6rem; }
.faq h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}
.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Features Page ---- */
.features-page {
  padding: 6rem 0;
}
.features-page h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.features-page .table-wrap {
  max-width: 56rem;
  margin: 0 auto;
}
.features-page .table-section-header {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}
.features-page .check {
  color: #22c55e;
  font-size: 1.1rem;
  text-align: center;
}
.features-page .dash {
  color: var(--text-muted);
  text-align: center;
}
.features-page .sub-note {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}
.features-page td:not(:first-child),
.features-page th:not(:first-child) {
  text-align: center;
  width: 10%;
}
.features-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ---- Section Dividers ---- */
.problem, .how-it-works, .features, .comparison, .pricing-preview, .pricing-page, .features-page, .downloads-page, .cta {
  border-top: 1px solid var(--border-subtle);
}

/* ---- Docs ---- */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
}
.docs-sidebar ul { position: sticky; top: 5rem; }
.docs-sidebar a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: all 0.2s;
}
.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--text-primary);
  border-left-color: var(--accent);
}
.docs-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.docs-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.docs-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.docs-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.docs-content code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.docs-content pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.docs-content pre code {
  background: none;
  padding: 0;
}
.docs-content ul, .docs-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.docs-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  list-style: disc;
}
.docs-content ol li { list-style: decimal; }
.docs-content table {
  width: 100%;
  margin-bottom: 1.5rem;
}

/* ---- Blog (kept minimal for future use) ---- */
.blog-list { padding: 3rem 0 5rem; }
.blog-list h1 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.blog-entry { border-bottom: 1px solid var(--border-subtle); padding: 2rem 0; }
.blog-entry h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.blog-entry h2 a { color: var(--text-primary); }
.blog-entry h2 a:hover { color: var(--accent); }
.blog-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.blog-excerpt { color: var(--text-secondary); font-size: 0.95rem; }
.blog-post { padding: 3rem 0 5rem; max-width: 48rem; margin: 0 auto; }
.blog-post h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-post .blog-date { margin-bottom: 2rem; }
.blog-post p { margin-bottom: 1rem; color: var(--text-secondary); }
.blog-post h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.blog-post ul, .blog-post ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-post li { list-style: disc; margin-bottom: 0.5rem; color: var(--text-secondary); }
.blog-post code { font-family: var(--font-mono); background: rgba(255,255,255,0.06); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; }
.blog-post pre { background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 1.5rem; overflow-x: auto; margin-bottom: 1.5rem; }
.blog-post pre code { background: none; padding: 0; }

/* ---- Downloads ---- */
.downloads-page {
  padding: 6rem 0;
}
.downloads-page h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.downloads-current {
  text-align: center;
  margin-bottom: 3rem;
}
.version-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 196, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}
.version-badge strong {
  color: var(--accent);
}
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.download-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.35s ease;
}
.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-muted);
}
.download-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.download-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.download-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.download-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.download-meta span {
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-mono);
}
.download-code {
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  overflow-x: auto;
}
.download-code code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  white-space: pre-wrap;
  word-break: break-all;
}
.download-card .btn {
  text-align: center;
}
.download-hash {
  margin-top: 0.75rem;
  font-size: 0.75rem;
}
.download-hash code {
  font-family: var(--font-mono);
  color: var(--text-muted);
  word-break: break-all;
}
.hash-pending {
  font-style: italic;
}
.download-card-soon {
  opacity: 0.55;
  pointer-events: none;
}
.badge-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.25);
  border-radius: 100px;
  color: #ffc400;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Downloads requirements */
.downloads-requirements {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 3rem;
}
.downloads-requirements h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.requirement {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.requirement strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.requirement span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Downloads release notes */
.downloads-notes h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.release-entry {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
}
.release-version {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.release-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}
.release-entry ul {
  padding-left: 1.25rem;
}
.release-entry li {
  list-style: disc;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Legal ---- */
.legal-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.legal-nav a:hover { color: var(--accent); }

/* ---- Page Header ---- */
.page-header { padding: 3rem 0 1rem; }
.page-header h1 { font-size: 2rem; font-weight: 700; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Noise Texture Overlay ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 5rem 0 4rem; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 22rem; }
  .di-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 2rem; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Products ---- */

.products-hero { padding: 5rem 0 3rem; text-align: center; }
.products-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.products-hero .hero-sub { max-width: 40rem; margin: 1rem auto 0; color: var(--text-secondary); }

.products-grid { padding: 0 0 5rem; }
.products-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  color: inherit;
}
.product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, rgba(0, 196, 255, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.product-card-image img { width: 100%; max-width: 200px; height: auto; }
.product-card-body { padding: 1.5rem; }
.product-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.product-card-header h2 { font-size: 1.25rem; font-weight: 700; }
.product-card-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.product-card-soon {
  border-style: dashed;
  opacity: 0.5;
  cursor: default;
}
.product-card-soon:hover { border-color: var(--border-subtle); box-shadow: none; }

.product-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 196, 255, 0.2);
}

/* ---- Product Detail ---- */

.product-hero { padding: 4rem 0 3rem; }
.product-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.product-hero-logo {
  width: 140px;
  height: auto;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.product-hero-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.product-hero-name h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-hero-tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-content { padding: 3rem 0; }
.product-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.product-content h2:first-child { margin-top: 0; }
.product-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 48rem;
}
.product-content strong { color: var(--text-primary); }

.integrations { padding: 3rem 0; }
.integrations h2 { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; }
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.integration-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.integration-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.integration-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 768px) {
  .product-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .product-hero-logo { width: 100px; height: auto; }
  .product-hero-name { justify-content: center; }
  .products-grid .container { grid-template-columns: 1fr; }
}

/* ---- Changelog ---- */
.changelog-page {
  padding: 6rem 0;
  border-top: 1px solid var(--border-subtle);
}
.changelog-page > .container > h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.changelog-entries {
  max-width: 48rem;
  margin: 3rem auto 0;
}
.changelog-entry {
  position: relative;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}
.changelog-entry:first-child {
  border-top: none;
}
.changelog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.changelog-version {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 196, 255, 0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-mono);
}
.changelog-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.changelog-body h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.changelog-body h3:first-child {
  margin-top: 0;
}
.changelog-body ul {
  margin-left: 1.25rem;
  list-style: disc;
}
.changelog-body li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.changelog-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

/* Heading anchor links */
.heading-anchor {
  opacity: 0;
  margin-left: 0.3em;
  font-size: 0.8em;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: opacity 0.15s;
}
h1:hover .heading-anchor,
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor {
  opacity: 1;
}
.heading-anchor:hover {
  color: var(--accent);
}
