:root {
  --bg-1: #0b1020;
  --bg-2: #1a2945;
  --bg-3: #f5c27a;
  --text-primary: #fffaf2;
  --text-soft: #d6d1c6;
  --card-bg: rgba(16, 24, 42, 0.58);
  --card-border: rgba(255, 231, 188, 0.22);
  --ios: #f4d3a3;
  --android: #9fd3d3;
  --web: #f2a96b;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--text-primary);
  background:
    radial-gradient(1100px 620px at 14% 0%, rgba(244, 211, 163, 0.18) 0%, transparent 58%),
    radial-gradient(850px 520px at 88% 10%, rgba(141, 165, 255, 0.14) 0%, transparent 52%),
    radial-gradient(760px 420px at 50% 115%, rgba(242, 169, 107, 0.14) 0%, transparent 56%),
    linear-gradient(160deg, #080d18 0%, #121c31 46%, #263654 100%);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="ja"] body {
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

html[lang="zh-Hant"] body {
  font-family: "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

html[lang="hi"] body {
  font-family: "Nirmala UI", "Kohinoor Devanagari", "Mangal", sans-serif;
}

html[lang="ar"] body {
  font-family: "Geeza Pro", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}

html[lang="ru"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
  z-index: 0;
}

.landing {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 22px 48px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--card-border);
  background: rgba(7, 12, 24, 0.5);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

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

.lang-select {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(12, 20, 36, 0.72);
  color: #fffaf2;
  font: 500 0.86rem/1.2 "Noto Sans", sans-serif;
  padding: 6px 8px;
  min-width: 144px;
}

.lang-select:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html[dir="rtl"] .hero {
  text-align: right;
}

html[dir="rtl"] .notice {
  border-left: 0;
  border-right: 3px solid #f6ad55;
  padding: 8px 14px 8px 0;
}

.hero {
  text-align: left;
  padding-bottom: 4px;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(2, 8, 18, 0.3);
}

.brand-wordmark {
  margin: 0;
  font: 760 clamp(1.25rem, 2.3vw, 1.8rem) / 1 var(--font-display);
  letter-spacing: 0.01em;
  color: #ffd48a;
}

.brand-tagline {
  margin: 4px 0 0;
  font: 550 0.85rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d5d0c6;
}

h1 {
  margin: 18px 0 16px;
  max-width: 15ch;
  font: 700 clamp(2.2rem, 5vw, 4.7rem) / 1.03 var(--font-display);
  text-wrap: balance;
}

.subtitle {
  margin: 0;
  max-width: 68ch;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.cta-row {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 730px;
}

.cta {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: #081220;
  font: 700 1rem/1 var(--font-display);
  padding: 16px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    filter 240ms ease;
}

.cta-icon {
  width: 18px;
  height: 18px;
  fill: #0f1727;
  flex: 0 0 18px;
}

.cta-label {
  line-height: 1;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(4, 10, 20, 0.3);
  filter: saturate(1.1);
}

.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cta.ios {
  background: linear-gradient(140deg, var(--ios), #def8e8);
}

.cta.android {
  background: linear-gradient(140deg, var(--android), #daf1ff);
}

.cta.web {
  background: linear-gradient(140deg, var(--web), #ffe8c7);
}

.hint {
  margin-top: 12px;
  color: #cec5bb;
  font-size: 0.95rem;
}

.visual-showcase {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.hero-phone {
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 239, 211, 0.08), rgba(12, 18, 32, 0.48));
  box-shadow: 0 20px 46px rgba(2, 8, 18, 0.38);
  min-height: 660px;
}

.hero-phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 660px;
}

.shot {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(2, 8, 18, 0.26);
  min-height: 0;
}

.shot:nth-child(1) {
  grid-row: 1 / span 2;
  min-height: 100%;
}

.shot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.shot:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.feature-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  content-visibility: auto;
  contain-intrinsic-size: 560px;
}

.feature {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px;
}

.feature h2 {
  margin: 0;
  font: 700 1.18rem/1.3 var(--font-display);
}

.feature p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.95rem;
}

.notice {
  margin-top: 22px;
  border-left: 3px solid #f6ad55;
  padding: 8px 0 8px 14px;
  color: #d6d1c6;
  font-size: 0.92rem;
  line-height: 1.7;
  content-visibility: auto;
  contain-intrinsic-size: 90px;
}

.faq {
  margin-top: 22px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: rgba(8, 14, 24, 0.36);
  backdrop-filter: blur(6px);
  padding: 18px;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.faq h2 {
  margin: 0 0 10px;
  font: 700 1.2rem/1.2 var(--font-display);
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 0;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  color: #fff8ea;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: #f5c27a;
}

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

.faq-item p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 231, 188, 0.2);
  border-radius: 18px;
  background: rgba(8, 14, 24, 0.36);
  backdrop-filter: blur(6px);
  color: #cec5bb;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 110px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-label {
  font: 700 0.73rem/1 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #a99f90;
}

.footer-domain {
  color: #ffd48a;
  text-decoration: none;
  font: 700 0.95rem/1 var(--font-display);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-meta {
  margin: 0;
  width: 100%;
  color: #a99f90;
  font-size: 0.78rem;
}

.site-footer a {
  color: #ffd48a;
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html[dir="rtl"] .site-footer {
  flex-direction: row-reverse;
}

.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 760ms cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cta {
    transition: none;
  }
}

@media (max-width: 980px) {
  .visual-showcase {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    max-height: 560px;
  }

  .gallery-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, minmax(220px, auto));
    min-height: auto;
  }

  .shot:nth-child(1),
  .shot:nth-child(2),
  .shot:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .shot:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 300px;
  }

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

@media (max-width: 720px) {
  .landing {
    padding-top: 42px;
  }

  h1 {
    max-width: 12ch;
  }

  .visual-showcase {
    gap: 14px;
  }

  .hero-phone {
    min-height: 500px;
  }

  .gallery-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .shot:nth-child(1),
  .shot:nth-child(2),
  .shot:nth-child(3) {
    grid-column: auto;
    min-height: 240px;
  }

  .hero-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

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

  .gallery-row {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    max-height: 520px;
  }

  h1 {
    max-width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    width: auto;
  }

  html[dir="rtl"] .site-footer {
    align-items: flex-end;
  }
}
