/* Road Defender MT — shared site styles (matches the app's dark/gold theme) */
:root {
  --bg: #080808;
  --card: #111111;
  --card-2: #171717;
  --border: #2a2a2a;
  --gold: #f0b429;
  --gold-dark: #d4940a;
  --text: #e9e9e9;
  --muted: #9a9a9a;
  --subtle: #5a5a5a;
  --red: #ef4444;
  --radius: 16px;
  --maxw: 820px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ── Header (centered logo) ──────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 56px 20px 28px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 100% at 50% 0%, #15110233 0%, transparent 60%);
}
.site-header .logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 10px 40px #00000080, 0 0 0 1px var(--border);
}
.site-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.site-header .tagline {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}
.site-header .home-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Main ────────────────────────────────────────────────────────────── */
main { flex: 1; width: 100%; padding: 36px 0 64px; }

/* ── Landing nav cards ───────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover {
  text-decoration: none;
  border-color: var(--gold);
  background: var(--card-2);
  transform: translateY(-2px);
}
.card .card-icon { font-size: 24px; }
.card h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 10px 0 4px; }
.card p { font-size: 13px; color: var(--muted); }
.card .chevron { color: var(--gold); font-weight: 800; }

/* ── Legal / content article ─────────────────────────────────────────── */
.doc { max-width: 760px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.doc h2 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 34px 0 10px;
}
.doc h2:first-of-type { margin-top: 18px; }
.doc p, .doc li { font-size: 15px; color: var(--text); }
.doc ul { padding-left: 22px; margin: 6px 0; }
.doc li { margin-bottom: 6px; }
.doc strong { color: #fff; }
.doc .lead { color: var(--muted); }

/* Callout box */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout.danger { background: #1f0a0a; border-color: #ef444455; }
.callout.danger strong { color: #fff; }

/* Ordered step list */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0; }
.steps li {
  position: relative;
  padding: 12px 0 12px 46px;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Pill button */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  margin-top: 8px;
}
.btn:hover { text-decoration: none; opacity: 0.92; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav { margin-bottom: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); font-weight: 600; }
.site-footer nav a:hover { color: var(--gold); }

@media (max-width: 480px) {
  .site-header { padding-top: 40px; }
  .site-header .logo { width: 96px; height: 96px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Marketing / landing page (landing.html)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Top nav ─────────────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  background: #080808cc;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.topnav .brand:hover { text-decoration: none; }
.topnav .brand img { border-radius: 9px; }
.btn-sm { padding: 9px 16px; font-size: 13px; margin-top: 0; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 40px;
  background: radial-gradient(120% 90% at 80% 0%, #1a130233 0%, transparent 55%);
}
.hero-grid {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #fff;
}
.hero-sub {
  color: var(--muted);
  font-size: 17px;
  margin-top: 18px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); opacity: 1; }
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}
.stat { display: flex; flex-direction: column; }
.stat-k { color: #fff; font-weight: 800; font-size: 16px; }
.stat-v { color: var(--muted); font-size: 13px; }

/* ── Phone mockup ────────────────────────────────────────────────────── */
.hero-phone { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 268px;
  background: #0c0c0c;
  border: 2px solid #2f2f2f;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 80px #000000aa, 0 0 0 1px #00000080;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 22px;
  background: #0c0c0c;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  border-radius: 28px;
  padding: 34px 16px 18px;
  min-height: 460px;
}
.ps-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ps-head span:first-child { color: #fff; font-weight: 800; font-size: 16px; }
.ps-live { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.ps-photo {
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  margin-bottom: 14px;
}
.ps-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 14px;
  margin-bottom: 14px;
}
.ps-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.ps-row:last-child { border-bottom: none; }
.ps-row span { color: var(--muted); }
.ps-row strong { color: #fff; }
.ps-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
}

/* ── Generic sections ────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section .wrap { max-width: 1120px; }
.section-alt { background: #0c0c0c; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 36px;
}

/* ── Feature grid ────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--gold); transform: translateY(-2px); }
.feature-icon {
  font-size: 30px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: #1a130299;
  border: 1px solid #3a2c08;
  border-radius: 14px;
  margin-bottom: 14px;
}
.feature h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ── Steps grid ──────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 14px; }

/* ── Built for Malta ─────────────────────────────────────────────────── */
.built { text-align: center; }
.built-lead { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0 auto 36px; }
.built-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.built-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.built-item .feature-icon { margin: 0 auto 12px; }
.built-item h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.built-item p { color: var(--muted); font-size: 13px; }

/* ── CTA section ──────────────────────────────────────────────────────── */
.cta-section {
  background: radial-gradient(100% 120% at 50% 0%, #1a130244 0%, transparent 60%);
}
.cta { text-align: center; max-width: 640px; }
.cta-logo { border-radius: 20px; box-shadow: 0 10px 40px #00000080, 0 0 0 1px var(--border); margin-bottom: 18px; }
.cta h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.cta p { color: var(--muted); font-size: 16px; margin: 12px 0 22px; }

/* ── Landing responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .stat-row { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 36px; }
  .topnav .brand span { display: none; }
}
