/* ============================================================
   BuildersAlpha — shared stylesheet for inner pages
   Design tokens, nav and footer match the home page exactly.
   ============================================================ */

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

:root {
  --black: #080808;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --surface-3: #1e1e1e;
  --border: rgba(255,255,255,0.07);
  --border-med: rgba(255,255,255,0.12);
  --white: #ffffff;
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-08: rgba(255,255,255,0.08);
  --accent: #5b7fff;
  --accent-soft: rgba(91,127,255,0.15);
  --accent-glow: rgba(91,127,255,0.08);
  --green: #22c55e;
  --green-soft: rgba(34,197,94,0.12);
  --amber: #f59e0b;
  --red: #ef4444;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.5), 0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }
body {
  background: var(--black); color: var(--white);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(8,8,8,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--white);
  text-decoration: none;
}
.nav-logo-mark {
  width: 28px; height: 28px; background: var(--accent);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 14px; height: 14px; fill: white; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; color: var(--white-60); text-decoration: none;
  transition: color 0.2s; letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-ghost {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--white-60); background: transparent; border: none; cursor: pointer;
  transition: color 0.2s; letter-spacing: -0.01em; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-ghost:hover { color: var(--white); }
.btn-primary {
  padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--white); background: var(--accent); border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s; letter-spacing: -0.01em;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── SHARED PRIMITIVES ── */
.section-eyebrow {
  font-size: 12px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.section-h2 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 20px; color: var(--white);
}
.section-h2 em { font-family: var(--font-serif); font-style: italic; color: var(--white-60); }
.section-body { font-size: 17px; color: var(--white-60); line-height: 1.7; max-width: 520px; letter-spacing: -0.01em; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.btn-hero-primary {
  padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: white; background: var(--accent); border: none; cursor: pointer;
  letter-spacing: -0.01em; transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 0 0 1px rgba(91,127,255,0.5), 0 8px 32px rgba(91,127,255,0.3);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-hero-secondary {
  padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--white-60); background: transparent;
  border: 1px solid var(--border-med); cursor: pointer;
  letter-spacing: -0.01em; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-hero-secondary:hover { color: var(--white); border-color: var(--white-20); }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; overflow: hidden;
  padding: 168px 24px 72px; text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(91,127,255,0.12) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 70%);
}
.page-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.breadcrumb { font-size: 12px; color: var(--white-40); margin-bottom: 22px; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--white-40); text-decoration: none; }
.breadcrumb a:hover { color: var(--white-60); }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border-med); background: var(--white-08);
  font-size: 12px; font-weight: 500; color: var(--white-60);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px;
}
.page-eyebrow span { color: var(--accent); }
.page-h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 600; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-h1 em { font-style: italic; font-family: var(--font-serif); -webkit-text-fill-color: var(--white-60); }
.page-lead { font-size: clamp(16px, 2vw, 19px); color: var(--white-60); max-width: 600px; margin: 0 auto 36px; line-height: 1.65; letter-spacing: -0.01em; }
.page-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── CONTENT WRAP ── */
.page-section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.page-section.narrow { max-width: 760px; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .section-eyebrow { text-align: center; }

/* ── FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-med); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--white-60); line-height: 1.65; }

/* ── SPLIT ROW ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 72px; }
.split h2 { font-size: clamp(26px,3vw,36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.split p { color: var(--white-60); line-height: 1.7; font-size: 16px; margin-bottom: 14px; }
.split-visual {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-height: 280px; box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 14px;
}

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.check-list li { display: flex; gap: 12px; font-size: 15px; color: var(--white-60); line-height: 1.6; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── INFO TABLE (SLA etc.) ── */
.info-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 16px 20px; font-size: 14px; border-bottom: 1px solid var(--border); }
.info-table th { background: var(--surface-2); color: var(--white-60); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }
.info-table td { color: var(--white-60); }
.info-table tr:last-child td { border-bottom: none; }
.info-table td strong { color: var(--white); font-weight: 600; }

/* ── BLOG ── */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--border-med); transform: translateY(-2px); }
.post-tag { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.post-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--white); }
.post-card p { font-size: 14px; color: var(--white-60); line-height: 1.6; }
.post-meta { font-size: 12px; color: var(--white-40); margin-top: auto; }

/* ── CAREERS ── */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-decoration: none; transition: border-color 0.2s; flex-wrap: wrap;
}
.job-card:hover { border-color: var(--border-med); }
.job-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--white); margin-bottom: 4px; }
.job-meta { font-size: 13px; color: var(--white-40); }
.job-apply { font-size: 13px; color: var(--accent); font-weight: 500; white-space: nowrap; }

/* ── PROSE (legal / about) ── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 14px; color: var(--white); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; color: var(--white); }
.prose p { color: var(--white-60); line-height: 1.75; margin-bottom: 16px; font-size: 15px; }
.prose ul { color: var(--white-60); line-height: 1.75; margin: 0 0 16px 20px; font-size: 15px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .meta { font-size: 13px; color: var(--white-40); margin-bottom: 36px; }

/* ── STAT ROW ── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(180deg,#fff,rgba(255,255,255,0.7)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { font-size: 13px; color: var(--white-40); margin-top: 6px; }

/* ── CTA BAND ── */
.cta-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.cta-band-inner { max-width: 720px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.cta-band h2 { font-size: clamp(28px,4vw,44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.cta-band p { color: var(--white-60); font-size: 16px; max-width: 480px; margin: 0 auto 28px; line-height: 1.6; }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--black); border-top: 1px solid var(--border); padding: 64px 40px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; color: var(--white-40); line-height: 1.7; margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--white-40); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--white-40); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white-60); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: var(--white-40); }
.footer-soc { font-size: 12px; color: var(--white-40); display: flex; align-items: center; gap: 6px; }
.soc-badge { padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 10px; font-weight: 600; color: var(--white-40); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .feature-grid, .feature-grid.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .post-list { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  footer { padding: 48px 20px 32px; }
  .page-section { padding: 56px 20px; }
}

/* ── ARTICLE (blog post) ── */
.article { max-width: 760px; margin: 0 auto; padding: 140px 24px 64px; }
.article-tag { display:inline-block; font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:0.06em; font-weight:600; margin-bottom:18px; border:1px solid var(--accent-soft); background:var(--accent-glow); padding:4px 11px; border-radius:20px; }
.article-title { font-size: clamp(30px,4.5vw,46px); font-weight:600; letter-spacing:-0.035em; line-height:1.12; margin-bottom:18px; background:linear-gradient(180deg,#fff,rgba(255,255,255,0.78)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.article-meta { font-size:13px; color:var(--white-40); margin-bottom:40px; display:flex; gap:14px; align-items:center; flex-wrap:wrap; border-bottom:1px solid var(--border); padding-bottom:26px; }
.article-meta .dot { color:var(--white-20); }
.article .prose { max-width:none; }
.article .prose h2 { font-size:24px; margin-top:42px; }
.article .prose h3 { font-size:18px; }
.back-link { display:inline-flex; align-items:center; gap:8px; margin-top:52px; font-size:14px; color:var(--white-60); text-decoration:none; transition:color 0.2s; }
.back-link:hover { color:var(--white); }

/* ── BLOG INDEX header ── */
.blog-head { max-width:760px; margin:0 auto; padding:148px 24px 8px; text-align:center; }
.blog-head .page-eyebrow { margin-bottom:22px; }
.post-card .read { font-size:12px; color:var(--white-40); }

/* ── COMPARISON pages ── */
.compare-table { width:100%; border-collapse:collapse; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.compare-table th, .compare-table td { text-align:left; padding:16px 18px; font-size:14px; border-bottom:1px solid var(--border); vertical-align:top; }
.compare-table thead th { background:var(--surface-2); font-size:12px; text-transform:uppercase; letter-spacing:0.05em; color:var(--white-60); font-weight:600; }
.compare-table thead th.ba { color:var(--accent); }
.compare-table td:first-child, .compare-table th:first-child { color:var(--white-40); font-weight:500; width:26%; }
.compare-table td.ba { background:var(--accent-glow); color:var(--white); border-left:1px solid var(--accent-soft); border-right:1px solid var(--accent-soft); }
.compare-table tr:last-child td { border-bottom:none; }
.compare-table td { color:var(--white-60); }
.compare-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.compare-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; text-decoration:none; transition:border-color 0.2s, transform 0.2s; display:block; }
.compare-card:hover { border-color:var(--border-med); transform:translateY(-2px); }
.compare-card .vs { font-size:12px; color:var(--accent); font-weight:600; letter-spacing:0.04em; }
.compare-card h3 { font-size:18px; font-weight:600; letter-spacing:-0.02em; margin:8px 0 8px; color:var(--white); }
.compare-card p { font-size:13px; color:var(--white-60); line-height:1.6; }
@media (max-width:900px){ .compare-cards { grid-template-columns:1fr; } .compare-table th, .compare-table td { padding:12px 12px; font-size:13px; } }

/* ── TRUST / LEGAL pages ── */
.badge-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:8px; }
.trust-badge { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; text-align:center; }
.trust-badge .ic { width:38px; height:38px; border-radius:10px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:17px; margin:0 auto 12px; }
.trust-badge h4 { font-size:14px; font-weight:600; margin-bottom:4px; }
.trust-badge p { font-size:12px; color:var(--white-40); line-height:1.5; }
.toc { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px 26px; margin-bottom:40px; }
.toc h4 { font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:var(--white-40); margin-bottom:14px; }
.toc-links { display:grid; grid-template-columns:repeat(3,1fr); gap:8px 24px; }
.toc-links a { font-size:13px; color:var(--white-60); text-decoration:none; }
.toc-links a:hover { color:var(--accent); }
.legal-meta { display:flex; gap:18px; flex-wrap:wrap; font-size:13px; color:var(--white-40); margin-bottom:36px; padding-bottom:24px; border-bottom:1px solid var(--border); }
.filter-bar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.filter-chip { font-size:13px; padding:7px 14px; border-radius:20px; border:1px solid var(--border-med); background:transparent; color:var(--white-60); cursor:pointer; transition:all 0.15s; }
.filter-chip:hover { color:var(--white); border-color:var(--white-20); }
.filter-chip.active { background:var(--accent-soft); border-color:var(--accent-soft); color:var(--accent); }
@media (max-width:900px){ .badge-grid { grid-template-columns:1fr 1fr; } .toc-links { grid-template-columns:1fr 1fr; } }
