:root {
  --bg: #080808;
  --bg-soft: #111113;
  --surface: #161618;
  --surface-soft: #1d1d20;
  --paper: #f5f5f7;
  --paper-text: #1d1d1f;
  --paper-muted: #66666d;
  --text: #f5f5f7;
  --muted: #b7b7bd;
  --subtle: #77777f;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #f5f5f7;
  --accent-text: #090909;
  --radius: 8px;
  --section-width: 1180px;
  --header-height: 72px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, #111113 0%, #080808 42%, #080808 100%);
}

body.nav-open {
  overflow: hidden;
}

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

.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;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 8, 8, 0.76);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav,
.section-shell,
.site-footer {
  width: min(var(--section-width), calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand-link,
.nav-links,
.hero-actions,
.community-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 600;
}

.logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.logo-mark::before,
.logo-mark::after,
.logo-mark span {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.logo-mark::before {
  inset: 0;
  border-top-color: var(--text);
  border-right-color: rgba(245, 245, 247, 0.42);
  transform: rotate(-28deg);
}

.logo-mark::after {
  inset: 6px;
  border-left-color: rgba(245, 245, 247, 0.7);
  border-bottom-color: rgba(245, 245, 247, 0.26);
  transform: rotate(18deg);
}

.logo-mark span {
  inset: 11px;
  border-top-color: rgba(245, 245, 247, 0.68);
  transform: rotate(62deg);
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  display: grid;
  place-items: center;
  min-height: auto;
  padding: 78px 0 44px;
  text-align: center;
}

.hero-copy {
  width: min(980px, 100%);
}

.project-note,
.section-kicker,
.feature-number {
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
}

.project-note {
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(4.35rem, 9vw, 7.9rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-line {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: 0;
}

.hero-description {
  width: min(720px, 100%);
  margin: 0 auto 34px;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
}

.hero-actions,
.community-actions {
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffffff;
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.button-text {
  color: var(--muted);
  padding-inline: 12px;
  background: transparent;
}

.button-text:hover,
.button-text:focus-visible {
  color: var(--text);
}

.section-heading p:not(.section-kicker) {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.section-heading.centered {
  width: min(780px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.centered h2,
.section-heading.centered p {
  margin-right: auto;
  margin-left: auto;
}

.product-showcase {
  padding: 0 0 118px;
}

.browser-stage {
  position: relative;
  padding: 0 clamp(0px, 4vw, 46px);
}

.browser-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: #f5f5f7;
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.46);
}

.browser-bar {
  display: grid;
  grid-template-columns: 104px 1fr 104px;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid #e6e6eb;
  background: #fbfbfd;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d6d6dc;
}

.address-pill {
  justify-self: center;
  width: min(430px, 100%);
  padding: 10px 18px;
  color: #7b7b83;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 999px;
  background: #eeeeF2;
}

.browser-page {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: clamp(440px, 52vw, 660px);
}

.browser-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 42px 28px;
  border-right: 1px solid #e7e7ec;
  background: #f0f0f4;
}

.browser-sidebar span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #dadbe1;
}

.browser-sidebar span:nth-child(2) {
  width: 74%;
}

.browser-sidebar span:nth-child(3) {
  width: 52%;
}

.browser-main {
  display: grid;
  align-content: center;
  padding: clamp(46px, 8vw, 92px);
  color: var(--paper-text);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.mini-label {
  margin-bottom: 28px;
  color: #86868b;
  font-size: 0.95rem;
  font-weight: 600;
}

.browser-main h2 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--paper-text);
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.browser-main p:not(.mini-label) {
  max-width: 540px;
  color: var(--paper-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.soft-lines {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  margin-top: 70px;
}

.soft-lines span {
  height: 12px;
  border-radius: 999px;
  background: #e2e2e8;
}

.soft-lines span:nth-child(2) {
  width: 78%;
}

.soft-lines span:nth-child(3) {
  width: 54%;
}

.product-story {
  padding: 126px 0;
}

.story-light {
  color: var(--paper-text);
  background: var(--paper);
}

.story-light p {
  color: var(--paper-muted);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.story-grid.reverse {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
}

.story-copy h2 {
  max-width: 820px;
}

.story-copy p:not(.section-kicker) {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.privacy-panel,
.speed-panel {
  border-radius: 30px;
}

.privacy-panel {
  overflow: hidden;
  border: 1px solid #e1e1e6;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.1);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid #ededf2;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row span {
  color: #1d1d1f;
  font-weight: 650;
}

.setting-row strong {
  color: #6e6e73;
  font-size: 0.9rem;
  font-weight: 600;
}

.speed-panel {
  display: grid;
  gap: 14px;
}

.speed-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface);
}

.speed-card span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
}

.speed-card p {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 650;
}

.primary-card {
  min-height: 144px;
  background: #f5f5f7;
}

.primary-card p {
  color: #1d1d1f;
}

.primary-card span {
  background: #1d1d1f;
}

.updates-section {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.72fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: start;
  padding: 116px 0;
}

.updates-copy p:not(.section-kicker) {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.updates-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--line-soft);
}

.updates-list p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 22px 24px;
  margin: 0;
  color: var(--text);
  background: var(--surface);
}

.updates-list span {
  color: var(--subtle);
  font-weight: 650;
}

.community-section {
  padding: 0 0 112px;
}

.community-copy {
  padding: clamp(42px, 7vw, 74px);
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background: var(--surface-soft);
}

.community-copy h2 {
  margin-right: auto;
  margin-left: auto;
}

.community-copy p:not(.section-kicker) {
  width: min(640px, 100%);
  margin-right: auto;
  margin-bottom: 30px;
  margin-left: auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line-soft);
}

.site-footer p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.footer-links {
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .story-grid,
  .story-grid.reverse,
  .updates-section {
    grid-template-columns: 1fr;
  }

  .browser-page {
    grid-template-columns: 1fr;
  }

  .browser-sidebar {
    display: none;
  }

  .updates-section {
    padding: 90px 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(18, 18, 20, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 44px;
  }

  h1 {
    font-size: clamp(3.5rem, 16vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-line {
    font-size: clamp(1.25rem, 7vw, 1.8rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .product-showcase {
    padding-bottom: 76px;
  }

  .browser-window,
  .privacy-panel,
  .community-copy {
    border-radius: 22px;
  }

  .browser-bar {
    grid-template-columns: 72px 1fr;
    min-height: 52px;
    padding: 0 14px;
  }

  .address-pill {
    justify-self: stretch;
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .browser-page {
    min-height: 460px;
  }

  .browser-main {
    padding: 40px 24px;
  }

  .browser-main h2 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .soft-lines {
    margin-top: 46px;
  }

  .product-story {
    padding: 82px 0;
  }

  .updates-list p {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .community-section {
    padding-bottom: 84px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
