/* BrikLab landing page — zero framework, zero build. Mobile-first, responsive.
   Palette follows Agent 7 designer notes: primary blue #0066CC, accent green
   #00AA44, accent orange #FF9900, dark footer #1A3A52. */

:root {
  --blue: #0066CC;
  --blue-dark: #0052A3;
  --green: #00AA44;
  --orange: #FF9900;
  --ink: #14202e;
  --body: #33414f;
  --muted: #6b7885;
  --line: #e6eaef;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-blue: #e8f4ff;
  --bg-green: #eaf7ef;
  --bg-orange: #fff3e0;
  --footer: #1a3a52;
  --radius: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--bg-blue); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 18px 40px; font-size: 18px; }
.btn-block { display: block; width: 100%; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--body); font-weight: 500; font-size: 15px; }
.site-header .btn-primary { margin-left: 8px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  min-height: calc(100vh - 64px); padding: 56px 20px;
}
.hero-copy h1 { font-size: 52px; letter-spacing: -.03em; }
.lead { font-size: 21px; color: var(--ink); max-width: 620px; }
.hero-para { font-size: 16px; color: var(--body); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
/* Hero video (hero-1) + Solution-section companion video (hero-2). Both source
   clips are 768×768 (1:1) — aspect-ratio locks the box so there's no layout shift
   and the dark background shows (never a white flash) before the first frame paints. */
.hero-visual { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-video, .companion-video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #0b1622;                 /* dark placeholder — matches theme, no blank box */
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(11,22,34,.28);
}
.hero-visual figcaption, .section-video figcaption {
  font-size: 13.5px; color: var(--muted); text-align: center; max-width: 480px; margin: 0 auto; line-height: 1.5;
}
.section-video {
  margin: 4px auto 40px; max-width: 440px;
  display: flex; flex-direction: column; gap: 12px;
}
.section-video .companion-video { box-shadow: 0 14px 40px rgba(11,22,34,.16); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: 34px; letter-spacing: -.02em; max-width: 780px; }
.section-intro { font-size: 18px; color: var(--body); max-width: 720px; margin-bottom: 36px; }
.prose { max-width: 760px; }
.prose p { font-size: 16.5px; }
.transition { font-weight: 700; color: var(--ink); font-size: 20px; }

.section-problem { background: var(--bg-soft); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 36px; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 20px; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: 14px; }

/* ── Features ────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: #fff; }
.feature h3 { font-size: 19px; }
.feature .benefit { font-style: italic; color: var(--body); font-size: 14.5px; margin-bottom: 0; }
.feature-blue { border-top: 4px solid var(--blue); }
.feature-green { border-top: 4px solid var(--green); }
.feature-orange { border-top: 4px solid var(--orange); }

/* ── How it works ────────────────────────────────────────── */
.section-how { background: var(--bg-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.step:nth-child(2) .step-num { background: var(--green); }
.step:nth-child(3) .step-num { background: var(--orange); }
.step h3 { font-size: 18px; }
.step-time { color: var(--muted); font-weight: 500; font-size: 14px; }

/* ── Pricing ─────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; }
.price-card-featured { border: 2px solid var(--green); box-shadow: 0 10px 34px rgba(0,170,68,.10); }
.badge { position: absolute; top: -12px; right: 20px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.price-card h3 { font-size: 20px; }
.price { font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 4px 0 16px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-features { list-style: none; margin: 0 0 18px; padding: 0; }
.price-features li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-best { font-size: 14px; color: var(--muted); }
.price-card .btn { margin-top: 6px; }

.table-wrap { overflow-x: auto; margin-top: 40px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare caption { text-align: left; font-weight: 700; color: var(--ink); font-size: 18px; padding-bottom: 12px; }
.compare th, .compare td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: 14.5px; }
.compare thead th { background: var(--bg-blue); }
.compare tbody th { background: var(--bg-soft); }

.incentive { margin-top: 36px; background: var(--bg-green); border: 2px solid var(--green); border-radius: var(--radius); padding: 22px 24px; }
.incentive strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.incentive span { color: var(--body); }

/* ── FAQ ─────────────────────────────────────────────────── */
.section-faq { background: var(--bg-soft); }
.faq-list { max-width: 820px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 18px; }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16.5px; padding: 12px 0; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--blue); font-weight: 700; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 14px; color: var(--body); font-size: 15.5px; }

/* ── Final CTA ───────────────────────────────────────────── */
.section-final-cta { background: linear-gradient(135deg, #0b2f52 0%, #0a1f38 100%); border-bottom: none; text-align: center; }
.section-final-cta h2 { color: #fff; }
.section-final-cta p { color: #cddbe8; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-final-cta .btn { margin-top: 18px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--footer); color: #cddbe8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cddbe8; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-about .brand { color: #fff; display: block; margin-bottom: 10px; }
.footer-about p { font-size: 14px; color: #9fb3c4; max-width: 360px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; color: #8ba0b2; text-align: center; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 32px; padding: 40px 20px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-visual { max-width: 380px; margin: 0 auto; }   /* centered square below the text on mobile */
  .feature-grid, .steps, .price-grid, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 32px; }
  .lead { font-size: 18px; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 27px; }
  .price { font-size: 38px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FULL-BLEED BACKGROUND THEME — assets/page-bg.jpg (dark "network" photo) spans
   the whole page and stays fixed through scroll. Implemented as a viewport-fixed
   pseudo-element (works on desktop AND iOS Safari — background-attachment:fixed is
   ignored there). Every band becomes a translucent dark-glass panel so the photo
   shows through everywhere while all text stays legible (light copy on dark tint).
   Tints run 0.62→0.86 — strong enough that even the photo's bright glow-nodes,
   wherever they land behind a panel, never drop text below readable contrast.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* remap text to light for legibility over the dark photo */
  --ink: #eef3f9;      /* headings */
  --body: #c6d2de;     /* body copy */
  --muted: #a8b6c4;    /* secondary — lightened so small labels clear AA over the photo's brightest glow */
  --line: rgba(255, 255, 255, 0.12);
}

body { background: #0a1420; }                 /* dark fallback under the photo */
body::before {                                 /* the fixed, viewport-spanning photo */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0a1420 url("assets/page-bg.jpg") center center / cover no-repeat;
}

a { color: #6db3ff; }                          /* links readable on dark */

/* Header — dark glass */
.site-header { background: rgba(9, 15, 25, 0.85); border-bottom-color: rgba(255, 255, 255, 0.10); }
.nav-links a { color: #cdd8e3; }
.nav-links a:hover { color: #fff; }

/* Bands — translucent dark panels (the photo shows through the tint). */
.hero { background: rgba(9, 16, 27, 0.70); border-bottom-color: rgba(255, 255, 255, 0.08); }
.section { border-bottom-color: rgba(255, 255, 255, 0.07); }
.section-solution, .section-pricing { background: rgba(9, 16, 27, 0.70); }
.section-problem, .section-how, .section-faq { background: rgba(6, 12, 22, 0.76); }
.section-final-cta { background: rgba(5, 11, 20, 0.82); }
.site-footer { background: rgba(5, 11, 20, 0.86); }

/* Cards / inner panels → dark frosted glass, light-alpha borders. */
.stat, .feature, .step, .price-card, .faq-list details, .table-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.price-card-featured { background: rgba(0, 170, 68, 0.12); border: 2px solid var(--green); }
.faq-list details { border-left: 4px solid var(--blue); }
.compare thead th { background: rgba(0, 102, 204, 0.20); }
.compare tbody th { background: rgba(255, 255, 255, 0.06); }
.compare th, .compare td { border-color: rgba(255, 255, 255, 0.14); }
.incentive { background: rgba(0, 170, 68, 0.13); border-color: rgba(0, 170, 68, 0.55); }

/* Hardcoded (non-variable) text that needs flipping to light. */
.section-final-cta h2 { color: var(--ink); }
.section-final-cta p { color: var(--body); }
.footer-about p { color: #a9b8c6; }
.footer-col a, .footer-bottom { color: #b6c3cf; }

/* Secondary "ghost" button: was blue-on-white → light-on-dark. */
.btn-ghost { color: #e2edf8; border-color: rgba(255, 255, 255, 0.40); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); }

/* Frosted blur on the smaller glass panels + header where supported (progressive). */
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .site-header { -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
  .stat, .feature, .step, .price-card, .faq-list details, .incentive {
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
}
