@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/geist-mono-latin.woff2') format('woff2');
}

/* Palette follows CommandDeck's Space Black theme. */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #1c1c1e;
  --surface-raised: #2c2c2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.72);
  --text-3: #8e8e93;
  --accent-text: #409cff;
  /* Darker than the extension's accent so white button text meets WCAG AA. */
  --accent-fill: #0071e3;
  --accent-fill-hover: #0062c4;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --radius: 16px;
  --container: 1080px;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 15% -8%, rgba(99, 76, 238, 0.26), transparent 62%),
    radial-gradient(900px 520px at 92% 2%, rgba(10, 132, 255, 0.16), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header & footer ---------- */

.site-header {
  padding-block: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.site-footer {
  margin-top: 96px;
  padding-block: 32px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

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

.footer-note {
  flex-basis: 100%;
  font-size: 13px;
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent-fill);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-fill-hover);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Home sections ---------- */

.section {
  margin-top: 120px;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
}

.section-intro {
  margin-top: 12px;
  max-width: 560px;
  color: var(--text-2);
  font-size: 18px;
}

.hero {
  padding-block: 72px 24px;
}

.eyebrow {
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 16px;
  max-width: 760px;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 20px;
  max-width: 600px;
  color: var(--text-2);
  font-size: clamp(18px, 2.2vw, 20px);
}

.hero .actions {
  margin-top: 36px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 64px;
  align-items: center;
}

.product-id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.product-id h2 {
  font-size: 32px;
}

.product-kicker {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 15px;
}

.product-tagline {
  margin-top: 28px;
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-summary {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}

.feature-list li {
  position: relative;
  padding-left: 34px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.feature-list li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.feature-list strong {
  color: var(--text);
  font-weight: 600;
}

.product .actions {
  margin-top: 36px;
}

.trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-3);
  font-size: 14px;
}

.trust svg {
  flex-shrink: 0;
}

.product-shot {
  position: relative;
  margin: 0;
}

.product-shot::before {
  content: '';
  position: absolute;
  inset: 8% -6% -4%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(10, 132, 255, 0.28), transparent);
  filter: blur(24px);
}

.product-shot img {
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.75);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.principle {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.principle h3 {
  margin-top: 20px;
  font-size: 18px;
}

.principle p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(99, 76, 238, 0.14), rgba(10, 132, 255, 0.08)), var(--surface);
}

.contact-card .section-intro {
  margin-top: 8px;
}

/* ---------- Document pages (privacy policy, 404) ---------- */

.doc {
  max-width: 720px;
  padding-block: 48px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}

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

.doc h1 {
  font-size: clamp(34px, 5vw, 44px);
  letter-spacing: -0.03em;
}

.doc-meta {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 15px;
}

.prose {
  margin-top: 32px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}

.prose h2 {
  margin-top: 48px;
  color: var(--text);
  font-size: 24px;
}

.prose h3 {
  margin-top: 32px;
  color: var(--text);
  font-size: 19px;
}

.prose p,
.prose ul {
  margin-top: 16px;
}

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

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--text-3);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.summary-box {
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-box h2 {
  margin-top: 0;
  font-size: 19px;
}

.summary-box ul {
  margin-top: 12px;
}

.doc .actions {
  margin-top: 32px;
}

/* ---------- Responsive & motion ---------- */

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .product-shot {
    max-width: 480px;
  }

  .principle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-nav {
    gap: 18px;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    margin-top: 88px;
  }

  .contact-card {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
