:root {
  --bg: #06101f;
  --surface: #0b1730;
  --elevated: #102040;
  --fg: #eef3fb;
  --muted: #93a4bf;
  --subtle: #6d7f99;
  --accent: #3b9eff;
  --accent-fg: #06101f;
  --border: #1c3358;
  --tw: #0f766e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-border: 0 0 0 1px rgb(255 255 255 / 0.08);
  --shadow-border-hover: 0 0 0 1px rgb(255 255 255 / 0.14);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

body.circuit {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgb(12 34 68 / 0.9), transparent 62%),
    linear-gradient(rgb(59 158 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(59 158 255 / 0.045) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

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

a {
  color: inherit;
}

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

button:not(:disabled) {
  cursor: pointer;
  font: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(64rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .wrap {
    width: min(64rem, calc(100% - 4rem));
  }
}

.site-header,
.site-footer {
  border-color: var(--border);
  border-style: solid;
  border-width: 0;
}

.site-header {
  border-bottom-width: 1px;
}

.site-footer {
  border-top-width: 1px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

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

.nav a.nav-apps {
  display: none;
}

@media (min-width: 640px) {
  .nav a.nav-apps {
    display: inline-flex;
  }
}

.lang {
  display: flex;
  margin-left: 4px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-border);
}

.lang a {
  min-width: 44px;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang a[aria-current="true"] {
  background: var(--elevated);
  color: var(--fg);
}

.hero {
  padding: 64px 0 48px;
}

.kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lede {
  margin: 20px 0 0;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.section-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}

.grid-2 {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-border);
  text-decoration: none;
  transition: box-shadow 150ms ease;
}

.card:hover {
  box-shadow: var(--shadow-border-hover);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card h3 {
  margin: 20px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.meta {
  margin: 4px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}

.card p {
  margin: 12px 0 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.975rem;
}

.cta-row {
  margin-top: 24px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--elevated);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
}

.badge-soon {
  color: var(--accent);
}

.badge-dev {
  color: var(--muted);
}

.badge-prototype {
  color: var(--fg);
  box-shadow: var(--shadow-border);
}

.icon-app {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  outline: 1px solid rgb(255 255 255 / 0.1);
  outline-offset: -1px;
}

.icon-stub {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--elevated);
  color: var(--accent);
  outline: 1px solid rgb(255 255 255 / 0.1);
  outline-offset: -1px;
}

.principles {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 64px 0;
}

.principles ul {
  display: grid;
  gap: 40px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .principles ul {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.principles h3 {
  margin: 0;
  font-size: 1rem;
}

.principles p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.page {
  padding: 48px 0 80px;
  max-width: 48rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.back:hover {
  color: var(--fg);
}

.product-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.product-head > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.product-head h1 {
  margin: 0;
}

.product-head img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  outline: 1px solid rgb(255 255 255 / 0.1);
  outline-offset: -1px;
}

.page h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page .lede {
  margin-top: 32px;
}

.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-border);
}

.dot {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--tw);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-border);
}

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

.note {
  margin-top: 16px;
  color: var(--subtle);
  font-size: 0.875rem;
}

.footer-inner {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 32px 0;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-inner a:hover {
  color: var(--fg);
}

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

.kicker.tw {
  color: var(--tw);
}

.policy header {
  margin-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.policy h1 {
  margin-top: 12px;
}

.policy .publisher,
.policy time,
.policy .updated {
  color: var(--muted);
}

.policy .updated {
  font-size: 0.875rem;
  color: var(--subtle);
}

.policy section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.policy section:last-of-type {
  border-bottom: 0;
}

.policy h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.policy p {
  margin: 12px 0 0;
  max-width: 65ch;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

.policy ul {
  margin: 16px 0 0;
  padding-left: 20px;
  max-width: 65ch;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

.policy a {
  color: var(--accent);
}

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