:root {
  --bg: #f6f1e8;
  --bg-accent: #efe0c8;
  --surface: rgba(255, 250, 244, 0.8);
  --surface-strong: #fff8f0;
  --text: #1d1a17;
  --muted: #62574c;
  --line: rgba(29, 26, 23, 0.12);
  --primary: #d45b31;
  --primary-strong: #b5441d;
  --secondary: #23554f;
  --shadow: 0 30px 80px rgba(58, 32, 12, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 91, 49, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(35, 85, 79, 0.16), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 100%);
}

body.rtl {
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  background: rgba(255, 248, 240, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(50, 28, 13, 0.08);
}

.brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 520px;
  line-height: 1.1;
}

.brand-main,
.brand-sub,
.brand-sep {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-main {
  font-size: 1.1rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-sep {
  color: var(--primary-strong);
  font-size: 0.95rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  gap: 18px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.site-nav a,
.language-picker span,
.source-note {
  color: var(--muted);
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  background: rgba(29, 26, 23, 0.06);
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.language-picker select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

main {
  display: grid;
  gap: 96px;
  padding: 48px 0 64px;
}

.top-banner {
  margin-top: -20px;
}

.banner-frame {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(29, 26, 23, 0.08);
  box-shadow: var(--shadow);
  background: var(--surface-strong);
}

.banner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0.16));
  pointer-events: none;
}

.banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 32px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.app-description,
.info-card p,
.faq-answer,
.site-footer p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary,
.card-button {
  background: var(--primary);
  color: #fffaf4;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
}

.hero-points,
.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

body.rtl .hero-points li,
body.rtl .feature-list li {
  padding-left: 0;
  padding-right: 28px;
}

.hero-points li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #f2b14a);
  transform: translateY(-50%);
}

body.rtl .hero-points li::before,
body.rtl .feature-list li::before {
  left: auto;
  right: 0;
}

.hero-art {
  position: relative;
  min-height: 600px;
}

.device {
  position: absolute;
  border-radius: 42px;
  background: #111;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device.large {
  top: 0;
  right: 24px;
  width: min(340px, 75vw);
  height: 640px;
  transform: rotate(-8deg);
}

.device.small {
  left: 10px;
  bottom: 28px;
  width: min(230px, 56vw);
  height: 430px;
  transform: rotate(9deg);
}

.camera-bar {
  width: 38%;
  height: 24px;
  margin: 10px auto 0;
  background: #242424;
  border-radius: 999px;
}

.screen {
  position: relative;
  height: calc(100% - 40px);
  margin: 10px;
  border-radius: 32px;
  overflow: hidden;
}

.screen-photo {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 208, 174, 0.9), transparent 22%),
    radial-gradient(circle at 72% 64%, rgba(239, 224, 200, 0.9), transparent 28%),
    linear-gradient(160deg, #ffcf9a 0%, #de8e63 38%, #6f5f57 100%);
}

.screen-video {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.15), rgba(17, 17, 17, 0.52)),
    linear-gradient(140deg, #5d9f98 0%, #2d675f 40%, #122a33 100%);
}

.face,
.mask {
  position: absolute;
  border-radius: 50%;
}

.face {
  background: rgba(255, 234, 220, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.34);
}

.face-a {
  top: 22%;
  left: 18%;
  width: 110px;
  height: 110px;
}

.face-b {
  top: 45%;
  right: 16%;
  width: 130px;
  height: 130px;
}

.face-c {
  top: 24%;
  left: 26%;
  width: 92px;
  height: 92px;
}

.mask.emoji {
  top: 20%;
  left: 16%;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  font-size: 68px;
}

.mask.mosaic {
  top: 43%;
  right: 12%;
  width: 148px;
  height: 148px;
  background:
    linear-gradient(90deg, rgba(38, 52, 84, 0.58) 50%, rgba(219, 109, 69, 0.58) 50%),
    linear-gradient(rgba(31, 31, 31, 0.24) 50%, rgba(255, 255, 255, 0.18) 50%);
  background-size: 22px 22px;
  border-radius: 38px;
}

.mask.blur {
  top: 22%;
  left: 22%;
  width: 108px;
  height: 108px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.timeline {
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.timeline::after {
  content: "";
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2b14a, #d45b31);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.app-card,
.info-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(29, 26, 23, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  flex: 0 0 72px;
}

.app-icon-image {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(29, 26, 23, 0.08);
  box-shadow: 0 10px 24px rgba(29, 26, 23, 0.12);
  background: #fff;
}

.card-button {
  margin-top: 24px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: var(--surface-strong);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

body.rtl .comparison-table th,
body.rtl .comparison-table td {
  text-align: right;
}

.comparison-table th {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-table td:first-child {
  font-weight: 500;
}

.status-yes,
.status-no,
.status-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.status-yes {
  background: rgba(35, 85, 79, 0.12);
  color: var(--secondary);
}

.status-no {
  background: rgba(212, 91, 49, 0.12);
  color: var(--primary-strong);
}

.status-note {
  background: rgba(29, 26, 23, 0.08);
  color: var(--text);
}

.language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.language-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid rgba(29, 26, 23, 0.08);
  border-radius: var(--radius-md);
}

.faq-question {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .site-header,
  .header-controls,
  .site-nav,
  .hero,
  .app-grid,
  .privacy-grid,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    border-radius: 28px;
    gap: 18px;
  }

  .brand {
    max-width: none;
  }

  .header-controls {
    gap: 14px;
  }

  .site-nav {
    justify-content: center;
  }

  .hero {
    gap: 24px;
  }

  .hero-art {
    min-height: 520px;
  }

  .device.large {
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
  }

  .device.small {
    left: 12px;
    bottom: 0;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
  }

  .site-header {
    position: static;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 248, 240, 0.92);
    box-shadow: 0 14px 38px rgba(50, 28, 13, 0.08);
  }

  .brand {
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .brand-main,
  .brand-sub {
    font-size: 0.92rem;
  }

  .brand-sep {
    font-size: 0.84rem;
  }

  .header-controls {
    gap: 10px;
    width: 100%;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    background: transparent;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(29, 26, 23, 0.05);
  }

  .language-picker {
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 20px rgba(29, 26, 23, 0.05);
  }

  .language-picker span {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .language-picker select {
    width: min(64vw, 220px);
    min-height: 42px;
    padding: 0 12px;
    background: #fff;
  }

  main {
    gap: 56px;
    padding-top: 20px;
  }

  .top-banner {
    margin-top: 0;
  }

  .banner-frame {
    border-radius: 22px;
  }

  .banner-frame img {
    aspect-ratio: 4 / 3;
  }

  .hero {
    gap: 18px;
    padding-top: 0;
  }

  .hero-copy {
    padding: 0 2px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    max-width: none;
    letter-spacing: -0.04em;
  }

  .hero-text,
  .section-heading p,
  .app-description,
  .info-card p,
  .faq-answer,
  .site-footer p {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .hero-points {
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(29, 26, 23, 0.08);
  }

  .hero-points li {
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body.rtl .hero-points li {
    padding-right: 24px;
  }

  .hero-art {
    min-height: 360px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 24px;
  }

  .device.large {
    top: 0;
    width: 210px;
    height: 398px;
    transform: translateX(-50%) rotate(-4deg);
  }

  .device.small {
    left: auto;
    right: 10px;
    bottom: 18px;
    width: 132px;
    height: 250px;
    transform: rotate(7deg);
  }

  .face-a {
    width: 82px;
    height: 82px;
  }

  .face-b {
    width: 96px;
    height: 96px;
  }

  .face-c {
    width: 68px;
    height: 68px;
  }

  .mask.emoji {
    width: 92px;
    height: 92px;
    font-size: 46px;
  }

  .mask.mosaic {
    width: 108px;
    height: 108px;
    background-size: 16px 16px;
  }

  .mask.blur {
    width: 78px;
    height: 78px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .apps-section,
  .comparison-section,
  .privacy-section,
  .languages-section,
  .faq-section {
    position: relative;
    z-index: 1;
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.08;
  }

  .app-grid,
  .privacy-grid {
    gap: 16px;
  }

  .app-card,
  .info-card,
  .faq-item {
    padding: 20px;
    border-radius: 22px;
  }

  .app-head {
    gap: 14px;
    margin-bottom: 14px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    flex-basis: 64px;
  }

  .app-head h3 {
    margin-bottom: 4px;
    font-size: 1.1rem;
  }

  .feature-list {
    gap: 10px;
  }

  .feature-list li {
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body.rtl .feature-list li {
    padding-right: 24px;
  }

  .card-button {
    width: 100%;
    margin-top: 18px;
  }

  .comparison-section {
    overflow: hidden;
  }

  .comparison-table-wrap {
    margin-inline: -4px;
    padding-bottom: 4px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(58, 32, 12, 0.08);
  }

  .comparison-table {
    min-width: 560px;
    font-size: 0.92rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 14px;
  }

  .status-yes,
  .status-no,
  .status-note {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .language-chips {
    gap: 10px;
  }

  .language-chip {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .faq-list {
    gap: 12px;
  }

  .faq-question {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .site-footer {
    gap: 10px;
    padding-bottom: 18px;
    text-align: center;
  }
}
