/* ============================================================
   SAFER CITY SOLUTIONS — design system
   Dark navy + gold accent. Enterprise B2B crime intelligence.
   ============================================================ */

:root {
  --bg:           #050912;
  --surface:      #0B1426;
  --surface-2:    #111c35;
  --rule:         rgba(255,255,255,0.07);
  --rule-strong:  rgba(255,255,255,0.14);

  --text:         #C9D2E5;
  --text-dim:     rgba(255,255,255,0.62);
  --muted:        rgba(255,255,255,0.45);

  --gold:         #E0B040;
  --gold-bright:  #F0C45A;
  --gold-deep:    #B88A28;
  --gold-glow:    rgba(224,176,64,0.18);

  --red:          #E53935;
  --green:        #22C55E;

  --max-w:        1200px;
  --radius-lg:    20px;
  --radius-md:    14px;
  --radius-sm:    8px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}

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

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,9,18,0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 102px; width: auto; border-radius: 6px; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; }
.nav a:hover { color: #fff; }
.nav .cta {
  background: var(--gold); color: var(--bg);
  padding: 9px 20px; border-radius: 8px; font-weight: 700; font-size: 14px;
  transition: background 0.15s;
}
.nav .cta:hover { background: var(--gold-bright); color: var(--bg); }

.nav-toggle {
  display: none; background: transparent;
  border: 1px solid var(--rule-strong);
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
}
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-top: 1px solid var(--rule);
    padding: 16px 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--rule); width: 100%; }
  .nav .cta { margin-top: 12px; text-align: center; }
}

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 0;
  min-height: 600px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/assets/globe-hero.png');
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.28);
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,9,18,0.95) 0%, rgba(5,9,18,0.55) 60%, rgba(5,9,18,0.15) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 100px 24px 90px;
  max-width: 760px; margin-left: 10vw;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(224,176,64,0.30);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(224,176,64,0.06);
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  color: #fff; margin: 0 0 20px;
}
.hero h1 .accent { color: var(--gold); }
.hero .lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-dim); max-width: 600px;
  margin: 0 0 36px; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--bg);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 28px rgba(224,176,64,0.30);
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--gold-bright); color: var(--bg); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--rule-strong);
  transition: background 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 24px;
}
.stats-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.stat-item {
  text-align: center; padding: 18px 12px;
  border-right: 1px solid var(--rule);
}
.stat-item:last-child { border-right: none; }
.stat-item .n {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800; color: var(--gold);
  letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 6px;
}
.stat-item .l {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim);
}
.stat-src {
  font-size: 9px; letter-spacing: 0.08em;
  color: var(--text-dim); opacity: 0.5;
  text-transform: uppercase; margin-top: 4px;
}
.stat-breakdown {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 7px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; color: var(--gold);
  opacity: 0.8;
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--rule); }
}

/* ── SECTION GENERIC ── */
.section { padding: 90px 24px; }
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.5vw, 42px); margin: 0 0 16px; }
.section-lead {
  color: var(--text-dim); font-size: 17px;
  max-width: 680px; margin: 0 0 56px; line-height: 1.6;
}
.section-lead.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title.center { text-align: center; }
.section-label.center { text-align: center; display: block; }

/* ── PLATFORM CARDS ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.platform-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.platform-card:hover { border-color: rgba(224,176,64,0.35); transform: translateY(-4px); box-shadow: 0 24px 56px rgba(0,0,0,0.45); }
.platform-card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(224,176,64,0.20), rgba(224,176,64,0.06));
  border: 1px solid rgba(224,176,64,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
  color: var(--gold);
}
.platform-card h3 { font-size: 22px; margin: 0 0 10px; }
.platform-card .tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; display: block;
}
.platform-card p { color: var(--text-dim); font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.platform-card ul { list-style: none; padding: 0; margin: 0; }
.platform-card ul li {
  color: var(--text); font-size: 14px;
  padding: 5px 0 5px 20px; position: relative;
}
.platform-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 7px; height: 2px; background: var(--gold);
}

/* ── PROMETHEUS AI FEATURE SECTION ── */
.prometheus-section {
  padding: 100px 24px;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(224,176,64,0.09) 0%, transparent 55%),
    var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.prometheus-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 760px) {
  .prometheus-inner { grid-template-columns: 1fr; gap: 36px; }
}
.prometheus-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,176,64,0.08);
  border: 1px solid rgba(224,176,64,0.28);
  color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.prometheus-section h2 { font-size: clamp(28px, 3.8vw, 44px); margin: 0 0 18px; }
.prometheus-section p { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin: 0 0 20px; }
.prometheus-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px;
}
.p-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.p-metric .v { font-size: 28px; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.p-metric .k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-top: 4px; }
.prometheus-visual {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative; overflow: hidden;
}
.prometheus-visual::before {
  content: "PROMETHEUS AI"; position: absolute; top: 16px; left: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold);
}
.pv-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim);
  margin-top: 28px; margin-bottom: 20px;
}
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-green 2s infinite; flex-shrink: 0; }
@keyframes pulse-green { 0%,100%{ opacity:1; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); } 50%{ opacity:0.8; box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.pv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.pv-row:last-child { border-bottom: none; }
.pv-row .label { color: var(--text-dim); }
.pv-row .value { color: #fff; font-weight: 600; }
.pv-row .value.green { color: var(--green); }
.pv-row .value.gold { color: var(--gold); }
.pv-row .value.red { color: var(--red); }

/* ── SECTORS ── */
.sectors-section { padding: 80px 24px; }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--max-w); margin: 0 auto;
}
.sector-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  transition: border-color 0.18s, transform 0.18s;
  cursor: default;
}
.sector-card:hover { border-color: rgba(224,176,64,0.30); transform: translateY(-3px); }
.sector-card .icon { font-size: 26px; margin-bottom: 8px; }
.sector-card h4 { font-size: 13px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }

/* ── CTA STRIP ── */
.cta-strip {
  padding: 90px 24px;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(224,176,64,0.10) 0%, transparent 60%),
    var(--bg);
}
.cta-strip .inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  background: var(--surface);
}
.cta-strip h2 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 14px; }
.cta-strip p { color: var(--text-dim); margin: 0 auto 28px; max-width: 520px; line-height: 1.55; }

/* ── FOOTER ── */
.footer {
  background: #02060f; padding: 64px 24px 28px;
  border-top: 1px solid var(--rule);
  color: var(--text-dim); font-size: 14px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer-brand-logo { height: 60px; width: auto; border-radius: 6px; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; opacity: 0.75; max-width: 240px; line-height: 1.55; }
.footer-col h4 {
  color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px;
}
.footer-col a { color: var(--text-dim); display: block; padding: 5px 0; font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 48px auto 0;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  color: var(--muted); font-size: 12px; text-align: center;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 90px 24px 64px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(224,176,64,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0a1326 100%);
  border-bottom: 1px solid var(--rule);
}
.page-hero .container { max-width: 880px; text-align: center; }
.page-hero .crumb { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.page-hero .crumb a { color: var(--gold); }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 52px); margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.page-hero .lead { color: var(--text-dim); font-size: 18px; line-height: 1.55; max-width: 620px; margin: 0 auto; }

/* ── FORM ── */
.form-section { padding: 80px 24px; }
.form-wrap {
  max-width: 680px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}
@media (max-width: 560px) { .form-wrap { padding: 28px 20px; } }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--bg); border: 1px solid var(--rule-strong);
  color: #fff; padding: 12px 14px; border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: border-color 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-row select option { background: var(--surface); }
.form-row textarea { min-height: 110px; resize: vertical; }
.form-submit {
  background: var(--gold); color: var(--bg);
  border: 0; padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  width: 100%; margin-top: 4px;
  transition: background 0.15s;
}
.form-submit:hover { background: var(--gold-bright); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE RESPONSIVE — comprehensive breakpoints
   ============================================================ */

/* Tablet: 760px */
@media (max-width: 760px) {
  /* Sectors: 3 per row on tablet */
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }

  /* Prometheus 2-col → 1-col */
  .prometheus-inner { grid-template-columns: 1fr; gap: 36px; }
  .prometheus-metrics { grid-template-columns: 1fr 1fr; }

  /* Feature panels collapse */
  .feature-panel,
  .feature-panel-rev { grid-template-columns: 1fr; direction: ltr; }
  .feature-panel-rev > * { direction: ltr; }
  .feature-img { min-height: 240px; }
  .feature-text { padding: 32px 24px; }

  /* Stats strip wrap */
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--rule); }

  /* Hero */
  .hero { min-height: 480px; }
  .hero-inner { padding: 80px 24px 60px; margin-left: 0; max-width: 100%; }

  /* Cascade */
  .scs-cascade-wrap { height: 260px; }

  /* Page hero tighter */
  .page-hero { padding: 60px 24px 40px; }
  .page-hero h1 { font-size: clamp(22px, 6vw, 36px); letter-spacing: 0.04em; }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  /* Sectors: 2 per row on small mobile */
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats strip: 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Logo scale on mobile */
  .brand-logo { height: 72px; }
  .footer-brand-logo { height: 44px; }

  /* Header padding tighter */
  .header-inner { padding: 12px 16px; }

  /* Prometheus metrics stacked */
  .prometheus-metrics { grid-template-columns: 1fr; }

  /* CTA strip padding */
  .cta-strip .inner { padding: 36px 20px; }

  /* Form */
  .form-wrap { padding: 24px 16px; }

  /* Section padding reduce */
  .section { padding: 56px 16px; }
  .sectors-section { padding: 56px 16px; }
  .feature-text { padding: 28px 16px; }

  /* Footer stack */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 44px 16px 24px; }
}

/* Very small: 360px */
@media (max-width: 360px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
