:root {
  --bg: #05070d;
  --bg-2: #0b111d;
  --panel: #0f1626;
  --border: #1c2942;
  --text: #e8edf5;
  --muted: #93a1b8;
  --blue: #2ea3ff;
  --blue-bright: #58c0ff;
  --blue-dim: #1667b0;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--white); }

/* ---------- Focus & screen-reader helpers ---------- */
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #04121f; font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-item-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; color: var(--text); font-weight: 500; font-size: 15px;
  background: none; border: none; cursor: pointer; border-radius: 8px; font-family: inherit;
}
.nav-links > li > a:hover, .nav-item-toggle:hover { background: var(--panel); color: var(--white); }
.nav-item-toggle .caret { border: solid var(--muted); border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg); margin-top: -3px; transition: transform .2s; }
.nav-item.open .nav-item-toggle .caret { transform: rotate(-135deg); margin-top: 2px; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.nav-item.open .dropdown, .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); }
.dropdown a:hover { background: var(--bg-2); color: var(--blue-bright); }
.dropdown a small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }

/* Specificity must beat `.nav-links > li > a` (0,1,2), which sets `background: none`;
   without that the pill never painted and left near-black text on the dark bar. */
.nav-links > li > a.nav-cta { background: var(--blue); color: #04121f; padding: 9px 18px; border-radius: 8px; font-weight: 600; }
.nav-links > li > a.nav-cta:hover { background: var(--blue-bright); color: #04121f; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 15.5px; transition: all .18s; cursor: pointer; }
.btn-primary { background: var(--blue); color: #04121f; box-shadow: 0 8px 30px rgba(46,163,255,.25); }
.btn-primary:hover { background: var(--blue-bright); color: #04121f; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--white); }
.btn-block { width: 100%; border: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 90px 24px 100px;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(46,163,255,.18), transparent 70%),
    linear-gradient(180deg, #05070d 0%, #070c16 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-logo { height: 96px; width: auto; margin-bottom: 26px; }
.hero-title { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.5px; }
.accent { color: var(--blue-bright); }
.hero-sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); margin: 0 auto 34px; max-width: 660px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(26px, 4vw, 38px); text-align: center; margin: 0 0 14px; letter-spacing: -.4px; }
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 48px; font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .2s;
}
.card:hover { border-color: var(--blue-dim); transform: translateY(-3px); }
.card h2, .card h3 { margin: 0 0 10px; font-size: 20px; color: var(--white); }
.card p { margin: 0; color: var(--muted); }
.card-lg { padding: 36px; }
.card .eyebrow { color: var(--blue-bright); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(700px 300px at 50% 0%, rgba(46,163,255,.14), transparent 70%); text-align: center; }
.cta-inner h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 10px; }
.cta-inner p { color: var(--muted); margin: 0 0 26px; }

/* ---------- Page header ---------- */
.page-head { text-align: center; padding: 70px 24px 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #070c16, #05070d); }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 12px; letter-spacing: -.5px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 18px; }

/* ---------- Steps / how it works ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.step .num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #04121f; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step h3 { margin: 2px 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--blue); box-shadow: 0 12px 40px rgba(46,163,255,.15); }
.plan .badge { align-self: flex-start; background: var(--blue); color: #04121f; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 14px; }
.plan h2, .plan h3 { margin: 0 0 6px; font-size: 22px; }
.plan .price { font-size: 20px; color: var(--blue-bright); font-weight: 700; margin: 8px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex-grow: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: var(--text); border-bottom: 1px solid var(--border); }
.plan li:before { content: "\2713"; position: absolute; left: 0; color: var(--blue-bright); font-weight: 700; }
.price-note { margin-top: 44px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; float: right; color: var(--blue-bright); font-size: 22px; line-height: 1; }
.faq details[open] summary:after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 960px; margin: 0 auto; }
.contact-info h2 { margin: 0 0 10px; font-size: 20px; color: var(--white); }
.contact-info p { color: var(--muted); }
.contact-info .line { display: flex; gap: 10px; margin-bottom: 14px; }
.contact-info .line b { color: var(--white); }
.contact-info .note { margin-top: 24px; color: var(--muted); font-size: 14px; }
form.contact { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
form.contact label { display: block; font-size: 14px; margin: 0 0 6px; color: var(--muted); }
form.contact input, form.contact textarea, form.contact select {
  width: 100%; padding: 12px 14px; margin-bottom: 18px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 15px;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 163, 255, .35);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 50px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 14.5px; }
.footer h2, .footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text); font-size: 14.5px; }
.footer ul a:hover { color: var(--blue-bright); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 22px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .price-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--panel); border-bottom: 1px solid var(--border); padding: 12px; gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; min-width: auto; display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-item:hover .dropdown { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .btn-primary:hover { transform: none; }
}
