:root {
  --bg: #EBF0F7;
  --ink: #0A0A0A;
  --muted: #3D4654;
  --line: #0A0A0A;
  --grid: rgba(10, 10, 10, 0.06);
  --accent: #5B3FE0;
  --on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0E14;
    --ink: #F2F4F8;
    --muted: #B4BCC9;
    --line: #D5DBE5;
    --grid: rgba(213, 219, 229, 0.06);
    --accent: #9D8CFF;
    --on-accent: #0B0E14;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32.5px 32.5px;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 16px;
  z-index: 10;
}
.skip:focus { left: 16px; top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.wordmark {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
nav { display: flex; gap: 0; }
@media (min-width: 768px) {
  nav { gap: 8px; }
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  text-decoration: none;
  font-weight: 500;
}
.wordmark { white-space: nowrap; }
@media (max-width: 400px) {
  nav a { padding: 0 5px; font-size: 0.875rem; }
  nav a:last-child { padding-right: 0; }
}
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .hero { padding: 120px 0 128px; }
}
h1 {
  margin: 0;
  font-size: clamp(4rem, 20vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.accent { color: var(--accent); }
.spoken {
  margin: 16px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  font-weight: 500;
}
.lead {
  margin: 24px 0 0;
  max-width: 34ch;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.35;
  color: var(--muted);
}

/* Sections */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .section { padding: 80px 0; }
}
h2 {
  margin: 0 0 24px;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.section p { margin: 0; max-width: 62ch; }
.two-col { display: grid; gap: 0; }
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 2fr; gap: 32px; }
  .two-col h2 { margin-bottom: 0; }
}

/* Product card: the whole card becomes the link */
.product {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
@media (min-width: 768px) {
  .product { padding: 40px; }
}
.product h3 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.product { position: relative; }
.product h3 { padding-right: 48px; }
.arrow { position: absolute; top: 24px; right: 24px; color: var(--accent); transition: transform 160ms ease-out; }
@media (min-width: 768px) {
  .arrow { top: 40px; right: 40px; }
}
a.product:hover, a.product:focus-visible { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
a.product:hover .arrow, a.product:focus-visible .arrow { color: var(--on-accent); transform: translate(3px, -3px); }

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  text-underline-offset: 4px;
}

.contact-link-small { font-size: 1.125rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 24px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.btn:hover { background: transparent; color: var(--accent); }

.location { margin-top: 12px !important; }

/* Footer */
.site-footer { padding: 24px 0; color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin: 0; }
