:root {
  color-scheme: dark;
  --bg: #061319;
  --bg-2: #082432;
  --ink: #f7fbff;
  --muted: #a9bec9;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.075);
  --cyan: #23c8ef;
  --lime: #c7ec45;
  --amber: #f7b945;
  --rose: #ff5d7d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 12%, rgba(35, 200, 239, 0.22), transparent 28rem),
    linear-gradient(145deg, #061319 0%, #071b24 42%, #0a1218 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 18, 25, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand img {
  display: block;
  width: min(210px, 44vw);
  height: auto;
}

.nav-links,
.language-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links { gap: 46px; }
.language-links { justify-content: flex-end; }

.nav a,
.language-links a,
.more-languages summary {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover,
.language-links a:hover,
.language-links [aria-current="page"] {
  color: var(--ink);
}

.language-links [aria-current="page"] {
  font-weight: 900;
}

.more-languages {
  position: relative;
}

.more-languages summary {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 18, 25, 0.74);
  cursor: pointer;
  list-style: none;
}

.more-languages[open] summary,
.more-languages summary:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.more-languages summary::-webkit-details-marker {
  display: none;
}

.more-languages div {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 18, 25, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.more-languages div a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.more-languages span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: #d7e4e9;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(35, 200, 239, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #7fe58d);
  color: #061319;
  font-weight: 900;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 520px;
  perspective: 900px;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 9% 8%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(circle at 50% 0%, rgba(199, 236, 69, 0.24), transparent 24rem);
  transform: rotate(-3deg);
}

.hero-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(var(--tilt)) translateY(var(--lift));
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-icon:hover {
  border-color: rgba(35, 200, 239, 0.55);
  transform: rotate(var(--tilt)) translateY(calc(var(--lift) - 6px));
}

.icon-1 {
  --tilt: -5deg;
  --lift: 18px;
}

.icon-2 {
  --tilt: 4deg;
  --lift: -8px;
}

.icon-3 {
  --tilt: 3deg;
  --lift: 28px;
}

.icon-4 {
  --tilt: -4deg;
  --lift: 2px;
}

.hero-icon .app-icon {
  width: 92px;
  height: 92px;
}

.hero-icon span {
  max-width: 12ch;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.about-copy p {
  color: #ccdae1;
  font-size: 1.05rem;
}

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

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

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 236px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.app-card:hover {
  border-color: rgba(35, 200, 239, 0.52);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.app-card.no-link:hover {
  transform: none;
}

.app-card[data-tone="lime"] {
  background: linear-gradient(145deg, rgba(199, 236, 69, 0.16), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="cyan"] {
  background: linear-gradient(145deg, rgba(35, 200, 239, 0.15), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="violet"] {
  background: linear-gradient(145deg, rgba(145, 116, 255, 0.16), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="amber"] {
  background: linear-gradient(145deg, rgba(247, 185, 69, 0.15), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="red"] {
  background: linear-gradient(145deg, rgba(255, 93, 125, 0.15), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="green"] {
  background: linear-gradient(145deg, rgba(86, 220, 112, 0.15), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="rose"] {
  background: linear-gradient(145deg, rgba(255, 111, 169, 0.15), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="blue"] {
  background: linear-gradient(145deg, rgba(54, 155, 255, 0.15), rgba(255, 255, 255, 0.045));
}

.app-card[data-tone="orange"] {
  background: linear-gradient(145deg, rgba(255, 144, 54, 0.16), rgba(255, 255, 255, 0.045));
}

.app-icon {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.app-icon.generated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #23c8ef, #ff5d7d);
  color: white;
  font-size: 1.45rem;
  font-weight: 950;
}

.app-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.app-short {
  margin: 12px 0 8px;
  color: #f3f8fa;
  font-weight: 850;
}

.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.proof-chips.compact {
  margin: 12px 0 10px;
}

.proof-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(35, 200, 239, 0.3);
  border-radius: 999px;
  background: rgba(35, 200, 239, 0.1);
  color: #edfaff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.app-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy {
  max-width: 680px;
}

.social-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 56px;
  border-bottom: 1px solid var(--line);
}

.social-proof-copy h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.social-proof-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #ccdae1;
  font-size: 1.07rem;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.proof-metrics p {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 112px;
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(35, 200, 239, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.proof-metrics strong {
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

.proof-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.15;
}

.archive-band {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
}

.cluster-band {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cluster-card {
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.cluster-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  line-height: 0.98;
}

.cluster-card p:not(.eyebrow) {
  color: var(--muted);
}

.cluster-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cluster-icons .app-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
}

.legacy .app-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
}

.legacy .app-card,
.app-card.legacy {
  min-height: 228px;
}

.app-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 48px 0 70px;
}

.app-detail-hero[data-tone="green"] {
  --detail-accent: #80e84f;
}

.app-detail-hero[data-tone="rose"] {
  --detail-accent: #ff6fa9;
}

.app-detail-hero[data-tone="blue"] {
  --detail-accent: #42b7ff;
}

.app-detail-hero[data-tone="orange"] {
  --detail-accent: #ff9036;
}

.detail-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.detail-title-row .app-icon {
  width: clamp(86px, 12vw, 150px);
  height: clamp(86px, 12vw, 150px);
  border-radius: clamp(20px, 3vw, 34px);
}

.detail-title-row h1 {
  max-width: 9.5em;
  font-size: clamp(2.85rem, 5.65vw, 5.65rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

html[lang="ja"] .detail-title-row h1,
html[lang="zh-Hans"] .detail-title-row h1,
html[lang="zh-Hant"] .detail-title-row h1 {
  font-size: clamp(2.4rem, 4.55vw, 4.7rem);
}

.detail-subtitle {
  margin: 16px 0 0;
  color: #f0f7fa;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 850;
}

.visual-panel {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: clamp(8px, 2vw, 18px);
  background: transparent;
}

.phone-frame {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border: 8px solid #f5f8fa;
  border-radius: 38px;
  background: #05090b;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #05090b;
  transform: translateX(-50%);
}

.phone-frame img,
.phone-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  background: #000;
}

.visual-panel[data-media="video"] {
  background: transparent;
}

.visual-panel[data-media="video"] .phone-frame {
  width: min(100%, 360px);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.detail-panel {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.detail-panel h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.detail-panel p {
  color: #ccdae1;
}

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

.feature-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #e8f1f5;
  font-weight: 760;
}

.variant-grid {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.variant-grid a {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(35, 200, 239, 0.32);
  border-radius: 8px;
  background: rgba(35, 200, 239, 0.08);
}

.variant-grid strong {
  font-size: 1.08rem;
}

.variant-grid span {
  color: var(--muted);
}

.insight-section {
  padding-top: 48px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
}

.faq-panel {
  display: grid;
  gap: 12px;
}

.faq-panel details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.faq-panel summary {
  cursor: pointer;
  padding: 15px 16px;
  color: #edf7fa;
  font-weight: 850;
}

.faq-panel details p {
  margin: 0;
  padding: 0 16px 16px;
}

.compact-section {
  padding-top: 48px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 230px));
  gap: 18px;
  justify-content: center;
}

.screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: #05090c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer img {
  max-width: 220px;
  height: auto;
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 940px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .app-detail-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .hero-board {
    min-height: 420px;
  }

  .featured-grid,
  .app-grid,
  .cluster-grid,
  .insight-grid,
  .social-proof,
  .split,
  .detail-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: auto;
  }

  .proof-metrics {
    grid-template-columns: 1fr;
  }

  .proof-metrics p {
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

}

@media (max-width: 620px) {
  .nav,
  .hero,
  .app-detail-hero,
  .social-proof,
  .section,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .brand img {
    width: min(142px, 38vw);
  }

  .language-links {
    gap: 2px;
  }

  .language-links a,
  .more-languages summary {
    font-size: 0.78rem;
  }

  .more-languages summary {
    min-width: 34px;
    min-height: 34px;
  }

  .hero-board {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-height: 330px;
  }

  .hero-icon {
    min-height: 158px;
    padding: 14px;
  }

  .hero-icon .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .hero-icon span {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .social-proof {
    padding-bottom: 36px;
  }

  .social-proof-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.8rem);
  }

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

  .app-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 54px;
  }

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

  .detail-title-row h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .section {
    padding: 64px 0;
  }
}
