:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #101216;
  --surface-raised: #151821;
  --surface-soft: #1b1e26;
  --text: #f4f2ec;
  --text-strong: #ffffff;
  --muted: #a5a8b1;
  --muted-strong: #c8cad0;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --blue: #4285ff;
  --blue-soft: #a7c5ff;
  --mint: #9ef4c5;
  --yellow: #ffd980;
  --danger: #ff7f8d;
  --max: 1280px;
  --header-height: 80px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --space-page: clamp(20px, 4vw, 64px);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%23ffffff' stroke-opacity='.035'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

::selection {
  background: var(--blue);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 12px var(--space-page);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  width: fit-content;
  min-height: 44px;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transform: rotate(-2deg);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease;
}

.brand:hover .brand-mark {
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg) translateY(-1px);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 6px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.header-nav a:hover {
  background: var(--surface-raised);
  color: var(--text-strong);
}

.header-nav svg {
  width: 16px;
  height: 16px;
}

.language-switcher {
  display: flex;
  justify-self: end;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

main,
.site-footer {
  width: min(100%, calc(var(--max) + var(--space-page) * 2));
  margin: 0 auto;
  padding-right: var(--space-page);
  padding-left: var(--space-page);
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  flex-direction: column;
  justify-content: center;
  padding: clamp(84px, 12vh, 140px) 0 clamp(54px, 8vh, 96px);
  border-bottom: 1px solid var(--line);
}

.hero-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(158, 244, 197, 0.09);
}

.hero h1 {
  max-width: 1100px;
  margin: clamp(32px, 6vh, 72px) 0 0;
  color: var(--text-strong);
  font-size: clamp(58px, 10.5vw, 136px);
  font-weight: 660;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.hero h1 span {
  display: block;
}

.hero-accent {
  color: var(--blue-soft);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 640px) auto;
  gap: clamp(32px, 8vw, 120px);
  align-items: end;
  margin-top: clamp(42px, 7vh, 78px);
}

.hero-bottom > p {
  max-width: 630px;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.025em;
  line-height: 1.42;
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: #fff;
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--muted-strong);
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.hero-index {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: clamp(54px, 10vh, 112px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-index > span:first-child {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
}

.hero-index-line {
  height: 1px;
  background: var(--line);
}

.products,
.principles {
  padding: clamp(96px, 13vw, 180px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr 0.8fr;
  gap: 36px;
  align-items: start;
  margin-bottom: clamp(54px, 8vw, 96px);
}

.section-heading h2 {
  margin: -10px 0 0;
  color: var(--text-strong);
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.product {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.product + .product {
  margin-top: 28px;
}

.product::before {
  position: absolute;
  top: 0;
  left: clamp(24px, 4vw, 54px);
  width: 90px;
  height: 3px;
  background: var(--blue);
  content: "";
}

.product-bookmark::before {
  background: var(--mint);
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 76px);
}

.product-number {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.product-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 650;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.42fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
}

.product-layout-reverse {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.34fr);
}

.product-layout-reverse .product-media {
  grid-column: 2;
  grid-row: 1;
}

.product-layout-reverse .product-copy {
  grid-column: 1;
  grid-row: 1;
}

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

.product-name-row img {
  border-radius: 14px;
}

.product-name-row h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 630;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.product-lede {
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.product-description {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.feature-list li {
  position: relative;
  padding: 14px 0 14px 25px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 14px;
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  position: absolute;
  top: 21px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.product-bookmark .feature-list li::before {
  background: var(--mint);
}

.button-product {
  background: var(--blue);
  color: #fff;
}

.product-bookmark .button-product {
  background: var(--mint);
  color: #07110c;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

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

.product-note {
  margin: 22px 0 0;
  color: #858993;
  font-size: 12px;
  line-height: 1.55;
}

.product-media {
  position: relative;
}

.media-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #050608;
}

.media-frame img {
  width: 100%;
  height: auto;
}

.textpipe-media {
  padding-bottom: clamp(28px, 5vw, 64px);
}

.media-frame-detail {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 43%;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.bookmark-media::after {
  position: absolute;
  right: 22px;
  bottom: -22px;
  width: 128px;
  height: 44px;
  border: 1px solid rgba(158, 244, 197, 0.4);
  border-radius: 999px;
  background: var(--surface-raised);
  content: "LOCAL · QUIET · FAST";
  color: var(--mint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 44px;
  text-align: center;
}

.principles {
  border-top: 1px solid var(--line);
}

.section-heading-compact {
  grid-template-columns: 0.55fr 2.05fr;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles-grid article {
  min-height: 310px;
  padding: 34px clamp(20px, 3vw, 40px) 40px;
}

.principles-grid article + article {
  border-left: 1px solid var(--line);
}

.principles-grid article > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.principles-grid h3 {
  margin: 100px 0 14px;
  color: var(--text-strong);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.principles-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  padding: clamp(68px, 9vw, 120px);
  margin-bottom: clamp(72px, 10vw, 130px);
  border-radius: var(--radius-lg);
  background: var(--text);
  color: var(--bg);
}

.closing .eyebrow {
  color: rgba(8, 9, 11, 0.6);
}

.closing h2 {
  max-width: 850px;
  margin: 20px 0 0;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.button-light {
  border-color: rgba(8, 9, 11, 0.24);
  color: var(--bg);
  white-space: nowrap;
}

.button-light:hover {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--text);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 160px;
  border-top: 1px solid var(--line);
}

.brand-mark-small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  transform: rotate(-2deg);
}

.footer-brand p,
.footer-meta {
  margin: 0;
  font-size: 12px;
}

.footer-brand p span,
.footer-meta {
  color: var(--muted);
}

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

.site-footer nav a {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

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

.footer-meta {
  justify-self: end;
}

/* Privacy page */
.policy-main {
  min-height: 70vh;
}

.policy-hero {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(36px, 8vw, 120px);
  padding: clamp(92px, 13vw, 170px) 0 clamp(60px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}

.policy-hero h1 {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--text-strong);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 630;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.policy-summary {
  align-self: end;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.policy-summary p {
  margin: 0;
}

.policy-summary small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.policy-content {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(36px, 8vw, 120px);
  padding: clamp(72px, 10vw, 130px) 0;
}

.policy-toc {
  position: sticky;
  top: 120px;
  align-self: start;
}

.policy-toc p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-toc a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: var(--muted-strong);
  font-size: 14px;
}

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

.policy-sections {
  max-width: 820px;
}

.policy-sections section {
  padding: 0 0 54px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.policy-sections section + section {
  padding-top: 54px;
}

.policy-sections h2 {
  margin: 0 0 18px;
  color: var(--text-strong);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 590;
  letter-spacing: -0.04em;
}

.policy-sections h3 {
  margin: 30px 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.policy-sections p,
.policy-sections li {
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.policy-sections ul {
  padding-left: 22px;
}

.policy-sections code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--mint);
  font-size: 0.88em;
}

.policy-sections a {
  color: var(--blue-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  margin: 30px 0 0;
  border-radius: var(--radius-sm);
  background: var(--line);
}

.policy-meta div {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
}

.policy-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-meta dd {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.policy-section-number {
  margin: 0 0 12px;
  color: var(--blue-soft) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.policy-callout {
  padding: 18px 20px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.policy-callout p {
  margin: 0;
}

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

.policy-sections .button {
  color: inherit;
  text-decoration: none;
}

.policy-sections .button-primary {
  color: var(--bg);
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .hero-bottom,
  .closing {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section-heading,
  .section-heading-compact {
    grid-template-columns: 1fr 1.5fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .product-layout,
  .product-layout-reverse {
    grid-template-columns: 1fr;
  }

  .product-layout-reverse .product-media,
  .product-layout-reverse .product-copy {
    grid-column: 1;
  }

  .product-layout-reverse .product-copy {
    grid-row: 1;
  }

  .product-layout-reverse .product-media {
    grid-row: 2;
  }

  .product-copy {
    max-width: 720px;
  }

  .closing {
    align-items: start;
  }

  .button-light {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
    --radius-lg: 22px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 88px);
    line-height: 0.91;
  }

  .hero-bottom {
    gap: 28px;
  }

  .hero-actions,
  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .text-link {
    justify-content: center;
  }

  .section-heading,
  .section-heading-compact {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p:last-child {
    grid-column: 1;
  }

  .section-heading h2 {
    margin-top: 0;
  }

  .product {
    border-radius: var(--radius-lg);
  }

  .product-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-tags {
    justify-content: flex-start;
  }

  .product-name-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-frame-detail {
    right: 10px;
    width: 48%;
  }

  .bookmark-media::after {
    display: none;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid article {
    min-height: 260px;
  }

  .principles-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principles-grid h3 {
    margin-top: 76px;
  }

  .closing {
    padding: 38px 26px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .footer-meta {
    justify-self: start;
  }

  .policy-hero,
  .policy-content {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .policy-toc p {
    width: 100%;
  }

  .policy-toc a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .policy-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .brand-copy strong {
    max-width: 120px;
    line-height: 1.15;
  }

  .language-switcher button {
    min-width: 40px;
  }

  .hero h1 {
    font-size: clamp(50px, 17vw, 72px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
