:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f7f7f7;
  --muted: #b5b5b5;
  --body-bg: #030303;
  --text-soft: #d7d7d7;
  --soft: #1b1b1b;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(10, 10, 10, 0.74);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --control-bg: rgba(0, 0, 0, 0.38);
  --control-hover: rgba(255, 255, 255, 0.08);
  --resource-hover: rgba(107, 173, 255, 0.14);
  --active-ink: #f7f7f7;
  --max: 1040px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #101010;
  --muted: #686868;
  --body-bg: #ffffff;
  --text-soft: #303030;
  --soft: #f2f2f2;
  --line: rgba(0, 0, 0, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --control-bg: rgba(255, 255, 255, 0.62);
  --control-hover: rgba(0, 0, 0, 0.06);
  --resource-hover: rgba(58, 120, 204, 0.12);
  --active-ink: #101010;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.home-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background: var(--body-bg);
  pointer-events: none;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
}

.cloud-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.site-header,
.site-footer,
.page-shell,
.legal-shell {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.home-page .site-header {
  padding: 18px 0 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(38px, 1fr));
  gap: 2px;
  padding: 2px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  backdrop-filter: blur(18px);
}

.language-switcher button,
.text-button,
.icon-button,
.back-link {
  min-height: 34px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.language-switcher button {
  min-height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 650;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--active-ink);
  border-bottom-color: currentColor;
}

.text-button,
.icon-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 15px;
  background: var(--control-bg);
  backdrop-filter: blur(18px);
}

.icon-button {
  width: 34px;
  padding: 0;
  font-size: 0.96rem;
  line-height: 1;
}

.text-button:hover,
.icon-button:hover,
.back-link:hover,
.language-switcher button:hover {
  background: var(--control-hover);
  color: var(--active-ink);
}

.page-shell {
  padding: clamp(64px, 12vw, 142px) 0 70px;
}

.home-page .page-shell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  padding: clamp(12px, 3vh, 28px) 0 18px;
}

.home-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.hero {
  max-width: 780px;
  min-height: clamp(380px, 58vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section h2,
.legal-eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.subtitle {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 3rem);
  line-height: 1.02;
  font-weight: 620;
}

.lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.home-page .hero {
  min-height: clamp(130px, 22vh, 200px);
  align-items: flex-start;
  text-align: left;
}

.home-page .hero .eyebrow {
  margin-bottom: 8px;
}

.home-page .lede {
  margin-top: 14px;
  max-width: 620px;
  line-height: 1.58;
  text-align: left;
}

.section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.home-page .section {
  padding: 10px 0 0;
}

.home-page .reassurance {
  padding-top: 6px;
  text-align: left;
}

.reassurance p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2.25rem);
  line-height: 1.16;
  font-weight: 560;
}

.home-page .reassurance p {
  max-width: 700px;
  font-size: clamp(1.15rem, 2.35vw, 1.95rem);
  line-height: 1.12;
}

.products-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.products-preview {
  margin-top: auto;
  padding-top: 22px;
  text-align: left;
}

.products-preview-header h2 {
  margin: 0;
}

.products-preview-link {
  color: var(--text-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.products-preview-link:hover {
  color: var(--ink);
}

.product-icon-list {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.product-icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: var(--control-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

:root[data-theme="light"] .product-icon-card {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.product-icon-card:hover {
  background: var(--control-hover);
}

.product-icon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.86rem;
}

.home-page .site-footer {
  padding: 14px 0 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.legal-shell {
  padding: 24px 0 84px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 720;
  text-decoration: none;
}

.legal-header {
  max-width: 780px;
  margin: 42px 0 52px;
}

.legal-header h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.96;
}

.app-privacy-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.app-privacy-title img {
  width: clamp(58px, 10vw, 88px);
  height: clamp(58px, 10vw, 88px);
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
}

.legal-header p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.65;
  white-space: pre-line;
}

.legal-content {
  display: grid;
  gap: 28px;
  max-width: 820px;
}

.app-policy-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.app-policy-card {
  display: flex;
  align-items: flex-start;
  padding: 18px;
  background: var(--control-bg);
  text-decoration: none;
}

.app-policy-card:hover {
  background: var(--control-hover);
}

.app-index-card {
  height: 120px;
  overflow: hidden;
}

.app-index-card > span {
  min-width: 0;
  width: 100%;
}

.app-index-card .app-policy-heading,
.app-index-card strong,
.app-index-card small {
  min-width: 0;
}

.app-index-card strong,
.app-index-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-grid {
  background: transparent;
}

.resource-grid .app-policy-card {
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}

.resource-grid .app-policy-card:hover {
  background: var(--resource-hover);
}

.app-policy-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-policy-heading img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.product-link-heading img {
  width: 32px;
  height: 32px;
}

.app-policy-card strong,
.app-policy-card small {
  display: block;
}

.app-policy-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-section h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: var(--ink);
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.product-media-grid {
  display: grid;
  gap: 16px;
}

.product-media-item {
  margin: 0;
}

.product-media-item img,
.product-media-item video {
  display: block;
  width: 100%;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--control-bg);
}

.product-media-item video {
  aspect-ratio: 16 / 9;
}

.product-media-item figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-detail-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.support-faq article {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.support-faq article:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.support-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.support-footer strong {
  color: var(--ink);
}

.markdown-content {
  display: block;
}

.markdown-content h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.inline-flag {
  display: inline-block;
  width: 1.2em;
  height: 0.8em;
  margin-left: 0.25em;
  vertical-align: -0.08em;
}

.markdown-content .legal-section {
  margin-top: 28px;
}

.placeholder-list strong {
  color: var(--ink);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .page-shell,
  .legal-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding-top: 18px;
  }

  .legal-shell {
    padding-top: 18px;
  }

  .header-actions {
    gap: 8px;
  }

  .page-shell {
    padding-top: 52px;
  }

  .home-page .page-shell {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .home-copy {
    gap: 14px;
  }

  .hero {
    min-height: 520px;
  }

  .home-page .hero {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .subtitle {
    font-size: clamp(1.5rem, 7.5vw, 2.35rem);
  }

  .home-page {
    display: block;
  }

  .home-page .site-header {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .home-page .page-shell {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .legal-shell {
    padding-top: 12px;
  }

}

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

  .cloud-canvas {
    opacity: 0.82;
  }
}
