/* ============================================================================
   Dispersal Marketing — theme
   Dark base + brand blue (from the logo) + hot-orange CTA accent.
   ========================================================================== */

@font-face {
  font-family: "TheBoldFont";
  src: url("/fonts/theboldfont.woff") format("woff"),
       url("/fonts/theboldfont.ttf") format("truetype"),
       url("/fonts/theboldfont.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #0a0e14;
  --bg-soft:   #0e1420;
  --panel:     rgba(255, 255, 255, 0.04);
  --panel-2:   rgba(255, 255, 255, 0.07);

  --brand:       #2ba0e3;   /* electric blue, pulled from the logo */
  --brand-bright:#4fb6f0;
  --brand-deep:  #0b2a52;   /* navy from the logo sphere */
  --brand-glow:  rgba(43, 160, 227, 0.35);

  --cta:        #ff6a1a;    /* hot orange — CONVERSION ONLY */
  --cta-hover:  #ff7d38;
  --cta-glow:   rgba(255, 106, 26, 0.4);

  --text:   #ffffff;
  --muted:  rgba(255, 255, 255, 0.64);
  --faint:  rgba(255, 255, 255, 0.42);
  --line:   rgba(255, 255, 255, 0.10);
  --line-brand: rgba(43, 160, 227, 0.28);

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand-bright); text-decoration: none; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
p { margin: 0 0 1rem; }

.font-bold-display { font-family: "TheBoldFont", var(--font); font-style: italic; }

/* ---- Layout helpers --------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }
.maxw-sm { max-width: 640px; }
.maxw-md { max-width: 820px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-bright);
  background: rgba(43, 160, 227, 0.10);
  border: 1px solid var(--line-brand);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head.text-center { margin-left: auto; margin-right: auto; }

/* ---- Glass / cards ---------------------------------------------------------- */
.glass {
  background: var(--panel);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-brand);
  background: var(--panel-2);
}

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }

/* Orange = conversion. Reserved for primary CTAs only. */
.btn-cta {
  background: var(--cta); color: #1a0d03;
  box-shadow: 0 8px 30px var(--cta-glow);
}
.btn-cta:hover { background: var(--cta-hover); color: #1a0d03; transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); color: var(--text); border-color: var(--line-brand); }

.btn-blue { background: var(--brand); color: #04121f; }
.btn-blue:hover { background: var(--brand-bright); color: #04121f; transform: translateY(-2px); }

.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---- Navigation ------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--brand-bright); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.nav-toggle .icon { width: 26px; height: 26px; }

.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    background: rgba(10, 14, 20, 0.96); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line); padding: 14px 22px 22px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { color: #fff; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
  .mobile-menu .btn-cta { margin-top: 14px; }
}

/* ---- Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(10,14,20,0.35), rgba(10,14,20,0.85) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(11,42,82,0.35), rgba(10,14,20,0.65));
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 120px 22px 80px; width: 100%; max-width: 960px; margin: 0 auto; }
.hero h1 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.7); margin-bottom: 20px; }
.hero .hero-sub { font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: rgba(255,255,255,0.94); font-weight: 300; max-width: 720px; margin: 0 auto 36px; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.hero .hero-sub b { font-weight: 600; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(43,160,227,0.4);
  backdrop-filter: blur(14px); border-radius: 999px; padding: 9px 18px;
  font-size: 0.9rem; font-weight: 500; color: #fff;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 10px var(--cta); }
.hero-trust { margin-top: 40px; color: rgba(255,255,255,0.66); font-size: 0.9rem; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; animation: bounce 2s infinite; color: rgba(255,255,255,0.8); }
@keyframes bounce { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* ---- Stats ------------------------------------------------------------------ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 30px 18px; }
.stat .value { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.stat .value em { font-style: normal; color: var(--brand-bright); }
.stat .label { font-weight: 600; margin-top: 4px; }
.stat .sub { color: var(--faint); font-size: 0.85rem; }

/* ---- Grids ------------------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 24px var(--brand-glow); margin-bottom: 20px;
}
.icon-badge .icon { width: 28px; height: 28px; color: #fff; }
.card h3 { color: #fff; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--brand-bright); font-weight: 600; font-size: 0.95rem; }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link .icon { transform: translateX(4px); }
a.card { color: inherit; display: block; }

/* ---- Industries strip ------------------------------------------------------- */
.industry { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.industry .icon-badge { margin-bottom: 0; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.industry .icon-badge .icon { width: 24px; height: 24px; }
.industry h4 { margin: 0 0 4px; color: #fff; font-size: 1.1rem; }
.industry p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Process ---------------------------------------------------------------- */
.step { position: relative; padding: 32px; }
.step .num { font-size: 3.2rem; font-weight: 800; color: rgba(43,160,227,0.18); line-height: 1; margin-bottom: 8px; }
.step h3 { font-size: 1.25rem; color: #fff; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---- Proof / case study ----------------------------------------------------- */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.proof-media { display: grid; gap: 16px; }
.proof-media img { border-radius: 14px; border: 1px solid var(--line); width: 100%; }
.proof-client { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.proof-client img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.proof-client .who { font-weight: 700; color: #fff; }
.proof-client .where { color: var(--faint); font-size: 0.9rem; }
.proof-metrics { display: flex; gap: 28px; margin: 22px 0; flex-wrap: wrap; }
.proof-metrics .m .n { font-size: 2rem; font-weight: 800; color: var(--brand-bright); }
.proof-metrics .m .t { color: var(--muted); font-size: 0.9rem; }

/* ---- Lists / benefits ------------------------------------------------------- */
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.86); }
.benefits .icon { width: 22px; height: 22px; color: var(--cta); flex-shrink: 0; margin-top: 2px; }

/* ---- FAQ -------------------------------------------------------------------- */
.faq { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: var(--panel); }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-bright); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 24px 22px; color: var(--muted); margin: 0; }

/* ---- CTA band --------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 80px); text-align: center;
  background: linear-gradient(135deg, var(--brand-deep), #07203f 60%, #0a0e14);
  border: 1px solid var(--line-brand); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 28px; }

/* ---- Page hero (interior pages) -------------------------------------------- */
.page-hero { padding: 150px 0 60px; position: relative; text-align: center; background:
  radial-gradient(80% 120% at 50% 0%, rgba(11,42,82,0.55), transparent 70%); }
.page-hero h1 { color: #fff; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }

/* ---- Forms ------------------------------------------------------------------ */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.92rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: #fff; font: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error, .text-danger { color: #ff8a8a; font-size: 0.85rem; margin-top: 6px; display: block; }
.alert-success { background: rgba(43,160,227,0.12); border: 1px solid var(--line-brand); border-radius: 14px; padding: 22px 24px; color: #fff; }

/* ---- Blog ------------------------------------------------------------------- */
.post-meta { color: var(--faint); font-size: 0.9rem; margin-bottom: 8px; }
.article { max-width: 760px; margin: 0 auto; }
.article-body { font-size: 1.08rem; color: rgba(255,255,255,0.86); }
.article-body h2 { font-size: 1.7rem; margin-top: 2em; color: #fff; }
.article-body h3 { margin-top: 1.6em; color: #fff; }
.article-body a { text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote { border-left: 3px solid var(--brand); margin: 1.5em 0; padding: 0.4em 1.2em; color: var(--muted); font-style: italic; }
.article-body img { border-radius: 12px; margin: 1.5em 0; }
.article-body code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

/* ---- Footer ----------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer h5 { color: #fff; font-size: 0.95rem; margin: 0 0 16px; letter-spacing: 0.02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); font-size: 0.94rem; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 14px; }
.footer .blurb { color: var(--muted); font-size: 0.94rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--faint); font-size: 0.88rem; }

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { width: 100%; }
  .proof-metrics { gap: 18px; }
}
