*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F1EEE9;
  --orange: #ea580c;
  --black: #030712;
  --white: #ffffff;
  --font: 'Noto Sans JP', sans-serif;
  --font-switcher: 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans Devanagari', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

/* ─── Button ─── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 64px 16px 40px;
  height: 68px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 40px;
  white-space: nowrap;
  transition: opacity 0.15s;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }

.btn::after {
  content: "chevron_right";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Material Symbols Rounded';
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  font-style: normal;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
}

/* ─── Hero ─── */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px;
  display: flex;
  align-items: center;
  gap: 51px;
  min-height: 912px;
  overflow: hidden;
}

.hero__text {
  flex: 0 0 499px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 60px;
  color: var(--black);
}

.hero__subtitle {
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
  color: var(--black);
}

.hero__body {
  margin-top: -8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--black);
}

.hero__phones {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
}

.hero__phones img {
  width: 570px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right bottom;
}

/* ─── Features ─── */
.features {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.features__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 60px;
  color: var(--black);
}

.features__cards {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.feature {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.feature__num {
  font-size: 48px;
  font-weight: 800;
  line-height: 72px;
  color: var(--orange);
}

.feature__card {
  flex: 1;
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.feature__name {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: var(--black);
}

.feature__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--black);
}

.feature__media {
  width: calc(100% + 48px);
  aspect-ratio: 860 / 1626;
  height: auto;
  margin: auto -24px -24px;
  background: var(--white);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.feature__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

/* ─── Modes ─── */
.modes {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.modes__title,
.support__title,
.faq__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 60px;
  color: var(--black);
  text-align: center;
}

.modes__subtitle {
  max-width: 720px;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--black);
  text-align: center;
}

.modes__cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mode-card {
  min-height: 284px;
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mode-card--oni {
  background: var(--black);
  color: var(--white);
}

.mode-card--hard {
  background: var(--orange);
  color: var(--white);
}

.mode-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mode-card__icon svg {
  width: 27px;
  height: 27px;
  display: block;
}

.mode-card__material-icon {
  display: block;
  font-family: 'Material Symbols Rounded';
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  font-style: normal;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
}

.mode-card--oni .mode-card__icon {
  background: var(--orange);
  color: var(--white);
}

.mode-card--hard .mode-card__icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.mode-card--normal .mode-card__icon {
  background: var(--orange);
  color: var(--white);
}

.mode-card__label {
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  color: var(--orange);
  letter-spacing: 0;
}

.mode-card--hard .mode-card__label {
  color: var(--white);
}

.mode-card__name {
  font-size: 28px;
  font-weight: 700;
  line-height: 38px;
}

.mode-card__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: inherit;
}

/* ─── Oni Mode ─── */
.oni {
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 72px 72px 0;
  background: var(--black);
  border-radius: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
  overflow: hidden;
  color: var(--white);
}

.oni__content {
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.oni__eyebrow {
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: 0;
}

.oni__title {
  max-width: 100%;
  font-size: 44px;
  font-weight: 800;
  line-height: 58px;
  text-wrap: balance;
}

html:lang(ja) .oni__title,
html:lang(zh) .oni__title {
  white-space: nowrap;
}

.oni__desc {
  font-size: 20px;
  font-weight: 700;
  line-height: 34px;
}

.oni__note {
  width: fit-content;
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.oni__phone {
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.oni__phone img {
  width: 430px;
  height: auto;
  display: block;
}

/* ─── Support ─── */
.support {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.support__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.support-item {
  min-height: 172px;
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-item__name {
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  color: var(--black);
}

.support-item__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--black);
}

/* ─── FAQ ─── */
.faq {
  max-width: 960px;
  margin: 80px auto 0;
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: 24px;
  padding: 0 24px;
}

.faq-item__question {
  position: relative;
  padding: 24px 40px 24px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--black);
  list-style: none;
  cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "add";
  position: absolute;
  top: 24px;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Material Symbols Rounded';
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  font-style: normal;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
}

.faq-item[open] .faq-item__question::after {
  content: "remove";
}

.faq-item__answer {
  padding: 0 0 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--black);
}

/* ─── CTA ─── */
.cta {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta__logo {
  width: 240px;
  height: auto;
  display: block;
}

.cta__tagline {
  font-size: 40px;
  font-weight: 700;
  line-height: 60px;
  color: var(--black);
}

/* ─── Footer ─── */
.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.footer__nav a {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--black);
  text-decoration: none;
}

.footer__nav a:hover { text-decoration: underline; }

.footer__copy {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--black);
}

/* ─── Release Notes ─── */
.release-page {
  min-height: 100vh;
}

.release-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.release-page .lang-switcher + .release-header {
  padding-top: 76px;
}

.release-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
  text-decoration: none;
}

.release-header__brand img {
  width: 44px;
  height: auto;
  display: block;
}

.release-header__download {
  height: 52px;
  padding: 14px 48px 14px 24px;
  font-size: 16px;
}

.release-header__download::after {
  right: 18px;
  font-size: 22px;
}

.release-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 40px 0;
}

.release-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.release-hero__eyebrow {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0;
}

.release-hero__title {
  color: var(--black);
  font-size: 48px;
  font-weight: 800;
  line-height: 64px;
}

.release-hero__desc {
  max-width: 720px;
  color: var(--black);
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.release-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.release-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.release-card__version {
  color: var(--black);
  font-size: 26px;
  font-weight: 800;
  line-height: 36px;
}

.release-card__date {
  flex-shrink: 0;
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.release-card__summary {
  color: var(--black);
  font-size: 17px;
  font-weight: 700;
  line-height: 28px;
}

.release-card__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.2em;
  color: var(--black);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.release-card__items li::marker {
  color: var(--orange);
}

.release-footer {
  padding-top: 64px;
}

/* ─── Legal Pages ─── */
.legal-main {
  max-width: 920px;
}

.legal-document {
  background: var(--white);
  border-radius: 24px;
  padding: 34px;
  color: var(--black);
}

.legal-panel[hidden] {
  display: none;
}

.legal-document h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 42px;
  margin-bottom: 8px;
}

.legal-document h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 30px;
  margin: 28px 0 10px;
}

.legal-document p,
.legal-document li {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.legal-document p + p {
  margin-top: 10px;
}

.legal-document ul,
.legal-document ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.3em;
}

.legal-document a {
  color: var(--orange);
  font-weight: 700;
}

.legal-updated {
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

/* ─── Font by language ─── */
:root:lang(ko) { --font: 'Noto Sans KR', sans-serif; }
:root:lang(zh) { --font: 'Noto Sans SC', sans-serif; }
:root:lang(hi) { --font: 'Noto Sans Devanagari', sans-serif; }

/* ─── Language Switcher ─── */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 40px;
  font-family: var(--font-switcher);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--black);
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-switcher__toggle:hover { background: #fff; }

.lang-switcher__globe { width: 15px; height: 15px; flex-shrink: 0; }

.lang-switcher__chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  list-style: none;
  min-width: 150px;
}

.lang-switcher__toggle[aria-expanded="true"] + .lang-switcher__list { display: block; }

.lang-switcher__list button,
.lang-switcher__list a {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-switcher);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  color: var(--black);
  text-decoration: none;
  transition: background 0.1s;
}

.lang-switcher__list button:hover,
.lang-switcher__list a:hover { background: var(--bg); }

.lang-switcher__list button.active,
.lang-switcher__list a.active {
  font-weight: 700;
  color: var(--orange);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding: 60px 40px;
    gap: 32px;
  }
  .hero__text { flex: 0 0 380px; }
  .hero__phones img { width: 420px; }

  .features { margin-top: 64px; padding: 60px 40px; }
  .feature { flex: 1; min-width: 0; }
  .feature__num { font-size: 36px; }
  .feature__media { height: auto; }

  .modes { margin-top: 64px; padding: 60px 40px; }
  .modes__title,
  .support__title,
  .faq__title { font-size: 32px; line-height: 46px; }
  .modes__subtitle { font-size: 18px; line-height: 30px; }
  .mode-card { min-height: 308px; padding: 24px; }
  .mode-card__name { font-size: 24px; line-height: 34px; }

  .oni {
    max-width: calc(100% - 80px);
    margin-top: 64px;
    padding: 56px 48px 0;
    border-radius: 48px;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
  .oni__content { padding-bottom: 56px; }
  .oni__title { font-size: 34px; line-height: 46px; }
  .oni__desc { font-size: 18px; line-height: 30px; }
  .oni__phone { height: 450px; }
  .oni__phone img { width: 360px; }

  .support { margin-top: 64px; padding: 60px 40px; }
  .support-item { min-height: 190px; padding: 24px; }

  .faq { margin-top: 64px; padding: 60px 40px; }

  .cta { margin-top: 64px; padding: 60px 40px; }
  .cta__tagline { font-size: 28px; line-height: 42px; }

  .footer { padding: 60px 40px; }

  .release-main { padding-top: 40px; }
  .release-hero__title { font-size: 40px; line-height: 54px; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 48px 24px 0;
    gap: 40px;
    min-height: auto;
  }
  .hero__text {
    flex: none;
    width: 100%;
    gap: 40px;
  }
  .hero__title { font-size: 28px; line-height: 42px; }
  .hero__subtitle { font-size: 17px; line-height: 27px; }
  .hero__body { font-size: 15px; line-height: 24px; }
  .btn { font-size: 18px; height: 56px; padding: 14px 52px 14px 32px; }
  .btn::after { right: 20px; font-size: 22px; }
  .hero__phones {
    width: 100%;
    justify-content: center;
  }
  .hero__phones img { width: 100%; max-width: 400px; }

  .features { margin-top: 48px; padding: 48px 24px; gap: 32px; }
  .features__title { font-size: 24px; line-height: 36px; }
  .features__cards { flex-direction: column; gap: 24px; }
  .feature { flex: none; width: 100%; }
  .feature__media { height: auto; }

  .modes { margin-top: 48px; padding: 48px 24px; gap: 28px; }
  .modes__title,
  .support__title,
  .faq__title { font-size: 24px; line-height: 36px; }
  .modes__subtitle { font-size: 16px; line-height: 26px; }
  .modes__cards { grid-template-columns: 1fr; gap: 16px; }
  .mode-card { min-height: auto; border-radius: 20px; padding: 24px; }
  .mode-card__icon { width: 44px; height: 44px; }
  .mode-card__icon svg { width: 25px; height: 25px; }
  .mode-card__material-icon { font-size: 26px; }
  .mode-card__name { font-size: 22px; line-height: 32px; }

  .oni {
    max-width: none;
    margin: 48px 24px 0;
    padding: 48px 24px 0;
    border-radius: 40px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .oni__content { padding-bottom: 0; }
  .oni__title { font-size: 24px; line-height: 36px; }
  .oni__desc { font-size: 16px; line-height: 26px; }
  .oni__note { width: 100%; border-radius: 24px; }
  .oni__phone { height: 400px; }
  .oni__phone img { width: 310px; }

  .support { margin-top: 48px; padding: 48px 24px; gap: 28px; }
  .support__grid { grid-template-columns: 1fr; gap: 16px; }
  .support-item { min-height: auto; border-radius: 20px; padding: 24px; }
  .support-item__name { font-size: 22px; line-height: 32px; }

  .faq { margin-top: 48px; padding: 48px 24px; gap: 28px; }
  .faq-item { border-radius: 20px; padding: 0 20px; }
  .faq-item__question {
    padding: 20px 36px 20px 0;
    font-size: 17px;
    line-height: 27px;
  }
  .faq-item__question::after {
    top: 20px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
  .faq-item__answer { padding-bottom: 20px; font-size: 15px; line-height: 24px; }

  .cta { margin-top: 48px; padding: 48px 24px; gap: 24px; }
  .cta__tagline { font-size: 22px; line-height: 33px; text-align: center; }
  .cta__logo { width: 160px; }

  .footer { padding: 48px 24px; gap: 24px; }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 14px;
  }

  .release-header {
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .release-page .lang-switcher + .release-header {
    padding-top: 72px;
  }

  .release-header__download {
    width: 100%;
  }

  .release-main {
    padding: 32px 24px 0;
  }

  .release-hero {
    margin-bottom: 28px;
  }

  .release-hero__title {
    font-size: 32px;
    line-height: 44px;
  }

  .release-hero__desc {
    font-size: 16px;
    line-height: 26px;
  }

  .release-card {
    border-radius: 20px;
    padding: 22px;
  }

  .release-card__header {
    flex-direction: column;
    gap: 4px;
  }

  .release-card__version {
    font-size: 24px;
    line-height: 34px;
  }

  .release-card__summary {
    font-size: 16px;
    line-height: 26px;
  }

  .release-card__items {
    font-size: 15px;
    line-height: 24px;
  }

  .legal-document {
    border-radius: 20px;
    padding: 24px;
  }

  .legal-document h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .legal-document h3 {
    font-size: 18px;
    line-height: 28px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 15px;
    line-height: 26px;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 24px; line-height: 36px; }
  .features__title,
  .modes__title,
  .support__title,
  .faq__title { font-size: 20px; line-height: 30px; }
  .oni__title { font-size: 20px; line-height: 30px; }
}

@media (max-width: 360px) {
  .oni {
    margin: 48px 16px 0;
    padding: 40px 18px 0;
  }
  .oni__title { font-size: 18px; line-height: 28px; }
}
