:root {
  --bg: #0b1220;
  --bg-elevated: #131d33;
  --bg-card: #16203a;
  --border: #263352;
  --text: #e8eefc;
  --text-muted: #93a3c4;
  --accent: #4a9eff;
  --accent-strong: #2c6fc4;
  --amber: #e8b04b;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 18, 32, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; }
.brand b { color: var(--accent); font-weight: inherit; }

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(74, 158, 255, .18), transparent 70%),
    radial-gradient(700px 380px at 95% 10%, rgba(232, 176, 75, .10), transparent 70%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.hero .lede {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 30px;
}

.hero-phone {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  display: block;
  margin: 0 auto;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.badge-link { display: inline-block; line-height: 0; }
.badge-link img { height: 54px; width: auto; }
.badge-link[aria-disabled="true"] { opacity: .55; cursor: default; }

.cta-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

section h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -.01em;
  margin: 0 0 10px;
}

.section-lede {
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 620px;
}

.alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.feature .icon {
  font-size: 26px;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

/* ---------- Screenshot gallery ---------- */

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  flex: 0 0 232px;
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: block;
}

.shots figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 0 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Contact ---------- */

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 760px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #04101f;
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: #6bb0ff; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 500;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .04); color: var(--text); }

.direct-mail {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Dialog ---------- */

dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

dialog::backdrop { background: rgba(3, 8, 18, .7); }

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}

.dialog-head h2 { font-size: 22px; margin: 0; }

.dialog-close {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.dialog-close:hover { color: var(--text); }

dialog form { padding: 16px 24px 24px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 11px 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.dialog-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

/* ---------- Legal page ---------- */

.legal {
  max-width: 760px;
  padding-top: 48px;
}

.legal h1 { font-size: 36px; margin: 0 0 6px; letter-spacing: -.02em; }

.legal .effective {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.legal h3 { font-size: 17px; margin: 26px 0 8px; }

.legal p, .legal li { color: #c3cee5; }

.legal ul { padding-left: 22px; }

.legal li { margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-order-text { order: 1; }
  .hero-order-img { order: 2; }
  .site-nav { gap: 16px; font-size: 14px; }
  section { padding: 48px 0; }
}

@media (max-width: 520px) {
  .site-nav a[data-optional] { display: none; }
  .contact-box { padding: 22px; }
}
