:root {
  color-scheme: light dark;
  --page: #f1f3f7;
  --surface: #fafbfc;
  --surface-strong: #ffffff;
  --text: #171922;
  --muted: #5b6270;
  --line: rgba(23, 25, 34, 0.14);
  --accent: #5456c9;
  --accent-soft: #e7e7ff;
  --button-text: #ffffff;
  --shadow: rgba(34, 38, 70, 0.18);
  --header: rgba(241, 243, 247, 0.86);
  --radius: 24px;
  --shell: min(1200px, calc(100% - 40px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0c12;
    --surface: #11131b;
    --surface-strong: #171a24;
    --text: #f2f4fa;
    --muted: #a8afbd;
    --line: rgba(226, 230, 241, 0.14);
    --accent: #9a98ff;
    --accent-soft: #24233f;
    --button-text: #101119;
    --shadow: rgba(0, 0, 0, 0.36);
    --header: rgba(11, 12, 18, 0.84);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button,
.button {
  font: inherit;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 7px 20px var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 550;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
  transition: color 220ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
}

.hero {
  min-height: calc(100dvh - 69px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding-block: 64px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 6vw, 5.9rem);
  font-weight: 650;
}

.hero-summary {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

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

.button:active {
  transform: translateY(1px) scale(0.98);
}

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

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #191b21;
  box-shadow: 0 28px 80px var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.status-line {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}

.section {
  padding-block: clamp(88px, 12vw, 160px);
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(32px, 8vw, 120px);
}

.manifesto h2,
.section-heading h2,
.privacy-callout h2,
.support-callout h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 620;
}

.manifesto p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1.16rem;
}

.layout-story {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(48px, 10vw, 148px);
}

.layout-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--shadow);
}

.layout-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.layout-copy h2,
.controls-copy h2 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 620;
}

.layout-copy > p,
.controls-copy p,
.section-heading p,
.privacy-callout > p:not(.eyebrow),
.support-callout > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.layout-list {
  margin: 46px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.layout-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.layout-list dt {
  font-weight: 650;
}

.layout-list dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.controls-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(52px, 10vw, 140px);
  align-items: start;
}

.control-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.control-specs div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.control-specs strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.control-specs span {
  max-width: 230px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-areas:
    "wide visual"
    "plain accent";
  gap: 18px;
}

.feature {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  font-weight: 620;
}

.feature p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-wide {
  grid-area: wide;
  min-height: 390px;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 28%),
    var(--surface);
}

.feature-visual {
  grid-area: visual;
  min-height: 390px;
  justify-content: space-between;
  background: var(--surface-strong);
}

.feature-visual img {
  width: 132px;
  border-radius: 28px;
  box-shadow: 0 22px 50px var(--shadow);
}

.feature-visual h3,
.feature-plain h3,
.feature-accent h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.feature-plain {
  grid-area: plain;
}

.feature-accent {
  grid-area: accent;
  background: var(--accent-soft);
}

.privacy-callout,
.support-callout {
  position: relative;
  padding-inline: clamp(24px, 7vw, 88px);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.privacy-callout h2,
.support-callout h2 {
  max-width: 880px;
  margin-bottom: 28px;
}

.privacy-callout > p:not(.eyebrow),
.support-callout > p:not(.eyebrow) {
  margin-bottom: 30px;
}

.text-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  transition: opacity 180ms ease;
}

.text-link:hover {
  opacity: 0.72;
}

.independence {
  padding-block: 48px 80px;
  color: var(--muted);
  font-size: 0.82rem;
}

.independence p {
  max-width: 850px;
  margin-bottom: 0;
}

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

.footer-inner {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 60px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-inner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.copyright {
  grid-column: 1 / -1;
  padding-bottom: 28px;
}

.legal {
  padding-block: clamp(64px, 10vw, 120px);
}

.legal-header {
  max-width: 850px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.legal-header h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 620;
}

.legal-date {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-intro {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.14rem, 2vw, 1.35rem);
}

.legal-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  justify-content: space-between;
  gap: clamp(48px, 10vw, 140px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-toc strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.94rem;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-content section {
  padding: 0 0 60px;
}

.legal-content h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 620;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  margin: 24px 0;
  padding-left: 1.25rem;
}

.legal-content li {
  padding: 5px 0 5px 8px;
}

.legal-note {
  margin: 10px 0 42px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.legal-note p {
  margin: 8px 0 0;
}

.legal-back {
  margin-bottom: 40px;
}

.compact-footer {
  min-height: 140px;
}

.compact-footer .footer-brand {
  margin-bottom: 0;
}

.compact-footer .copyright {
  grid-column: auto;
  padding: 0;
  text-align: right;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .reveal-delay {
  transition-delay: 100ms;
}

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

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 64px 48px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-media {
    width: min(100%, 720px);
  }

  .manifesto,
  .layout-story,
  .controls-section,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .manifesto {
    align-items: start;
  }

  .manifesto h2 {
    max-width: 780px;
  }

  .manifesto p {
    max-width: 620px;
  }

  .layout-story {
    gap: 56px;
  }

  .layout-photo {
    width: min(100%, 540px);
  }

  .controls-section {
    gap: 48px;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 32px);
    --radius: 18px;
  }

  .nav {
    min-height: 64px;
  }

  .menu-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    cursor: pointer;
  }

  .menu-label {
    font-size: 0.88rem;
    font-weight: 650;
  }

  .menu-lines,
  .menu-lines::before {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms var(--ease);
  }

  .menu-lines {
    position: relative;
    transform: translateY(-3px);
  }

  .menu-lines::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
  }

  .menu-button[aria-expanded="true"] .menu-lines {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-lines::before {
    top: 0;
    transform: rotate(90deg);
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--page);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.2rem);
  }

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

  .button {
    width: 100%;
  }

  .status-line {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 18px;
  }

  .section {
    padding-block: 88px;
  }

  .manifesto {
    gap: 28px;
  }

  .manifesto h2,
  .section-heading h2,
  .privacy-callout h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .layout-story {
    gap: 44px;
  }

  .layout-list,
  .control-specs {
    grid-template-columns: 1fr;
  }

  .control-specs div {
    min-height: 116px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "wide"
      "visual"
      "plain"
      "accent";
  }

  .feature,
  .feature-wide,
  .feature-visual {
    min-height: 280px;
  }

  .privacy-callout {
    width: calc(100% - 32px);
    padding-block: 64px;
  }

  .footer-inner,
  .compact-footer {
    grid-template-columns: 1fr;
    align-content: center;
    padding-block: 48px 28px;
  }

  .copyright,
  .compact-footer .copyright {
    grid-column: auto;
    padding: 0;
    text-align: left;
  }

  .legal {
    padding-top: 58px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-toc strong {
    grid-column: auto;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
