/* VoiceMetrix — static site styles */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --ink: #111111;
  --ink-soft: #444444;
  --accent: #116dff;
  --accent-dark: #0d55c8;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e3e8ef;
  --radius: 24px;
  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Accessibility: hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header / nav */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand { display: block; }
.brand img { height: 96px; width: auto; display: block; }

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
nav a:hover { background: var(--bg-alt); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.has-menu { position: relative; }
.has-menu > a::after { content: " ▾"; font-size: 0.7em; }
.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  padding: 6px;
  flex-direction: column;
}
.has-menu:hover .menu,
.has-menu:focus-within .menu { display: flex; }
.menu a { border-radius: 8px; }

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #e8f1ff 0%, rgba(232, 241, 255, 0) 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cadcf8 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, black 0%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #e8f1ff;
  color: var(--accent);
  border: 1px solid #d3e3fc;
  border-radius: var(--radius);
  padding: 7px 16px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(17, 109, 255, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(17, 109, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(17, 109, 255, 0); }
}

.grad {
  background: linear-gradient(90deg, #116dff, #5b96ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}

.pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 20px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
}
.pill svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: var(--font-head);
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(17, 109, 255, 0.25);
}
.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid #c9dcff;
}
.btn-secondary:hover {
  background: #f2f7ff;
  color: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(17, 109, 255, 0.12);
}
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.kicker {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 40px auto 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 18px;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}
.stat span { color: var(--ink-soft); font-size: 0.92rem; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }

section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.center { text-align: center; }
.sub { color: var(--ink-soft); max-width: 720px; }
.center .sub { margin: 0 auto; }

/* Product cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17, 109, 255, 0.10);
  border-color: #c9dcff;
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e8f1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.card a {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.18s ease;
}
.card:hover a { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Product page layout */
.page-head {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%);
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.page-head .tagline { font-size: 1.25rem; color: var(--accent); font-family: var(--font-head); font-weight: 500; }

.feature { padding: 40px 0; border-bottom: 1px solid var(--border); }
.feature:last-of-type { border-bottom: none; }
.feature h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}
.feature h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.feature p { color: var(--ink-soft); max-width: 760px; margin-bottom: 10px; }
.feature ul { margin: 12px 0 0 22px; color: var(--ink-soft); max-width: 740px; }
.feature li { margin-bottom: 8px; }

/* CTA band */
.cta {
  background: linear-gradient(135deg, #0b1f3a 0%, #123c72 60%, #1156c0 130%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta h2 { color: #fff; max-width: 720px; margin: 0 auto 24px; }

/* Footer */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 0; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot h3 { font-size: 1.05rem; margin-bottom: 10px; }
.foot p, .foot a { color: var(--ink-soft); font-size: 0.95rem; }
.foot a:hover { color: var(--accent); }
.copyright {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  .nav { justify-content: center; }
  .brand img { height: 68px; }
  .hero { padding: 56px 0 44px; }
  /* On small screens the dropdown is unwieldy; the Products link itself
     goes to the product cards section, which lists everything. */
  .menu { display: none !important; }
  .has-menu > a::after { content: ""; }
}
