:root {
  color-scheme: light dark;
  --background: #f8f8fa;
  --surface: #fefeff;
  --surface-muted: #f1f1f6;
  --surface-strong: #e9e9f1;
  --text: #17171c;
  --muted: #555560;
  --soft: #72727d;
  --primary: #6366f1;
  --primary-strong: #4f52d7;
  --primary-soft: #ededff;
  --divider: #e1e1e8;
  --shadow: 0 18px 50px rgba(44, 44, 72, 0.08);
  --shadow-small: 0 8px 24px rgba(44, 44, 72, 0.06);
  --radius-card: 18px;
  --radius-control: 999px;
  --page-width: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--surface);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid color-mix(in srgb, var(--divider) 76%, transparent);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: var(--page-width);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: var(--shadow-small);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.nav a,
.header-action,
.primary-link,
.text-link {
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms ease;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.nav a[aria-current="true"] {
  background: var(--surface-muted);
  color: var(--text);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--surface);
  font-size: 14px;
  font-weight: 750;
}

.header-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-small);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
  max-width: var(--page-width);
  min-height: min(690px, calc(100dvh - 70px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 116px) 24px;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 750px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

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

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: #fdfdff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.2);
}

.primary-link:hover {
  background: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.24);
}

.text-link {
  color: var(--text);
  font-weight: 750;
}

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

.header-action:active,
.primary-link:active,
.text-link:active,
.nav a:active,
.brand:active,
.footer a:active {
  transform: scale(0.98);
}

.hero-visual {
  width: min(100%, 330px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: clamp(28px, 5vw, 54px);
  box-shadow:
    0 28px 70px rgba(24, 24, 40, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.72fr)) minmax(260px, 1.4fr);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 86px;
}

.fact {
  min-width: 0;
  padding: 4px 22px;
  border-left: 1px solid var(--divider);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 650;
}

.fact strong,
.fact a {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}

.fact-contact a {
  color: var(--primary-strong);
  overflow-wrap: anywhere;
}

.page-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(48px, 8vw, 96px);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}

.contents {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 5px;
  padding: 18px 0;
}

.contents p {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.contents a {
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.contents a:hover,
.contents a[aria-current="true"] {
  color: var(--primary-strong);
  transform: translateX(3px);
}

.contents span {
  margin-top: 18px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.documents {
  min-width: 0;
}

.policy-section {
  padding: 18px 0 110px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4.3vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-heading > span {
  display: block;
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

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

.document-panel {
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.document-block {
  padding: clamp(24px, 4vw, 36px);
}

.document-block + .document-block {
  border-top: 1px solid var(--divider);
}

.document-block p:last-child,
.document-block li:last-child {
  margin-bottom: 0;
}

.inline-link {
  color: var(--primary-strong);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.document-block ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 34px;
  margin: 0;
  padding-left: 22px;
}

.document-block li {
  padding-left: 4px;
}

.terms-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 44px;
}

.terms-list article {
  padding: 26px 0;
  border-top: 1px solid var(--divider);
}

.terms-list article:nth-child(-n + 2) {
  padding-top: 0;
  border-top: 0;
}

.terms-list p:last-child {
  margin-bottom: 0;
}

.guideline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guideline-card {
  min-height: 230px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.guideline-card:nth-child(2),
.guideline-card:nth-child(3) {
  background: var(--surface-muted);
}

.guideline-card p:last-child {
  margin-bottom: 0;
}

.guideline-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--divider));
  box-shadow: var(--shadow);
}

.beta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(30px, 6vw, 64px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.beta-copy p:last-child,
.beta-checklist ul:last-child,
.beta-note p:last-child {
  margin-bottom: 0;
}

.beta-checklist {
  padding-left: clamp(0px, 3vw, 32px);
  border-left: 1px solid var(--divider);
}

.beta-checklist ul {
  display: grid;
  gap: 11px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.beta-checklist li {
  padding-left: 3px;
}

.beta-note {
  margin-top: 16px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
}

.resource-links a {
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.resource-links a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.deletion-section {
  padding-bottom: 120px;
}

.deletion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 5vw, 54px);
  padding: clamp(26px, 5vw, 48px);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.deletion-copy p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  align-self: start;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--divider));
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.contact-panel > span {
  display: block;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.contact-panel strong {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.contact-panel a {
  display: block;
  color: var(--primary-strong);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-panel p {
  margin: 14px 0 0;
  font-size: 14px;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 42px 24px 56px;
  border-top: 1px solid var(--divider);
}

.footer strong {
  font-size: 17px;
}

.footer p {
  margin: 4px 0 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer a:hover {
  color: var(--primary-strong);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

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

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition:
      opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-visual {
    transition-delay: 100ms;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151519;
    --surface: #1d1d23;
    --surface-muted: #23232a;
    --surface-strong: #2a2a32;
    --text: #f3f3f6;
    --muted: #b7b7c1;
    --soft: #92929e;
    --primary: #8587ff;
    --primary-strong: #a0a2ff;
    --primary-soft: #292941;
    --divider: #34343d;
    --shadow: 0 18px 50px rgba(4, 4, 8, 0.28);
    --shadow-small: 0 8px 24px rgba(4, 4, 8, 0.2);
  }

  .primary-link {
    color: #141419;
  }

  .header-action {
    background: var(--text);
    color: var(--background);
  }

  .hero-visual img {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  }
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
  }

  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

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

  .contents {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 14px;
    scrollbar-width: none;
  }

  .contents::-webkit-scrollbar {
    display: none;
  }

  .contents p,
  .contents span {
    display: none;
  }

  .contents a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: var(--radius-control);
    background: var(--surface-muted);
  }

  .policy-section {
    padding-top: 36px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 128px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: 62px;
    padding: 10px 18px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -18px -10px;
    padding: 0 18px 10px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 62px 18px 70px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(42px, 13vw, 62px);
    letter-spacing: -0.04em;
  }

  .hero-visual {
    width: min(58vw, 260px);
    justify-self: start;
  }

  .fact-strip {
    padding: 0 18px 74px;
  }

  .fact {
    padding: 2px 16px;
  }

  .fact:nth-child(odd) {
    padding-left: 0;
  }

  .page-layout {
    padding: 0 18px;
  }

  .document-block ul,
  .terms-list,
  .guideline-grid,
  .beta-panel,
  .deletion-panel {
    grid-template-columns: 1fr;
  }

  .beta-checklist {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--divider);
    border-left: 0;
  }

  .terms-list article:nth-child(2) {
    padding-top: 26px;
    border-top: 1px solid var(--divider);
  }

  .guideline-card {
    min-height: 0;
  }

  .deletion-section {
    padding-bottom: 90px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 18px 44px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .brand span {
    font-size: 15px;
  }

  .header-action {
    font-size: 13px;
  }

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

  .fact-strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .fact,
  .fact:nth-child(odd),
  .fact:nth-child(3) {
    padding: 0;
    border-left: 0;
  }
}

@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 [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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