:root {
  --bg: #0b0e1a;
  --bg-deep: #080b14;
  --surface: #0f1322;
  --surface-2: #1b2036;
  --border: #232945;
  --amber: #ffb347;
  --coral: #ff6b4a;
  --orange: #ff8e53;
  --teal: #4ecba5;
  --rose: #e85d75;
  --violet: #7c6fe8;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.58);
  --radius: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text-soft); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); }
img { max-width: 100%; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { color: var(--text); font-weight: 800; letter-spacing: 0.4em; font-size: 18px; text-decoration: none; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
.top nav a:hover { color: var(--text); }

/* hero */
.hero { text-align: center; padding: 72px 0 0; position: relative; overflow: hidden; }
.wordmark {
  font-size: clamp(44px, 11vw, 96px);
  font-weight: 800;
  letter-spacing: 0.4em;
  margin: 0 -0.4em 0 0;
  color: var(--text);
  text-shadow: 0 0 40px rgba(255, 179, 71, 0.35);
}
.tagline { color: var(--muted); margin: 8px 0 0; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.2; color: var(--text); margin: 48px auto 12px; max-width: 680px; }
.hero p.lead { max-width: 600px; margin: 0 auto; font-size: 18px; }
.horizon {
  height: 220px;
  margin-top: 40px;
  background:
    radial-gradient(ellipse 60% 120% at 50% 100%, rgba(255, 179, 71, 0.45), rgba(255, 142, 83, 0.12) 45%, transparent 70%);
  position: relative;
}
.horizon::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -160px;
  height: 260px;
  border-radius: 50%;
  border-top: 4px solid var(--orange);
  background: var(--bg);
  box-shadow: 0 -6px 30px rgba(255, 142, 83, 0.6);
}
.cta { display: inline-flex; gap: 10px; align-items: center; padding: 15px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--text); background: linear-gradient(135deg, var(--orange), var(--coral)); box-shadow: 0 0 24px rgba(255, 107, 74, 0.45); }
.cta.ghost { background: var(--surface-2); box-shadow: none; border: 1px solid var(--border); }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.soon { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* sections */
section { padding: 56px 0; }
h2 { color: var(--text); font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
h3 { color: var(--text); font-size: 18px; margin: 0 0 6px; }
.label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 700; color: var(--amber); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card .emoji { font-size: 28px; }
.card.amber { background: rgba(255, 179, 71, 0.07); border-color: rgba(255, 179, 71, 0.3); }
.card.rose { background: rgba(232, 93, 117, 0.08); border-color: rgba(232, 93, 117, 0.35); }
.card.teal { background: rgba(78, 203, 165, 0.07); border-color: rgba(78, 203, 165, 0.3); }
.card.violet { background: rgba(124, 111, 232, 0.08); border-color: rgba(124, 111, 232, 0.3); }
.founder { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.founder img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--amber); object-fit: cover; }
.founder blockquote { margin: 0; flex: 1; min-width: 240px; font-style: italic; color: var(--text); font-size: 18px; }

/* legal pages */
.doc { padding: 24px 0 64px; }
.doc h1 { color: var(--text); font-size: 34px; margin: 16px 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p { margin: 0 0 12px; }

/* helplines */
.help { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 20px; }
.help a { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; }
.help a.primary { background: rgba(232, 93, 117, 0.12); border-color: rgba(232, 93, 117, 0.6); }
.help b { font-size: 24px; color: var(--amber); min-width: 70px; }
.help a.primary b { color: var(--rose); }
.help small { display: block; color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* live SOS page */
.live { padding: 24px 0 64px; }
.status { border-radius: var(--radius); padding: 22px; margin-top: 16px; }
.status.on { background: rgba(232, 93, 117, 0.12); border: 1px solid rgba(232, 93, 117, 0.6); }
.status.off { background: rgba(78, 203, 165, 0.1); border: 1px solid rgba(78, 203, 165, 0.5); }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); margin-top: 16px; background: var(--surface); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); margin-right: 8px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

@media (max-width: 600px) {
  .top nav a:not(.keep) { display: none; }
  section { padding: 40px 0; }
}
