/* ============================================================
   CableCutDetector — landing page styles
   Brand colours are CSS variables so they can be changed in one
   place (here) or via config.json. Edit freely.
   ============================================================ */

:root {
  --brand:  #14213d;   /* deep navy  — headers, text   */
  --accent: #fca311;   /* amber      — buttons, accents */
  --ink:    #1b2230;
  --muted:  #6b7280;
  --bg:     #ffffff;
  --bg-alt: #f5f7fb;
  --line:   #e5e8ef;
  --radius: 12px;
  --maxw:   1080px;
  --font:   system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #1b1b1b;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-small { padding: 9px 16px; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--line); }
.btn-light { background: #fff; color: var(--brand); }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--brand); letter-spacing: -.3px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); }

/* ---------------- Hero ---------------- */
.hero { background: linear-gradient(160deg, #0e1830 0%, var(--brand) 60%); color: #fff; padding: 72px 0 84px; }
.hero h1, .hero h2 { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lead { font-size: 1.15rem; color: #d7deea; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-card { display: flex; justify-content: center; }
.alert-card {
  background: #fff; color: var(--ink);
  border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 320px; width: 100%;
  border-left: 5px solid #e23b3b;
}
.alert-card strong { display: block; color: #c62828; margin-bottom: 4px; }
.alert-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.alert-loc { font-variant-numeric: tabular-nums; margin-top: 6px !important; font-size: .82rem !important; }
.alert-dot { width: 12px; height: 12px; border-radius: 50%; background: #e23b3b; margin-top: 5px; flex: none; box-shadow: 0 0 0 0 rgba(226,59,59,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(226,59,59,.55)} 70%{box-shadow:0 0 0 12px rgba(226,59,59,0)} 100%{box-shadow:0 0 0 0 rgba(226,59,59,0)} }

/* ---------------- Sections ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; margin-bottom: 44px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #1b1b1b; font-weight: 800; margin-bottom: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

/* Uses */
.uses { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.uses li { position: relative; padding-left: 28px; font-weight: 500; }
.uses li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* CTA */
.section-cta { background: linear-gradient(160deg, var(--brand), #0e1830); color: #fff; text-align: center; }
.section-cta h2 { color: #fff; }
.cta-inner p { color: #d7deea; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { justify-content: flex-start; }
  .steps, .features { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
