/* Theme and shared typography */
:root {
  color-scheme: dark;
  --bg: #172c39;
  --deep: #142630;
  --surface: #1e3543;
  --line: #3a5666;
  --text: #eef5fa;
  --muted: #b2c9d6;
  --accent: #b9dfef;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
}
html:lang(ja) {
  font-family: 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Hiragino Sans', sans-serif;
  line-break: strict;
}
html:lang(zh-Hans) {
  font-family:
    'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  line-break: strict;
}
.metrika-pixel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: var(--surface);
  padding: 12px 18px;
}
.skip-link:focus {
  top: 12px;
}

/* Header and language selector */
.site-header {
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 34px;
  background: #142630f2;
  border-bottom: 1px solid #7693a51b;
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand img {
  border-radius: 5px;
}
.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.scrolled .header-nav {
  opacity: 1;
  visibility: visible;
}
.header-nav a:hover {
  color: var(--text);
}
.language-control {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.scrolled .language-control {
  margin-left: 18px;
}
.language-control select {
  min-height: 44px;
  color: inherit;
  background: transparent;
  border: 0;
  max-width: 128px;
  padding: 8px 10px;
}
.language-control option {
  background: var(--deep);
}

/* Mountain welcome screen */
.hero {
  position: relative;
  min-height: 620px;
  height: calc(100svh - 168px);
  max-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 24px 52px;
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 24%),
    url("images/mountain.78b091b92a9a.webp") center 85% / cover no-repeat;
}
.welcome {
  width: 520px;
  margin-top: 40px;
  text-align: center;
  background: #142630dc;
  border: 1px solid #7494a46b;
  border-radius: 18px;
  padding: 32px 40px 24px;
  box-shadow: 0 20px 60px #07131a22;
  backdrop-filter: blur(3px);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 6px;
  color: #c8e5f2;
  margin-bottom: 8px;
  margin-left: 6px;
}
.welcome h1 {
  font-size: 36px;
  letter-spacing: -1.2px;
  white-space: nowrap;
  line-height: 1.25;
}
.tagline {
  font-size: 14px;
  max-width: 345px;
  color: #d1e0e9;
  margin: 14px auto 26px;
  line-height: 1.6;
}
.hero-menu {
  display: grid;
  gap: 10px;
}
.hero-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #284151bd;
  border: 1px solid #718e9d99;
  border-radius: 8px;
  padding: 13px 19px;
  text-align: left;
  font-size: 16px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.hero-menu a:hover {
  background: #35586c;
  border-color: #a0c2d3;
  transform: translateX(3px);
}
.menu-arrow {
  color: #b7d9e9;
  flex: 0 0 28px;
  width: 28px;
  height: 31px;
}
.ai-ready {
  display: block;
  margin-top: 20px;
  color: #9ab6c5;
  font-size: 11px;
  letter-spacing: 1px;
}
.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: calc(50% - 22px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.scroll-cue span {
  width: 9px;
  height: 9px;
  border-right: 1px solid #a3c4d5;
  border-bottom: 1px solid #a3c4d5;
  transform: rotate(45deg);
}

/* Section layout and feature carousel */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 40px 52px;
  scroll-margin-top: 12px;
}
.section + .section {
  border-top: 1px solid #7092a129;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.3;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 9px;
}
.arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.arrow-button {
  width: 44px;
  height: 44px;
  border: 1px solid #587587;
  background: transparent;
  border-radius: 50%;
  font-size: 22px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.arrow-button:hover {
  background: #274653;
  border-color: #9dbac9;
}
.arrow-button:disabled {
  opacity: 0.25;
}
.feature-carousel {
  touch-action: pan-y;
}
.feature-case {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.feature-media {
  min-width: 0;
  aspect-ratio: 768/562;
  overflow: hidden;
  border: 1px solid #3a5666;
  border-radius: 14px;
  background: #132630;
}
.feature-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #142630;
}
.feature-copy h3 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.feature-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 360px;
}

/* Download cards */
.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.download-option {
  min-width: 0;
}
.download-options .download-button {
  margin-top: 0;
  padding: 10px 6px;
}
.download-meta {
  margin-top: 8px;
  font-size: 11px;
  text-align: center;
  color: #9eb8c8;
}
.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.download-card {
  background: #1c3341;
  border: 1px solid #3a5666;
  border-radius: 14px;
  padding: 24px 28px;
}
.download-fallback {
  margin-top: 12px;
  text-align: center;
}
.download-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.download-fallback a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.platform-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
  color: #c0deed;
}
.platform-heading h3 {
  font-size: 25px;
  color: var(--text);
}
.requirements {
  font-size: 14px;
  color: var(--muted);
}
.release-meta {
  font-size: 12px;
  color: #9eb8c8;
  margin-top: 9px;
  min-height: 19px;
}
.download-button {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #b7d8e8;
  color: #162c39;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  transition: background 0.2s;
}
.download-button:hover {
  background: #cee9f5;
}
.download-button.unavailable {
  color: #99b3c3;
  background: transparent;
  border-color: #3c5665;
  cursor: default;
}
.mac-card {
  background: #1a303e;
}

/* YouTube cases and footer */
.blog-empty {
  border: 1px solid #3a536359;
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  background: #182e3c;
}
.blog-empty svg {
  color: #7e9eaf;
  margin-bottom: 14px;
}
.blog-empty h3 {
  font-size: 22px;
  letter-spacing: -0.3px;
}
.blog-empty p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.blog-post {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  touch-action: pan-y;
}
.blog-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #10232e;
  border: 1px solid #3a5666;
  border-radius: 14px;
  overflow: hidden;
}
.blog-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.youtube-start {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #2c4e61, #162c39);
  border: 0;
  color: var(--text);
  font-size: 14px;
}
.youtube-start::before {
  content: '▶';
  border: 1px solid #8daeba;
  width: 64px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #cde7f2;
  font-size: 18px;
}
.blog-copy h3 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.blog-copy p {
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0 20px;
  line-height: 1.7;
}
.blog-copy a {
  font-size: 12px;
  color: #bfdce9;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #7092a129;
  padding: 18px 0 22px;
  color: #9ab5c5;
  font-size: 12px;
}
.footer-brand {
  color: #cbdce6;
  letter-spacing: 1px;
}
.footer-brand span {
  margin-left: 0.35em;
}
.youtube-start img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: filter 0.2s;
}
.youtube-start:hover img {
  filter: brightness(0.85);
}
.youtube-start::before {
  position: relative;
  z-index: 1;
  background: #142630e6;
}
.youtube-label {
  position: relative;
  z-index: 1;
  background: #142630e6;
  padding: 4px 12px;
  border-radius: 6px;
}
.youtube-start:focus-visible {
  outline-offset: -6px;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.telegram-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #b9dfef;
  transition:
    background 0.2s,
    color 0.2s;
}
.telegram-link:hover {
  background: #294958;
  color: #e4f4fc;
}
.site-footer a:not(.telegram-link) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-actions > a:last-child {
  gap: 6px;
  padding: 0 4px;
}
.blog-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Responsive layouts */
@media (min-width: 1600px) {
  .hero {
    background-position: center 85%;
  }
  .welcome {
    width: 560px;
    padding: 32px 46px 24px;
    margin-top: 40px;
  }
  .welcome h1 {
    font-size: 40px;
  }
}
@media (max-width: 1000px) {
  .site-header {
    padding: 0 24px;
  }
  .header-nav {
    gap: 18px;
  }
  .brand-name {
    display: none;
  }
  .section {
    padding: 40px 30px 48px;
  }
  .feature-case,
  .blog-post {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
  }
  .feature-copy h3,
  .blog-copy h3 {
    font-size: 23px;
  }
  .feature-copy p,
  .blog-copy p {
    font-size: 14px;
  }
  .site-footer {
    margin: 0 30px;
  }
  .hero {
    min-height: 620px;
  }
  .welcome {
    margin-top: 32px;
  }
}
@media (max-width: 680px) {
  html {
    scroll-padding-top: 90px;
  }
  .site-header {
    height: 60px;
    padding: 0 20px;
  }
  .language-control select {
    font-size: 16px;
  }
  .header-nav {
    display: none;
  }
  .scrolled .language-control {
    margin-left: auto;
  }
  .hero {
    height: auto;
    min-height: 600px;
    max-height: none;
    padding: 90px 20px 58px;
    background-position: center bottom;
    background-size:
      100% 100%,
      auto calc(100% + 110px);
  }
  .welcome {
    padding: 26px 24px 20px;
    margin-top: 0;
    width: min(100%, 450px);
    border-radius: 14px;
  }
  .welcome h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .tagline {
    font-size: 13px;
  }
  .hero-menu a {
    font-size: 15px;
    min-height: 52px;
  }
  .section {
    padding: 34px 22px 40px;
  }
  .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    margin-bottom: 22px;
    align-items: center;
  }
  .section-heading > div:first-child {
    display: contents;
  }
  .section-heading h2 {
    font-size: clamp(26px, 7vw, 29px);
    grid-column: 1;
    grid-row: 1;
  }
  .section-heading p {
    font-size: 13px;
    max-width: none;
    margin-top: 0;
    grid-column: 1/-1;
    grid-row: 2;
  }
  .arrows {
    margin-top: 0;
    gap: 6px;
    grid-column: 2;
    grid-row: 1;
  }
  .arrow-button {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    font-size: 20px;
  }
  .feature-case,
  .blog-post {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-copy h3,
  .blog-copy h3 {
    font-size: 25px;
    max-width: 480px;
    text-wrap: pretty;
  }
  .feature-copy p {
    margin-top: 12px;
    max-width: 480px;
  }
  .downloads {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .download-card {
    padding: 22px;
  }
  .download-button {
    margin-top: 18px;
  }
  .blog-empty {
    padding: 28px 20px;
  }
  .blog-empty h3 {
    font-size: 21px;
  }
  .site-footer {
    margin: 0 22px;
    font-size: 11px;
    padding-top: 16px;
  }
  .footer-brand span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
