:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #767676;
  --soft: #ffffff;
  --soft-2: #f8f8f8;
  --line: #dedede;
  --button: #050505;
  --button-text: #ffffff;
}

body.dark {
  --bg: #050505;
  --text: #ffffff;
  --muted: #9d9d9d;
  --soft: #111111;
  --soft-2: #191919;
  --line: #242424;
  --button: #ffffff;
  --button-text: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  transition: background 260ms ease, color 260ms ease;
}

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

button {
  font: inherit;
}

.header,
main,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.wordmark {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.wordmark img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  object-position: center;
}

body.dark .wordmark img {
  content: url("assets/icon-black.png");
}

.nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--soft);
  border-radius: 999px;
}

.nav a,
.theme-toggle,
.button {
  border-radius: 999px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.nav a {
  padding: 11px 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle {
  justify-self: end;
  border: 0;
  background: var(--soft);
  color: var(--text);
  padding: 12px 17px;
  cursor: pointer;
}

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

.hero {
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: center;
  gap: 64px;
  padding: 40px 0 90px;
  background: var(--bg);
}

.label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(82px, 12vw, 190px);
  line-height: 0.78;
  letter-spacing: -0.095em;
}

.tagline {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.intro,
.page-title p,
.statement p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}

.intro {
  max-width: 610px;
  margin: 30px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

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

.button.secondary {
  background: var(--soft);
  color: var(--text);
}

.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 430px;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.035) 0%,
      rgba(0, 0, 0, 0.018) 28%,
      transparent 62%
    );
  border-radius: 999px;
  isolation: isolate;
}

body.dark .hero-mark {
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.035) 30%,
      transparent 64%
    );
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: min(390px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.055),
    inset 0 0 0 1px rgba(0, 0, 0, 0.025);
  z-index: -1;
}

body.dark .hero-mark::before {
  background: #050505;
  box-shadow:
    0 34px 90px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.hero-mark img {
  width: min(340px, 70vw);
  display: block;
  opacity: 0.98;
  filter: contrast(1.04);
  animation: breathe 6s ease-in-out infinite;
}

body.dark .hero-mark img {
  content: url("assets/icon-black.png");
}

.privacy-hero {
  min-height: calc(72vh - 94px);
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 60px;
  padding: 90px 0;
}

.privacy-hero h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 138px);
  line-height: 0.84;
  letter-spacing: -0.08em;
}

.privacy-hero p:not(.label) {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.privacy-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 0 120px;
}

.privacy-feature {
  min-height: 300px;
  background: var(--soft);
  border-radius: 34px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, background 180ms ease;
}

.privacy-feature:hover {
  transform: translateY(-5px);
  background: var(--soft-2);
}

.privacy-feature.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 614px;
}

.privacy-feature.wide {
  grid-column: span 2;
}

.privacy-feature span,
.support-grid span {
  color: var(--muted);
  font-size: 13px;
}

.privacy-feature h2 {
  margin: auto 0 14px;
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.privacy-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.privacy-final {
  padding: 95px 0 120px;
  border-top: 1px solid var(--line);
}

.privacy-final h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.privacy-final p:not(.label) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.privacy-final a {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.025);
  }
}

.statement {
  padding: 95px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement p {
  max-width: 940px;
  margin: 0;
  font-size: clamp(32px, 4.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text);
}

.modules {
  padding: 105px 0 120px;
}

.module-heading {
  max-width: 640px;
  margin-bottom: 36px;
}

.module-heading h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.module-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.module-grid article,
.support-grid article {
  background: var(--soft);
  border-radius: 34px;
  padding: 28px;
  min-height: 245px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.module-grid article:hover,
.support-grid article:hover {
  transform: translateY(-5px);
  background: var(--soft-2);
}

.module-grid h3,
.support-grid h2 {
  align-self: end;
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.module-grid p,
.support-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-title {
  padding: 120px 0 80px;
  max-width: 880px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.84;
  letter-spacing: -0.08em;
}

.page-title p {
  max-width: 620px;
  margin: 28px 0 0;
}

.page-title .button {
  margin-top: 34px;
}

.accordion {
  max-width: 890px;
  padding-bottom: 120px;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-size: clamp(28px, 4vw, 50px);
  letter-spacing: -0.06em;
}

.accordion-item button span {
  font-size: 28px;
  transition: transform 180ms ease;
}

.accordion-item.open button span {
  transform: rotate(45deg);
}

.accordion-item div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.accordion-item.open div {
  grid-template-rows: 1fr;
}

.accordion-item p {
  overflow: hidden;
  margin: 0;
  padding: 0 0 30px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.accordion-item a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.support-grid {
  padding-bottom: 120px;
}

.footer {
  min-height: 86px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

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

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

@media (max-width: 900px) {
  .header {
    height: auto;
    padding: 18px 0 0;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 16px 12px;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
  }

  .wordmark img {
    width: 48px;
    height: 48px;
  }

  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding: 12px 16px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 72px 0 84px;
  }

  .hero h1,
  .page-title h1 {
    letter-spacing: -0.065em;
  }

  .hero-mark {
    min-height: 340px;
    justify-content: center;
  }

  .hero-mark::before {
    width: min(310px, 82vw);
  }

  .hero-mark img {
    width: min(265px, 72vw);
  }

  .module-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .privacy-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 80px 0;
  }

  .privacy-board {
    grid-template-columns: 1fr;
  }

  .privacy-feature.large,
  .privacy-feature.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .module-grid article,
  .support-grid article {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .header,
  main,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .wordmark span {
    display: inline;
    font-size: 14px;
  }

  .nav {
    padding: 4px;
  }

  .nav a {
    padding: 11px 8px;
    font-size: 13px;
  }

  .theme-toggle {
    font-size: 13px;
    padding: 11px 14px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 62px;
  }

  .tagline {
    font-size: 31px;
    line-height: 1.02;
  }

  .intro,
  .page-title p {
    font-size: 16px;
  }

  .hero-mark {
    min-height: 300px;
  }

  .hero-mark::before {
    width: min(280px, 84vw);
  }

  .hero-mark img {
    width: min(235px, 70vw);
  }

  .statement {
    padding: 72px 0;
  }

  .statement p {
    font-size: 34px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}