:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #152033;
  --muted: #5b6678;
  --line: #dde2ea;
  --navy: #0e1726;
  --teal: #267f78;
  --gold: #9d641d;
  --soft: #eef5f4;
  --soft-gold: #fff4e1;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--gold);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.nav {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.94rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.language-menu {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px 12px;
  color: var(--ink);
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(21, 32, 51, 0.12);
  padding: 8px;
  z-index: 20;
}

.language-options a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: var(--soft);
  color: var(--ink);
}

.language-options label {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.language-options label:hover,
body:has(#magicmap-lang-en:checked) label[for="magicmap-lang-en"],
body:has(#magicmap-lang-zh-hant:checked) label[for="magicmap-lang-zh-hant"],
body:has(#magicmap-lang-ja:checked) label[for="magicmap-lang-ja"],
body:has(#magicmap-lang-ko:checked) label[for="magicmap-lang-ko"],
body:has(#magicmap-lang-de:checked) label[for="magicmap-lang-de"],
body:has(#magicmap-lang-es:checked) label[for="magicmap-lang-es"],
body:has(#magicmap-lang-fr:checked) label[for="magicmap-lang-fr"],
body:has(#magicmap-lang-it:checked) label[for="magicmap-lang-it"] {
  background: var(--soft);
  color: var(--ink);
}

main {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  padding: 76px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
}

.eyebrow {
  color: var(--gold);
  font-weight: 720;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  margin: 0;
  max-width: 880px;
}

h2 {
  font-size: 1.55rem;
  margin: 0 0 18px;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 780px;
  margin-top: 24px;
  overflow-wrap: break-word;
}

.hero-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 22px;
}

.hero-panel strong {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.status-list,
.link-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.status-list li:first-child {
  border-top: 0;
}

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

.section-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 48px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.support-feature {
  grid-column: 1 / -1;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--soft);
}

.product-card h3 {
  margin-bottom: 6px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #cfe1de;
  border-radius: 999px;
  background: var(--soft);
  padding: 2px 9px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 720;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  padding: 3px 10px;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 100%;
  white-space: normal;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 8px 14px;
  font-weight: 720;
  text-decoration: none;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.button-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.text-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  overflow-wrap: anywhere;
}

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

.card p,
.policy-body li {
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.product-page {
  padding-bottom: 64px;
}

.product-hero {
  padding: 62px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.product-hero > *,
.section-grid > *,
.product-visual,
.product-card,
.spotlight-card,
.gallery-card {
  min-width: 0;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.product-identity .app-icon {
  width: 68px;
  height: 68px;
}

.product-visual {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-visual img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.product-visual.browser-visual img {
  max-height: none;
  object-fit: contain;
  background: #f5f3ee;
}

.product-visual.logo-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 42px;
  background: var(--soft);
}

.product-visual.logo-visual img {
  object-fit: contain;
  max-height: 260px;
}

.spotlight-band {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

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

.spotlight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.product-story {
  display: grid;
  gap: 18px;
}

.story-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.story-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.story-row strong {
  color: var(--ink);
}

.story-row p {
  color: var(--muted);
  overflow-wrap: break-word;
}

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

.gallery-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.gallery-card h3 {
  margin-top: 14px;
}

.gallery-card p {
  color: var(--muted);
  font-size: 0.94rem;
  overflow-wrap: break-word;
}

.phone-gallery .gallery-card img {
  height: 470px;
}

.wide-gallery .gallery-card img {
  height: 270px;
}

.browser-gallery .gallery-card img {
  height: 300px;
  object-fit: contain;
  background: #f5f3ee;
}

.qr-image {
  display: block;
  width: min(100%, 220px);
  margin: 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-link {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.snapshot-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
}

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

.fact-item {
  border-left: 3px solid var(--teal);
  padding-left: 14px;
}

.fact-item strong {
  display: block;
  margin-bottom: 4px;
}

.fact-item span {
  color: var(--muted);
  overflow-wrap: break-word;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 44px 0 64px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a,
.toc label,
.link-list a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover,
.toc label:hover,
.link-list a:hover {
  color: var(--teal);
}

.toc label {
  cursor: pointer;
}

.policy-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}

.policy-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  overflow-wrap: anywhere;
}

.policy-title span {
  display: block;
}

.policy-product-name {
  font-size: 0.72em;
  color: var(--muted);
}

.policy-language-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.policy-language-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.policy-language-tabs::before {
  content: "Language / 語言";
  padding: 5px 8px 5px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.policy-language-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.2;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.policy-language-tabs label:hover {
  color: var(--ink);
}

#magicmap-lang-en:checked ~ .policy-language-tabs label[for="magicmap-lang-en"],
#magicmap-lang-zh-hant:checked ~ .policy-language-tabs label[for="magicmap-lang-zh-hant"],
#magicmap-lang-ja:checked ~ .policy-language-tabs label[for="magicmap-lang-ja"],
#magicmap-lang-ko:checked ~ .policy-language-tabs label[for="magicmap-lang-ko"],
#magicmap-lang-de:checked ~ .policy-language-tabs label[for="magicmap-lang-de"],
#magicmap-lang-es:checked ~ .policy-language-tabs label[for="magicmap-lang-es"],
#magicmap-lang-fr:checked ~ .policy-language-tabs label[for="magicmap-lang-fr"],
#magicmap-lang-it:checked ~ .policy-language-tabs label[for="magicmap-lang-it"] {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 2px 8px rgba(21, 32, 51, 0.14);
}

#magicmap-lang-en:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-en"],
#magicmap-lang-zh-hant:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-zh-hant"],
#magicmap-lang-ja:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-ja"],
#magicmap-lang-ko:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-ko"],
#magicmap-lang-de:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-de"],
#magicmap-lang-es:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-es"],
#magicmap-lang-fr:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-fr"],
#magicmap-lang-it:focus-visible ~ .policy-language-tabs label[for="magicmap-lang-it"] {
  outline: 3px solid rgba(38, 127, 120, 0.32);
  outline-offset: 2px;
}

.policy-language-panels > .policy-language-panel {
  display: none;
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

#magicmap-lang-en:checked ~ .policy-language-panels > [data-policy-language="en"],
#magicmap-lang-zh-hant:checked ~ .policy-language-panels > [data-policy-language="zh-Hant"],
#magicmap-lang-ja:checked ~ .policy-language-panels > [data-policy-language="ja"],
#magicmap-lang-ko:checked ~ .policy-language-panels > [data-policy-language="ko"],
#magicmap-lang-de:checked ~ .policy-language-panels > [data-policy-language="de"],
#magicmap-lang-es:checked ~ .policy-language-panels > [data-policy-language="es"],
#magicmap-lang-fr:checked ~ .policy-language-panels > [data-policy-language="fr"],
#magicmap-lang-it:checked ~ .policy-language-panels > [data-policy-language="it"] {
  display: block;
}

.policy-body section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-body section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.policy-body ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 14px;
}

.callout {
  background: var(--soft);
  border: 1px solid #cfe1de;
  border-radius: 8px;
  padding: 20px;
  margin: 22px 0;
}

.callout.gold {
  background: var(--soft-gold);
  border-color: #f1d59c;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 42px;
  color: var(--muted);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
    gap: 12px;
  }

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

  .nav-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .language-options {
    left: 0;
    right: auto;
  }

  .hero,
  .section-grid,
  .legal-layout,
  .product-hero {
    display: block;
    grid-template-columns: 1fr;
  }

  .hero > * + *,
  .section-grid > * + *,
  .legal-layout > * + *,
  .product-hero > * + * {
    margin-top: 28px;
  }

  .hero {
    padding-top: 48px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .spotlight-grid,
  .fact-grid,
  .gallery-grid,
  .gallery-grid.two-up {
    grid-template-columns: 1fr;
  }

  .story-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .toc {
    position: static;
  }

  .policy-body {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  main,
  .nav,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .nav-links {
    gap: 6px 13px;
    font-size: 0.9rem;
    min-width: 0;
  }

  .nav-actions {
    display: block;
    gap: 8px 12px;
    max-width: calc(100vw - 24px);
  }

  .nav-links {
    margin-bottom: 8px;
  }

  .language-menu {
    max-width: 100%;
    display: inline-block;
  }

  .language-menu summary {
    max-width: 100%;
  }

  .product-identity {
    align-items: flex-start;
  }

  h1 {
    font-size: 2.25rem;
  }

  .policy-title {
    font-size: 1.75rem;
    line-height: 1.18;
  }

  main,
  .product-page,
  .product-hero,
  .product-hero > *,
  .section-grid,
  .section-grid > *,
  .product-visual,
  .gallery-grid,
  .gallery-card {
    max-width: calc(100vw - 24px);
  }

  .policy-body,
  .card,
  .hero-panel,
  .toc,
  .product-card,
  .spotlight-card {
    padding: 18px;
  }

  .gallery-card img,
  .phone-gallery .gallery-card img,
  .wide-gallery .gallery-card img {
    height: auto;
  }
}

/* CSP-safe bilingual controls for ResearchNote AI legal and support pages. */
.language-choice {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.language-copy {
  display: none;
}

.language-switch label {
  display: inline-block;
  padding: 0.46rem 0.92rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 999px;
  background: #fff;
  color: var(--teal, #0f766e);
  cursor: pointer;
  font-weight: 700;
}

.language-switch label:focus-within {
  outline: 3px solid color-mix(in srgb, var(--teal, #0f766e) 35%, transparent);
  outline-offset: 2px;
}

#rn-privacy-en:checked ~ .language-switch label[for="rn-privacy-en"],
#rn-privacy-zh:checked ~ .language-switch label[for="rn-privacy-zh"],
#rn-support-en:checked ~ .language-switch label[for="rn-support-en"],
#rn-support-zh:checked ~ .language-switch label[for="rn-support-zh"] {
  border-color: var(--teal, #0f766e);
  background: var(--teal, #0f766e);
  color: #fff;
}

#rn-privacy-en:checked ~ .back-link .language-copy--en,
#rn-privacy-en:checked ~ h1 .language-copy--en,
#rn-privacy-en:checked ~ .policy-shell__meta .language-copy--en,
#rn-privacy-zh:checked ~ .back-link .language-copy--zh,
#rn-privacy-zh:checked ~ h1 .language-copy--zh,
#rn-privacy-zh:checked ~ .policy-shell__meta .language-copy--zh,
#rn-support-en:checked ~ .back-link .language-copy--en,
#rn-support-en:checked ~ h1 .language-copy--en,
#rn-support-en:checked ~ .policy-shell__meta .language-copy--en,
#rn-support-en:checked ~ .policy-shell__desc .language-copy--en,
#rn-support-zh:checked ~ .back-link .language-copy--zh,
#rn-support-zh:checked ~ h1 .language-copy--zh,
#rn-support-zh:checked ~ .policy-shell__meta .language-copy--zh,
#rn-support-zh:checked ~ .policy-shell__desc .language-copy--zh {
  display: inline;
}

.policy-language-panel {
  display: none;
}

#rn-privacy-en:checked ~ .policy-language-panel[data-lang-panel="en"],
#rn-privacy-zh:checked ~ .policy-language-panel[data-lang-panel="zh"],
#rn-support-en:checked ~ .policy-language-panel[data-lang-panel="en"],
#rn-support-zh:checked ~ .policy-language-panel[data-lang-panel="zh"] {
  display: block;
}

/*
 * Scholarial Tech foundation
 * A shared visual language for product, support, and legal pages. New pages can
 * use the existing semantic classes above without introducing page-specific UI.
 */
:root {
  --bg: #eef3f4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #10213c;
  --muted: #52627a;
  --line: rgba(31, 62, 88, 0.16);
  --navy: #071d38;
  --navy-deep: #031426;
  --teal: #087b86;
  --teal-dark: #005e6b;
  --gold: #b97824;
  --gold-bright: #e6bd72;
  --soft: #e6f2f1;
  --soft-gold: #fff3dc;
  --max: 1180px;
  --font-display: "Iowan Old Style", "Baskerville", "Times New Roman", "Noto Serif TC", serif;
  --font-ui: "Avenir Next", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 50px rgba(5, 28, 53, 0.09);
  --shadow-lift: 0 26px 66px rgba(5, 28, 53, 0.16);
}

html {
  background: var(--navy-deep);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -5%, rgba(230, 189, 114, 0.29), transparent 25rem),
    radial-gradient(circle at 94% 4%, rgba(8, 123, 134, 0.18), transparent 28rem),
    linear-gradient(118deg, #f7f4ec 0%, #eef5f5 48%, #edf1f5 100%) !important;
  color: var(--ink);
  font-family: var(--font-ui) !important;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(8, 123, 134, 0.22);
  color: var(--navy-deep);
}

a {
  color: var(--teal-dark);
  text-decoration-color: rgba(8, 123, 134, 0.42);
  text-decoration-thickness: 0.09em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(3, 20, 38, 0.92);
  box-shadow: 0 8px 28px rgba(3, 20, 38, 0.14);
  backdrop-filter: blur(18px) saturate(145%);
}

.nav {
  min-height: 78px;
}

.brand {
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.nav-links a,
.nav-actions > a {
  color: rgba(238, 246, 248, 0.72);
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-actions > a:hover {
  color: #ffffff;
}

.language-menu {
  color: rgba(238, 246, 248, 0.8);
}

.language-menu summary {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 700;
}

.language-options {
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(7, 29, 56, 0.98);
  box-shadow: var(--shadow-lift);
}

.language-options a,
.language-options label {
  color: rgba(238, 246, 248, 0.75);
}

.language-options a:hover,
.language-options a[aria-current="true"],
.language-options label:hover {
  background: rgba(230, 189, 114, 0.14);
  color: #fffdf8;
}

main {
  position: relative;
}

.hero,
.product-hero {
  padding-top: clamp(4.8rem, 10vw, 8.2rem);
  padding-bottom: clamp(3.8rem, 7vw, 5.8rem);
}

.hero::before,
.product-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(44vw, 550px);
  height: min(44vw, 550px);
  border: 1px solid rgba(8, 123, 134, 0.16);
  border-radius: 50%;
  transform: translate(6%, -24%);
  background: repeating-radial-gradient(circle at center, transparent 0 22px, rgba(8, 123, 134, 0.06) 23px 24px);
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
.policy-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 960px;
  font-size: clamp(3rem, 6.6vw, 6.25rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.72;
}

.hero-panel,
.card,
.product-card,
.spotlight-card,
.gallery-card,
.product-visual,
.policy-body,
.toc,
.policy-card,
body .policy-card {
  border: 1px solid rgba(31, 62, 88, 0.15) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: blur(12px);
}

.hero-panel,
.product-card,
.spotlight-card,
.card,
.policy-card,
body .policy-card {
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.product-card::before,
.spotlight-card::before,
.card::before,
.policy-card::before,
body .policy-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(8, 123, 134, 0.68), rgba(230, 189, 114, 0.8), transparent);
}

.card,
.product-card,
.spotlight-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card:hover,
.product-card:hover,
.spotlight-card:hover {
  border-color: rgba(8, 123, 134, 0.38) !important;
  box-shadow: var(--shadow-lift) !important;
  transform: translateY(-4px);
}

.app-icon {
  border-color: rgba(8, 123, 134, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(5, 28, 53, 0.13);
}

.product-badge,
.chip {
  border-color: rgba(8, 123, 134, 0.2);
  background: rgba(230, 242, 241, 0.78);
  color: var(--teal-dark);
  font-weight: 760;
}

.button-link {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(128deg, var(--teal-dark), var(--teal));
  box-shadow: 0 10px 22px rgba(0, 94, 107, 0.24);
  font-weight: 760;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-link:hover {
  background: linear-gradient(128deg, #9d641d, var(--gold));
  box-shadow: 0 14px 30px rgba(157, 100, 29, 0.28);
  transform: translateY(-2px);
}

.text-link {
  color: var(--teal-dark);
  font-weight: 760;
}

.section,
.spotlight-band {
  border-top-color: rgba(31, 62, 88, 0.13);
}

.section {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.section-grid > :first-child h2,
.section > h2 {
  position: relative;
  padding-bottom: 16px;
}

.section-grid > :first-child h2::after,
.section > h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--gold-bright));
}

.product-visual,
.gallery-card {
  padding: 10px;
  background: rgba(255, 255, 255, 0.68) !important;
}

.product-visual img,
.gallery-card img {
  border-color: rgba(31, 62, 88, 0.14);
  border-radius: calc(var(--radius-lg) - 8px);
}

.fact-item {
  border-left: 3px solid var(--gold);
}

.story-row {
  border-top-color: rgba(31, 62, 88, 0.13);
}

.callout {
  border-color: rgba(8, 123, 134, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(230, 242, 241, 0.86), rgba(255, 255, 255, 0.74));
}

.callout.gold {
  border-color: rgba(185, 120, 36, 0.3);
  background: linear-gradient(135deg, rgba(255, 243, 220, 0.95), rgba(255, 255, 255, 0.75));
}

.legal-layout {
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.toc {
  padding: 22px;
  background: rgba(255, 255, 255, 0.7) !important;
}

.toc strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.toc a,
.toc label,
.link-list a {
  padding: 8px 0;
  color: var(--muted);
}

.policy-body {
  padding: clamp(26px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.76) !important;
}

.policy-title {
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: 1;
}

.policy-body section {
  border-top-color: rgba(31, 62, 88, 0.13);
}

.policy-language-tabs,
.language-switch {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px rgba(5, 28, 53, 0.06);
}

.policy-language-tabs {
  border-color: rgba(31, 62, 88, 0.14);
}

.policy-language-tabs label,
.language-switch label {
  font-family: var(--font-ui);
}

.policy-language-tabs label {
  font-weight: 760;
}

.policy-shell {
  max-width: min(1080px, calc(100% - 2rem)) !important;
  padding-top: clamp(3rem, 7vw, 6rem) !important;
  padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

body .policy-shell h1 {
  margin-bottom: 0.72rem;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 1;
}

body .policy-shell__meta {
  color: var(--muted);
  font-weight: 680;
}

body .back-link {
  color: var(--teal-dark);
  font-weight: 760;
}

body .policy-card {
  margin-bottom: 1.2rem;
  padding: clamp(1.25rem, 2.4vw, 2rem) !important;
}

body .policy-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

body .policy-card p,
body .policy-card li {
  color: var(--muted);
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
  color: rgba(238, 246, 248, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 6%, var(--teal) 35%, var(--gold-bright) 50%, var(--teal) 65%, transparent 94%);
}

.footer-links a {
  color: rgba(238, 246, 248, 0.72);
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }

  .nav {
    min-height: 0;
  }

  .hero,
  .product-hero {
    padding-top: 4rem;
  }

  .hero::before,
  .product-hero::before {
    width: 340px;
    height: 340px;
    transform: translate(2%, -18%);
  }
}

@media (max-width: 520px) {
  h1,
  body .policy-shell h1 {
    font-size: clamp(2.65rem, 14vw, 3.45rem);
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero,
  .product-hero {
    padding-top: 3.4rem;
  }

  .hero-panel,
  .card,
  .product-card,
  .spotlight-card,
  .policy-card,
  body .policy-card,
  .toc,
  .policy-body {
    border-radius: 18px !important;
  }

  .language-switch {
    gap: 0.35rem;
  }

  .language-switch label {
    padding: 0.42rem 0.72rem;
  }
}

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