:root {
  --navy: #043865;
  --teal: #015982;
  --purple: #681DEC;
  --violet: #7130F0;
  --slate: #3C5770;
  --slate-light: #688DB7;
  --mist: #D4DAE8;
  --ink: #14283b;
  --bg: #f6f8fc;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  /* Sticky footer: on a short page (like 404), main grows to fill the
     remaining viewport height instead of leaving the footer floating with
     empty space below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.5px; color: var(--navy); margin-bottom: 12px; }
.lead { font-size: 17px; color: var(--slate); max-width: 660px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; transition: background .2s, transform .15s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--violet); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--mist); }
.btn-outline:hover { border-color: var(--slate-light); }

/* Nav */
header.top {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--mist);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
header.top img { height: 44px; width: auto; }
header.top nav { display: flex; align-items: center; gap: 26px; }
header.top nav a.link { color: var(--slate); text-decoration: none; font-size: 14px; font-weight: 500; }
header.top nav a.link:hover { color: var(--navy); }
header.top .btn { padding: 9px 18px; font-size: 14px; }

/* Solutions dropdown: CSS only (hover and focus-within), no JS required. */
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 10px;
  background: #fff; border: 1px solid var(--mist); border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20,40,59,.12); padding: 6px; min-width: 200px;
}
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel, .nav-dropdown.open .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a {
  display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink);
  text-decoration: none; font-size: 14px; font-weight: 500;
}
.nav-dropdown-panel a:hover, .nav-dropdown-panel a:focus-visible { background: var(--bg); color: var(--navy); }

/* Hero */
.hero {
  background: radial-gradient(1100px 500px at 85% -10%, rgba(113,48,240,.45), transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: #fff; padding: 84px 0 96px;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero.no-shot .wrap { grid-template-columns: 1fr; text-align: center; }
.hero.no-shot .lead-hero, .hero.no-shot .cta-group { margin-left: auto; margin-right: auto; justify-content: center; }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -1.2px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #c9b6ff; }
.lead-hero { font-size: 18px; color: #d6e4f2; max-width: 540px; margin-bottom: 32px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shot img {
  border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.tagline { margin-top: 28px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #9fbdd8; }

/* Features */
.features { background: var(--bg); }
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid.f { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--mist); border-radius: 12px; padding: 24px; }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex; align-items: center; justify-content: center;
}
.card .ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--slate); }
a.card { display: block; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(4,56,101,.1); }

/* Screenshots */
.shots .grid { grid-template-columns: 1fr; max-width: 960px; margin-left: auto; margin-right: auto; gap: 32px; }
.shots figure { background: #fff; border: 1px solid var(--mist); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(4,56,101,.08); }
.shots figcaption { padding: 14px 18px; font-size: 14px; color: var(--slate); border-top: 1px solid var(--mist); }
.shots figure.narrow { max-width: 640px; margin: 0 auto; }
.shots figcaption strong { display: block; color: var(--navy); font-size: 15px; }

/* Audiences */
.who { background: var(--bg); }
.grid.w { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.who .card { padding: 32px; }
.who h3 { font-size: 20px; }
.who ul { margin: 14px 0 22px 18px; font-size: 14px; color: var(--slate); }
.who li { margin-bottom: 6px; }

/* Forms */
.get-started { background: linear-gradient(180deg, #fff, var(--bg)); }
.tabs { display: flex; justify-content: center; gap: 10px; margin: 32px 0 24px; flex-wrap: wrap; }
.tab {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--mist); background: #fff; color: var(--slate);
}
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.form-card {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--mist); border-radius: 14px;
  padding: 32px; box-shadow: 0 12px 40px rgba(4,56,101,.08);
}
.form-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 4px; }
.form-card .sub { color: var(--slate); font-size: 14px; margin-bottom: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
label .opt { font-weight: 400; color: var(--slate-light); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 12px; border: 1px solid #b9c4d6; border-radius: 8px; background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(113,48,240,.2); }
.hint { font-size: 12px; color: var(--slate-light); margin-top: 4px; }
.err { font-size: 12px; color: #b91c1c; margin-top: 4px; min-height: 0; }
.invalid { border-color: #b91c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-actions .btn:disabled { opacity: .6; cursor: default; transform: none; }
.privacy { font-size: 12px; color: var(--slate-light); }
.thanks { text-align: center; padding: 24px 8px; }
.thanks .check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal), var(--purple)); display: flex; align-items: center; justify-content: center;
}
.thanks .check svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* Footer */
footer { background: var(--navy); color: #b9cde2; padding: 40px 0; font-size: 13px; text-align: center; }
footer a { color: #d6e4f2; }
footer .links { margin-bottom: 12px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }

/* 404 page */
.not-found { text-align: center; padding: 120px 0; }
.not-found .code { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.not-found h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); margin-bottom: 14px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  header.top nav a.link { display: none; }
  header.top nav .nav-dropdown { display: none; }
  section { padding: 56px 0; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
