/* ============================================================
   SafeSignals Design System — ss-styles.css
   Dark tech aesthetic: deep navy bg, electric blue accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #080E1A;
  --bg2:           #0D1525;
  --bg3:           #111D32;
  --electric:      #00D4FF;
  --electric-dim:  #0099BB;
  --electric-glow: rgba(0,212,255,0.12);
  --electric-border: rgba(0,212,255,0.25);
  --white:         #F0F6FF;
  --muted:         #7A9AC0;
  --text:          #C8DCF0;
  --success:       #00E5A0;
  --success-bg:    rgba(0,229,160,0.08);
  --danger:        #FF4D6D;
  --danger-bg:     rgba(255,77,109,0.08);
  --warn:          #FFB830;
  --card-bg:       #0D1828;
  --card-border:   rgba(0,212,255,0.18);
  --font-main:     'Space Grotesk', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --max-w:         1100px;
  --nav-h:         64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--electric); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ── Typography ───────────────────────────────────────────── */
.label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--electric);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
h1 { font-size: clamp(38px,5vw,58px); font-weight: 700; color: var(--white); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(28px,3.5vw,40px); font-weight: 700; color: var(--white); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 20px; font-weight: 600; color: var(--white); line-height: 1.3; }
h4 { font-size: 15px; font-weight: 600; color: var(--white); }
p  { color: var(--text); line-height: 1.7; }

.text-electric { color: var(--electric); }
.text-muted    { color: var(--muted); }
.text-white    { color: var(--white); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.mono          { font-family: var(--font-mono); }

.subtitle { font-size: 17px; color: var(--muted); max-width: 580px; line-height: 1.75; margin-top: 16px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-md);
  font-family: var(--font-main); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s; border: none; white-space: nowrap;
  text-decoration: none;
}
.btn-primary   { background: var(--electric); color: #050A14; }
.btn-primary:hover { opacity: .88; color: #050A14; }
.btn-outline   { background: transparent; border: 1px solid rgba(200,220,240,.28); color: var(--white); }
.btn-outline:hover { border-color: rgba(200,220,240,.55); opacity: 1; }
.btn-ghost     { background: transparent; border: 1px solid var(--electric-border); color: var(--electric); }
.btn-ghost:hover { background: var(--electric-glow); opacity: 1; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-sm        { padding: 9px 20px; font-size: 13px; }
.btn-full      { width: 100%; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,14,26,.94);
  border-bottom: 1px solid var(--electric-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 17px; font-weight: 500;
  color: var(--electric); letter-spacing: .04em;
  text-decoration: none;
}
.nav-logo img {
  height: 32px; width: auto; display: block;
  object-fit: contain; flex-shrink: 0;
  /* Tint the white/light logo to electric blue on dark bg */
  filter: brightness(0) saturate(100%) invert(78%) sepia(60%) saturate(400%) hue-rotate(160deg) brightness(110%);
}
/* Fallback icon shown only when logo img fails to load */
.logo-icon {
  width: 30px; height: 30px;
  border: 1.5px solid var(--electric);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-pulse {
  width: 8px; height: 8px;
  background: var(--electric);
  border-radius: 50%;
  animation: pulse-anim 2s ease-in-out infinite;
}
@keyframes pulse-anim {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.3; transform:scale(.65); }
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  letter-spacing: .015em; transition: color .2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links .btn { margin-left: 8px; }
.nav-mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; color: var(--muted);
}
.nav-mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg2); border-bottom: 1px solid var(--electric-border);
  padding: 16px 24px 20px;
}
.nav-mobile-menu a {
  display: block; color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu .btn { margin-top: 14px; width: 100%; }
.nav-mobile-menu.open { display: flex; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative; overflow: hidden;
}
.card-glow::before {
  content: '';
  position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
}
.card:hover { border-color: rgba(0,212,255,.35); }
.card-featured {
  border-color: var(--electric);
  background: linear-gradient(160deg, #0d2035 0%, #0d1828 100%);
}

/* ── Section divider strip ────────────────────────────────── */
.strip {
  background: var(--bg2);
  border-top: 1px solid rgba(0,212,255,.1);
  border-bottom: 1px solid rgba(0,212,255,.1);
  padding: 48px 0;
}

/* ── Badge / pill ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,.08);
  border: 1px solid var(--electric-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--electric); letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-success { background: rgba(0,229,160,.08); border-color: rgba(0,229,160,.25); color: var(--success); }
.badge-danger  { background: var(--danger-bg); border-color: rgba(255,77,109,.3); color: var(--danger); }
.badge-warn    { background: rgba(255,184,48,.08); border-color: rgba(255,184,48,.3); color: var(--warn); }
.live-dot { width:6px;height:6px;border-radius:50%;background:currentColor;animation:pulse-anim 1.5s infinite;flex-shrink:0; }

/* ── Steps / how it works ─────────────────────────────────── */
.step-icon {
  width: 48px; height: 48px;
  background: rgba(0,212,255,.1);
  border: 1px solid var(--electric-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.step-icon svg { width: 22px; height: 22px; stroke: var(--electric); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-num { font-family: var(--font-mono); font-size: 11px; color: var(--electric-dim); letter-spacing: .08em; margin-bottom: 12px; display: block; }

/* ── Pricing ──────────────────────────────────────────────── */
.price-popular {
  position: absolute; top: -1px; right: 24px;
  background: var(--electric); color: #050A14;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 14px;
  border-radius: 0 0 8px 8px;
}
.price-amount { display: flex; align-items: baseline; gap: 3px; margin: 14px 0 4px; }
.price-currency { font-size: 20px; color: var(--muted); font-weight: 500; }
.price-num { font-size: 48px; font-weight: 700; color: var(--white); font-family: var(--font-mono); line-height: 1; }
.price-per { font-size: 14px; color: var(--muted); }
.price-alt { font-size: 12px; color: var(--electric-dim); min-height: 18px; margin-bottom: 20px; }
.price-divider { height: 1px; background: rgba(255,255,255,.07); margin: 18px 0; }
.feat { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); margin-bottom: 10px; line-height: 1.45; }
.feat-check { color: var(--success); flex-shrink: 0; margin-top: 1px; }
.feat-x     { color: var(--muted); flex-shrink: 0; }
.range-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--electric-dim);
  background: rgba(0,212,255,.06);
  border: 1px solid var(--electric-border);
  border-radius: 100px; padding: 5px 12px;
  margin-top: 14px;
}
.range-pill-dot { width:7px;height:7px;background:var(--electric);border-radius:50%;flex-shrink:0; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--white); margin-bottom: 7px; letter-spacing: .01em;
}
label .req { color: var(--electric); margin-left: 2px; }
input[type=text], input[type=email], input[type=tel],
input[type=url], input[type=number], select, textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-main); font-size: 14px;
  color: var(--white);
  transition: border-color .2s, background .2s;
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--electric);
  background: rgba(0,212,255,.05);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
select { cursor: pointer; }
select option { background: var(--bg2); color: var(--white); }
textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.form-success {
  display: none;
  text-align: center; padding: 48px 24px;
}
.form-success-icon {
  width: 56px; height: 56px;
  background: rgba(0,229,160,.12);
  border: 1px solid rgba(0,229,160,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type=checkbox] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--electric);
}
.checkbox-group label { margin-bottom: 0; font-size: 13px; color: var(--muted); font-weight: 400; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  background: rgba(0,212,255,.08);
  border-bottom: 1px solid var(--electric-border);
  padding: 12px 16px; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--electric);
  font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
.td-check { color: var(--success); font-size: 16px; }
.td-x     { color: var(--muted); font-size: 16px; }

/* ── Alert / notification ─────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.5;
}
.alert-info    { background: rgba(0,212,255,.08); border: 1px solid var(--electric-border); color: var(--electric); }
.alert-success { background: var(--success-bg); border: 1px solid rgba(0,229,160,.25); color: var(--success); }
.alert-danger  { background: var(--danger-bg); border: 1px solid rgba(255,77,109,.25); color: var(--danger); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-single { grid-template-columns: 1fr; max-width: 760px; padding: 80px 0 64px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ── Stats grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px; text-align: center;
}
.stat-big  { font-size: 40px; font-weight: 700; color: var(--electric); font-family: var(--font-mono); line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ── Vertical / industry cards ────────────────────────────── */
.v-card {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color .2s, transform .2s;
}
.v-card:hover { border-color: var(--electric-border); transform: translateY(-3px); }
.v-icon { font-size: 28px; margin-bottom: 14px; }
.v-title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.v-desc  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Blog ─────────────────────────────────────────────────── */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: rgba(0,212,255,.4); transform: translateY(-3px); }
.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, #0d1828 0%, #111d32 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--card-border);
}
.blog-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.blog-title { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-read-more { margin-top: 16px; font-size: 13px; color: var(--electric); font-weight: 500; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(0,212,255,.1);
  padding: 64px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 260px; line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 600; color: var(--white);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; font-family: var(--font-mono);
}
.footer-col a {
  display: block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--electric); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px;
}

/* ── Scan animation (reusable) ────────────────────────────── */
.scan-rings { display:flex;align-items:center;justify-content:center;position:relative;height:100px; }
.scan-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--electric-border);
  animation: ring-expand 3s ease-out infinite;
}
.scan-ring:nth-child(2){animation-delay:.9s;}
.scan-ring:nth-child(3){animation-delay:1.8s;}
@keyframes ring-expand {
  0%  { opacity:.65; transform:scale(.82); }
  100%{ opacity:0;   transform:scale(1.18); }
}
.scan-core {
  width:16px;height:16px;
  background:var(--electric);border-radius:50%;
  position:absolute;z-index:2;
  box-shadow:0 0 14px var(--electric);
}

/* ── Utility ──────────────────────────────────────────────── */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; }
.grid-4 { display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:20px; }
.flex   { display:flex; }
.flex-center { display:flex;align-items:center;justify-content:center; }
.gap-12 { gap:12px; } .gap-16 { gap:16px; } .gap-24 { gap:24px; }
.mb-8  { margin-bottom:8px; }  .mb-12 { margin-bottom:12px; }
.mb-16 { margin-bottom:16px; } .mb-20 { margin-bottom:20px; }
.mb-24 { margin-bottom:24px; } .mb-32 { margin-bottom:32px; }
.mb-48 { margin-bottom:48px; } .mb-64 { margin-bottom:64px; }
.mt-8  { margin-top:8px; }     .mt-12 { margin-top:12px; }
.mt-16 { margin-top:16px; }    .mt-24 { margin-top:24px; }
.mt-32 { margin-top:32px; }    .mt-48 { margin-top:48px; }
.text-center { text-align:center; }
.text-right  { text-align:right; }
.hidden      { display:none !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero        { grid-template-columns:1fr; gap:40px; }
  .stats-grid  { grid-template-columns:1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns:1fr 1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .form-row    { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .container   { padding:0 16px; }
  h1           { font-size:34px; }
  h2           { font-size:26px; }
  .section     { padding:56px 0; }
  .stats-grid  { grid-template-columns:1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .hero-actions { flex-direction:column; }
  .btn         { width:100%; justify-content:center; }
  .nav-links   { display:none; }
  .nav-mobile-toggle { display:flex; }
}
