/* BuildLedger Pro — marketing site styles */

:root {
  --navy-950: #0a1628;
  --navy-900: #0f1f38;
  --navy-800: #16294a;
  --navy-700: #1e3a5f;
  --navy-600: #2a4d78;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --success: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 24px 48px -16px rgba(10, 22, 40, 0.25);

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.section {
  padding: 100px 0;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 16px 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--slate-500);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: var(--navy-950);
  box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(245, 158, 11, 0.6); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn-outline {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--slate-900);
}
.btn-outline:hover { border-color: var(--slate-300); background: var(--slate-50); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--white);
}

.brand .logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-brand .brand .logo-img {
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Page header (non-home pages) */
.page-header {
  padding: 168px 0 64px;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.page-header h1 { color: var(--white); font-size: clamp(32px, 5vw, 46px); }
.page-header p { color: rgba(255,255,255,0.72); margin-top: 14px; font-size: 16px; }

/* Hero */
.hero {
  position: relative;
  padding: 168px 0 120px;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(59, 130, 246, 0.35), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(245, 158, 11, 0.18), transparent 55%),
              linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 56px);
  margin: 20px 0 20px;
}

.hero-copy .highlight {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
}
.hero-stats .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* Hero visual: mock dashboard card */
.hero-visual { position: relative; }

.mock-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.mock-card .mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mock-card .mock-head .dots { display: flex; gap: 6px; }
.mock-card .mock-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.mock-card .mock-head .title { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 600; }

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mock-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.mock-stat .k { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; }
.mock-stat .v { font-size: 17px; font-weight: 700; color: var(--white); margin-top: 4px; }
.mock-stat .v.up { color: #4ade80; }

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.mock-bars .bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-500));
}
.mock-bars .bar.amber { background: linear-gradient(180deg, var(--amber-400), var(--amber-500)); }

.mock-list { display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.mock-row .icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(96, 165, 250, 0.18);
  flex-shrink: 0;
}
.mock-row .icon svg { width: 14px; height: 14px; stroke: var(--blue-400); }
.mock-row .lines { flex: 1; }
.mock-row .l1 { width: 60%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.28); margin-bottom: 6px; }
.mock-row .l2 { width: 38%; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.mock-row .badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--radius-full); background: rgba(74, 222, 128, 0.16); color: #4ade80; }

.float-chip {
  position: absolute;
  background: var(--white);
  color: var(--slate-900);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.float-chip.chip-1 { top: -18px; right: 18px; }
.float-chip.chip-2 { bottom: -20px; left: -20px; }
.float-chip .chip-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.12);
}
.float-chip .chip-icon svg { width: 15px; height: 15px; stroke: var(--success); }

/* Feature grid */
.features { background: var(--slate-50); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-icon.blue { background: rgba(59, 130, 246, 0.1); }
.feature-icon.blue svg { stroke: var(--blue-500); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.12); }
.feature-icon.amber svg { stroke: var(--amber-500); }
.feature-icon.green { background: rgba(16, 185, 129, 0.1); }
.feature-icon.green svg { stroke: var(--success); }

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--slate-500);
  font-size: 14.5px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding: 28px 26px;
}
.step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--amber-400);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--slate-500); font-size: 14.5px; }

/* Split section (workspace / roles) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-500);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.split h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 16px; }
.split p.lead { color: var(--slate-500); font-size: 16px; margin-bottom: 24px; }

.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  font-size: 15px;
  color: var(--slate-700);
}
.check-list .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.check-list .check svg { width: 12px; height: 12px; stroke: var(--success); }

.panel-card {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.panel-card .panel-title { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 18px; }
.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.role-row:last-child { border-bottom: none; }
.role-row .who { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; }
.role-row .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--white);
}
.role-row .role-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
}
.role-tag.owner { background: rgba(245, 158, 11, 0.18); color: var(--amber-400); }
.role-tag.pm { background: rgba(59, 130, 246, 0.2); color: var(--blue-400); }
.role-tag.acct { background: rgba(16, 185, 129, 0.18); color: #4ade80; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(245, 158, 11, 0.25), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 16px; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 14px; margin: 16px 0 20px; max-width: 280px; color: rgba(255,255,255,0.5); }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.7); }

/* Privacy policy content */
.policy {
  padding: 64px 0 100px;
}
.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: flex-start;
}
.policy-toc {
  position: sticky;
  top: 110px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
}
.policy-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 14px; }
.policy-toc ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.policy-toc a { font-size: 14px; color: var(--slate-600); }
.policy-toc a:hover { color: var(--blue-500); }

.policy-body h2 {
  font-size: 21px;
  margin: 40px 0 14px;
  scroll-margin-top: 110px;
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { color: var(--slate-600); margin-bottom: 14px; font-size: 15px; }
.policy-body ul { margin: 0 0 14px 20px; color: var(--slate-600); font-size: 15px; }
.policy-body li { margin-bottom: 8px; }
.policy-body strong { color: var(--slate-900); }
.policy-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  margin-top: 14px;
}
.policy-meta strong { color: var(--white); }
.callout {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--slate-600);
  margin-bottom: 22px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    background: var(--navy-900);
    border-radius: var(--radius-md);
    padding: 20px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
  }
  .nav-cta { display: none; }
  .nav-links.is-open .nav-cta { display: flex; margin-top: 6px; }
  .section { padding: 72px 0; }
  .hero { padding: 132px 0 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 44px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
