/* ArrowX website, in the DSONIX brand (app/lib/src/theme.dart): deep navy
   and the cyan → blue → purple glow. Light in light mode, navy in dark. */
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(fonts/Poppins-ExtraBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 900; font-display: swap; src: url(fonts/Poppins-Black.ttf) format("truetype"); }

:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --panel: #eaf0fb;
  --text: #0a2149;
  --muted: #5b6b86;
  --accent: #2563eb;
  --on-accent: #ffffff;
  --line: rgba(10, 33, 73, 0.10);
  --shadow: 0 14px 40px rgba(10, 33, 73, 0.12);
  --glow: linear-gradient(90deg, #0fb2fb, #2563eb 50%, #7c3aed);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050e22;
    --surface: #0e1c3a;
    --panel: #0b1730;
    --text: #e6ecf7;
    --muted: #8b97b3;
    --accent: #4f8cff;
    --on-accent: #050e22;
    --line: rgba(230, 236, 247, 0.10);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand span, .button, .eyebrow { font-family: Poppins, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.glow-text { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.brand span b { font-weight: 900; font-size: 1.2em; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav a.optional { display: none; } .nav { gap: 14px; } }

/* Hero: on brand navy in both themes, like the app's splash */
.hero {
  padding: 64px 0 48px; color: #e6ecf7;
  background:
    radial-gradient(60% 70% at 70% 45%, rgba(37, 99, 235, 0.35), transparent 70%),
    radial-gradient(40% 50% at 95% 0%, rgba(124, 58, 237, 0.35), transparent 70%),
    linear-gradient(160deg, #061d43, #020b1f);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.eyebrow { font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; margin: 0 0 12px; color: #7fb4ff; }
.hero h1 { font-size: clamp(52px, 9vw, 88px); line-height: 1; margin: 0 0 10px; font-weight: 800; letter-spacing: -1px; }
.hero h1 b { font-weight: 900; font-size: 1.25em; }
.tagline { font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin: 0 0 16px; font-family: Poppins, sans-serif; }
.lead { color: #aebbd6; font-size: 18px; margin: 0 0 28px; max-width: 34em; }
@media (max-width: 820px) { .lead { margin-left: auto; margin-right: auto; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 820px) { .cta { justify-content: center; } }
.button {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  background: var(--glow); color: #fff; font-weight: 800; line-height: 1.2;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.button small { font-weight: 600; opacity: 0.9; font-size: 12px; }
.button.secondary { background: rgba(255, 255, 255, 0.08); color: inherit; box-shadow: inset 0 0 0 2px rgba(174, 187, 214, 0.35); }
.launch { margin: 18px 0 0; color: #aebbd6; font-size: 15px; }
.phone {
  width: min(300px, 78vw); margin: 0 auto; border-radius: 36px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 178, 251, 0.25); border: 8px solid #0e1c3a; background: #0e1c3a;
}

/* Sections */
section { padding: 52px 0; scroll-margin-top: 72px; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; font-weight: 800; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line); }
.card .icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px;
  border-radius: 50%; background: var(--glow); color: #fff; font-size: 15px;
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.shots figure { margin: 0; }
.shots .phone { width: 100%; max-width: 280px; border-width: 6px; border-radius: 28px; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.promise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { background: var(--panel); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.download { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.qr { margin: 0; text-align: center; }
.qr img { display: block; width: 180px; height: 180px; border-radius: 16px; box-shadow: var(--shadow); background: #fff; padding: 10px; }
.qr figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 820px) { .download { grid-template-columns: 1fr; text-align: center; } .download .section-lead { margin-left: auto; margin-right: auto; } .qr { display: none; } }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; text-align: center; }
.contact .button { margin-top: 12px; align-items: center; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal h2 { font-size: 20px; margin: 28px 0 6px; }
.legal .meta { color: var(--muted); margin: 2px 0; }
.legal ul, .legal ol { padding-left: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
.site-footer .credit { font-size: 13px; }
.dsonix { display: inline-flex; align-items: center; gap: 8px; }
.dsonix img { width: 22px; height: 22px; border-radius: 6px; }
