:root {
  color-scheme: light dark;
  --bg: #f5f6fa;
  --bg-menu: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-subtle: rgba(15, 23, 42, 0.05);
  --fg: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --glass-border: rgba(255, 255, 255, 0.75);
  --accent: #4338ca;
  --accent-strong: #3730a3;
  --accent-border: rgba(67, 56, 202, 0.28);
  --accent-2: #06b6d4;
  --accent-soft: #eef2ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --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: #070913;
    --bg-menu: #111827;
    --bg-elevated: rgba(17, 24, 39, 0.95);
    --bg-card: rgba(22, 30, 49, 0.85);
    --bg-subtle: rgba(255, 255, 255, 0.06);
    --fg: #f8fafc;
    --muted: #94a3b8;
    --line: #1e293b;
    --glass-border: rgba(255, 255, 255, 0.14);
    --accent: #a5b4fc;
    --accent-strong: #c7d2fe;
    --accent-border: rgba(165, 180, 252, 0.3);
    --accent-2: #22d3ee;
    --accent-soft: #1e1b4b;
    --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(6, 182, 212, 0.12), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(79, 70, 229, 0.12), transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.07), 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, color 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

ul,
ol {
  padding-inline-start: 20px;
}

.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(79, 70, 229, 0.25);
  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 {
  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: 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;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.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: 75vh;
  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: var(--accent-border);
  color: var(--accent-strong);
}

.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-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-coming-soon,
.btn-coming-soon:hover {
  cursor: default;
  opacity: 0.92;
  transform: none;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.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: Video + Screenshots in English */
.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 video,
.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 Horizontal Gallery */
.screenshots-section {
  margin-bottom: 64px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 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;
}

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

/* iPad Showcase Section */
.ipad-section {
  margin-bottom: 64px;
}

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

.ipad-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: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.ipad-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.ipad-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* 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: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

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

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

.price-box .btn {
  margin-top: 14px;
  width: 100%;
  font-size: 14.5px;
  padding: 11px 20px;
}

/* 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 ul,
.doc-card ol,
.doc-card dl {
  margin: 0 0 14px;
  color: var(--fg);
}

.doc-card ul,
.doc-card ol {
  padding-inline-start: 20px;
}

.doc-card li {
  margin-bottom: 8px;
}

.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), h1:lang(zh) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .hero h1,
[dir="rtl"] .section-header h2,
[dir="rtl"] .doc-card h1,
[dir="rtl"] .hero-title {
  letter-spacing: 0;
}
h1:lang(ar), h2:lang(ar), h3:lang(ar),
h1:lang(he), h2:lang(he), h3:lang(he) {
  letter-spacing: 0;
}
h1:lang(hi), h1:lang(th), h1:lang(mr) { line-height: 1.28; }

@media (max-width: 820px) {
  .video-showcase {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .ipad-grid {
    grid-template-columns: 1fr;
  }
  .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: 520px) {
  .top-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .lang .langs {
    grid-template-columns: 1fr;
  }
}
