:root {
  color-scheme: light dark;
  --bg: #f6f5f2;
  --bg-menu: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-subtle: rgba(15, 23, 42, 0.05);
  --fg: #111318;
  --muted: #4b5563;
  --line: #e4e2dc;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090b10;
    --bg-menu: #121620;
    --bg-card: rgba(22, 27, 38, 0.86);
    --bg-subtle: rgba(255, 255, 255, 0.06);
    --fg: #f5f5f3;
    --muted: #9ca3af;
    --line: #1f2637;
    --accent: #60a5fa;
    --accent-soft: #172554;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.10), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.09), transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.06), transparent 45%);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 88px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 88px;
}

/* Sticky Top Header with Flag Language Selector */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin-bottom: 44px;
  background-color: var(--bg-menu);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}

.brand:hover {
  opacity: 1;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  flex-shrink: 0;
}

.brand-text .name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text .sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--bg-subtle);
  opacity: 1;
}

/* Flag Language Selector at Top of Page */
.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  min-height: 42px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
  user-select: none;
}

.lang summary .lang-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

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

.lang summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  margin-inline-start: 2px;
}

.lang summary:hover,
.lang[open] summary {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.lang .langs {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 200;
  width: min(380px, calc(100vw - 32px));
  max-height: min(75vh, calc(100dvh - 110px));
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  background-color: var(--bg-menu);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.35;
}

.lang .langs a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  direction: ltr;
  text-align: left;
  font-weight: 500;
}

.lang .langs a:hover,
.lang .langs a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  opacity: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
  padding: 12px 0 8px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.pill-accent {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* Showcase: Walkthrough + Localized Screenshots */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-header h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 750;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

.video-showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 56px;
}

.phone-frame {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.video-steps {
  display: grid;
  gap: 14px;
}

.step-card {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.step-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--fg);
}

.step-card span {
  font-size: 14px;
  color: var(--muted);
}

/* Screenshots Gallery */
.screenshots-section {
  margin-bottom: 64px;
}

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

.shot-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.shot-card img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.shot-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  overflow-wrap: break-word;
}

.shot-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  overflow-wrap: break-word;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Pricing / Business Model Section */
.pricing-banner {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.pricing-banner h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.pricing-banner p {
  margin: 0;
  color: var(--muted);
}

.price-box {
  text-align: center;
  padding: 20px 28px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.price-box .amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-box .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}

/* Legal & Support Cards */
.doc-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.doc-card h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.doc-card h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--fg);
}

.doc-card p,
.doc-card dl {
  margin: 0 0 14px;
  color: var(--fg);
}

.doc-card .muted {
  color: var(--muted);
}

.faq-list dt {
  font-weight: 700;
  font-size: 17px;
  margin-top: 22px;
  color: var(--fg);
}

.faq-list dd {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--fg);
}

:lang(ja) { line-break: strict; }
h1:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
h1:lang(ar) { letter-spacing: 0; }
h1:lang(hi), h1:lang(th) { line-height: 1.28; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .brand-text .sub {
    display: none;
  }
}

@media (max-width: 820px) {
  .video-showcase {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .pricing-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .site-header {
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .doc-card {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding: 10px 12px 56px;
  }
  .site-header {
    top: 6px;
    gap: 4px 8px;
    padding: 6px 10px;
    margin-bottom: 18px;
    border-radius: 14px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  }
  .brand-text .name {
    font-size: 15px;
    white-space: nowrap;
  }
  .lang summary {
    min-height: 32px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 14px;
    gap: 5px;
  }
  .lang summary .lang-code {
    font-size: 11.5px;
  }
  .top-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .top-nav::-webkit-scrollbar {
    display: none;
  }
  .top-nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    padding: 4px 8px;
    border-radius: 8px;
  }
  .lang .langs {
    grid-template-columns: 1fr;
  }
  .screenshots-grid {
    gap: 10px;
  }
  .shot-card {
    padding: 10px;
    border-radius: 16px;
  }
  .shot-card img {
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .shot-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .shot-card p {
    font-size: 12.5px;
    line-height: 1.4;
  }
}
