@font-face {
  font-family: Inter;
  src: url("./assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #faf8ff;
  --hero-paper: #f5f2ff;
  --ink: #151121;
  --muted: #514861;
  --accent: #693ae2;
  --rule: #dfd7ee;
  --gutter: clamp(22px, 5.65vw, 92px);
  --wide-gutter: clamp(13px, 2.1vw, 36px);
  --content: 1320px;
  --wide-content: 1460px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, dl, dd { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:enabled { cursor: pointer; }

:focus-visible { outline: 3px solid #8257e8; outline-offset: 5px; }
[id] { scroll-margin-top: 16px; }

.layout, .layout-wide { margin-inline: auto; }
.layout { width: min(calc(100% - var(--gutter) * 2), var(--content)); }
.layout-wide { width: min(calc(100% - var(--wide-gutter) * 2), var(--wide-content)); }

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  border-radius: 9px;
  padding: 11px 16px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.header-shell, .hero-shell { background: var(--hero-paper); }
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.3vw, 36px);
  width: min(calc(100% - var(--wide-gutter) * 2), var(--wide-content));
  min-height: 80px;
  border-bottom: 1px solid var(--rule);
  padding-inline: clamp(5px, 1.75vw, 28px);
}
.site-header > .wordmark { justify-self: start; }

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 9px;
  font-size: clamp(22px, 2.13vw, 32px);
  font-weight: 790;
  letter-spacing: -.055em;
  line-height: 1;
}
.wordmark img { width: clamp(35px, 3.55vw, 54px); height: auto; object-fit: contain; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(19px, 2.8vw, 43px);
  font-size: 16px;
  font-weight: 620;
}
.site-nav a, .site-footer a:last-child { transition: color .19s ease; }
.site-nav a:hover, .site-footer a:last-child:hover { color: var(--accent); }

.language-picker {
  position: relative;
  justify-self: end;
  width: 190px;
}
.language-picker select {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding-block: 8px;
  padding-inline: 34px 27px;
  color: var(--ink);
  background: #ffffff8f;
  font: inherit;
  font-size: 14px;
  font-weight: 640;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color .19s ease, border-color .19s ease;
}
.language-picker select:enabled { cursor: pointer; }
.language-picker select:hover { border-color: #b4a2d6; background: #fff; }
.language-picker svg {
  position: absolute;
  inset-block-start: 50%;
  color: var(--accent);
  translate: 0 -50%;
  pointer-events: none;
}
.language-globe { inset-inline-start: 11px; }
.language-caret { inset-inline-end: 9px; }

.hero-shell { padding-bottom: 29px; }
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 5vw, 82px);
  padding: clamp(48px, 4.68vw, 74px) clamp(11px, 2.4vw, 39px) clamp(34px, 3.25vw, 52px);
}
.hero h1 {
  font-size: clamp(52px, 7.12vw, 112px);
  font-weight: 800;
  letter-spacing: -.068em;
  line-height: .995;
}
.hero h1 span { display: block; overflow-wrap: anywhere; text-wrap: balance; }
.hero h1 span + span { color: var(--accent); }
.hero-copy { padding-bottom: 1px; }
.hero-copy p {
  max-width: 505px;
  color: #241d31;
  font-size: clamp(18px, 1.91vw, 29px);
  font-weight: 505;
  letter-spacing: -.023em;
  line-height: 1.29;
  text-wrap: pretty;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 55px;
  margin-top: clamp(17px, 1.45vw, 23px);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px clamp(22px, 2.08vw, 32px);
  color: #fff;
  background: var(--ink);
  font-size: clamp(17px, 1.64vw, 24px);
  font-weight: 720;
  letter-spacing: -.03em;
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.primary-action:hover { border-color: var(--accent); background: var(--accent); transform: translateY(-2px); }
.primary-action:active { transform: none; }
.primary-action svg { flex: none; transition: transform .25s var(--ease-out); }
.primary-action:hover svg { transform: translate(2px, 2px); }
html[dir="rtl"] .primary-action svg { scale: -1 1; }
html[dir="rtl"] .primary-action:hover svg { transform: translate(-2px, 2px); }

.feature-band { padding-block: clamp(48px, 4.1vw, 66px) clamp(38px, 3.5vw, 56px); }
.feature-band .layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(37px, 6vw, 95px);
}
.feature-band h2, .privacy-band h2, .release h2 {
  font-size: clamp(37px, 5.02vw, 77px);
  font-weight: 810;
  letter-spacing: -.05em;
  line-height: 1.03;
  overflow-wrap: anywhere;
}
.feature-band h2 span { display: block; }
.section-intro, .band-body {
  color: var(--muted);
  font-size: clamp(18px, 1.82vw, 27px);
  letter-spacing: -.016em;
  line-height: 1.41;
}
.section-intro { max-width: 640px; margin-top: 17px; }
.feature-list { align-self: center; }
.feature-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: clamp(13px, 2.05vw, 30px);
  min-height: 83px;
  padding-block: 14px;
}
.feature-list article + article { border-top: 1px solid var(--rule); }
.feature-list h3 {
  margin-bottom: 4px;
  font-size: clamp(21px, 2.08vw, 30px);
  font-weight: 750;
  letter-spacing: -.039em;
  line-height: 1.15;
}
.feature-list p { color: var(--muted); font-size: clamp(15px, 1.42vw, 20px); line-height: 1.35; }
.feature-icon {
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--accent);
}
.feature-icon svg { width: 43px; height: 43px; }

.privacy-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(19px, 2.28vw, 35px);
  padding: clamp(32px, 3.25vw, 52px) clamp(35px, 4.05vw, 64px);
  color: #faf6ff;
  background: #1a102b;
}
.privacy-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: 32% 0;
  background: url("./assets/frirum-workspace.jpg") right 60% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 46%);
}
html[dir="rtl"] .privacy-band::before { scale: -1 1; }
.privacy-band h2 { font-size: clamp(34px, 4.3vw, 64px); }
.privacy-copy { max-width: 675px; }
.privacy-band .band-body {
  max-width: 630px;
  margin-top: 12px;
  color: #eee6f6;
  font-size: clamp(17px, 1.72vw, 25px);
}
.privacy-note {
  margin-top: 17px;
  color: #d6c9e2;
  font-size: clamp(15px, 1.48vw, 22px);
  line-height: 1.36;
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(25px, 6vw, 95px);
}
.release { padding-block: clamp(40px, 3.7vw, 58px) clamp(33px, 3.25vw, 52px); }
.release h2 { font-size: clamp(34px, 4.56vw, 71px); }
.release .band-body { margin-top: 8px; }
.platforms { font-size: clamp(16px, 1.58vw, 23px); line-height: 1.35; }
.platforms > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  padding-block: 9px;
}
.platforms > div:first-child { padding-top: 3px; }
.platforms > div:last-child { border-bottom: 0; }
.platforms dt { font-weight: 670; }
.platforms dd { color: var(--accent); font-size: .91em; font-weight: 650; text-align: end; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-block: 18px 26px;
}
.site-footer > a:last-child { color: var(--muted); font-size: clamp(14px, 1.43vw, 20px); text-align: end; }

.site-disclaimer { margin: 0 auto; padding-bottom: 28px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

html:is([lang^="zh"], [lang="ja"], [lang="ko"], [lang="th"], [dir="rtl"]) :is(h1, h2, h3) {
  letter-spacing: normal;
  line-height: 1.12;
}

@media (max-width: 810px) {
  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
    padding-block: 43px 31px;
  }
  .hero h1 { font-size: clamp(46px, 9.4vw, 77px); letter-spacing: -.065em; }
  .hero-copy p { max-width: 450px; font-size: clamp(17px, 2.8vw, 23px); }
  .primary-action { min-height: 48px; }
  .feature-band { padding-block: 48px 45px; }
  .feature-band .layout, .band-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .feature-list article { min-height: 75px; }
  .privacy-band::before {
    inset-block: 20% 0;
    inset-inline: 10% 0;
    background-position: right 65%;
    mask-image: linear-gradient(125deg, transparent 31%, #000 100%);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 9px;
    min-height: 0;
    padding-block: 9px 2px;
  }
  .language-picker { grid-column: 2; grid-row: 1; width: clamp(160px, 46vw, 182px); }
  .language-picker select { font-size: 13px; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
    font-size: clamp(12px, 3.55vw, 14px);
  }
  .site-nav a { padding-block: 9px 11px; }
}

@media (max-width: 510px) {
  .hero-intro { gap: 16px; padding-block: 34px 25px; }
  .hero h1 { font-size: clamp(34px, 10.1vw, 52px); }
  .hero-copy p { font-size: 16px; line-height: 1.43; }
  .primary-action { min-height: 44px; margin-top: 16px; font-size: 15px; }
  .hero-shell { padding-bottom: 19px; }
  .feature-list article { grid-template-columns: 38px minmax(0, 1fr); }
  .feature-icon svg { width: 34px; height: 34px; }
  .privacy-band { padding: 29px 20px 53px; }
  .privacy-band::before {
    inset: 28% 0 0;
    background-position: right 60%;
    mask-image: linear-gradient(180deg, transparent 21%, #000 100%);
  }
  .release { padding-block: 40px 31px; }
  .site-footer .wordmark { font-size: 20px; }
  .site-footer > a:last-child { max-width: 160px; }
}

@media (max-width: 360px) {
  .language-picker select { padding-inline-start: 13px; font-size: 13px; }
  .language-picker .language-globe { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .slide-in { animation: slide-in .65s var(--ease-out) both; }
  @keyframes slide-in {
    from { opacity: .72; transform: translateY(17px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
