:root {
  color-scheme: light dark;
  --bg: #f5f6fb;
  --bg-menu: rgba(255, 255, 255, 0.96);
  --bg-elevated: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.86);
  --bg-subtle: rgba(15, 23, 42, 0.05);
  --fg: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --glass-border: rgba(255, 255, 255, 0.78);
  --accent: #4f46e5;
  --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: rgba(17, 24, 39, 0.96);
    --bg-elevated: rgba(17, 24, 39, 0.95);
    --bg-card: rgba(22, 30, 49, 0.86);
    --bg-subtle: rgba(255, 255, 255, 0.06);
    --fg: #f8fafc;
    --muted: #94a3b8;
    --line: #1e293b;
    --glass-border: rgba(255, 255, 255, 0.14);
    --accent: #818cf8;
    --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.13), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(79, 70, 229, 0.14), transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(124, 58, 237, 0.08), transparent 45%);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

[dir="rtl"] body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "SF Hebrew", "Geeza Pro", "Arial Hebrew", "Segoe UI", Tahoma, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease, color 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;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  line-height: 1.35;
}

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

.container-narrow {
  max-width: 840px;
  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);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  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;
  text-align: start;
}

.brand:hover {
  opacity: 1;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32);
  flex-shrink: 0;
}

.brand-text .name {
  font-weight: 750;
  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;
  direction: ltr;
  unicode-bidi: isolate;
}

.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(390px, 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);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.35;
  direction: ltr;
}

.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: 840px;
  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(79, 70, 229, 0.28);
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  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: 700px;
  margin: 0 auto 28px;
  line-height: 1.56;
}

.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: linear-gradient(135deg, var(--accent), #6366f1);
  color: #ffffff;
  font-weight: 650;
  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.94;
}

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

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

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  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;
}

/* 4-Step Interactive/Visual Workflow Showcase */
.video-showcase {
  display: grid;
  grid-template-columns: 310px 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: 292px;
  margin: 0 auto;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.step-card {
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-inline-start: 3.5px solid var(--accent);
  text-align: start;
}

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

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

/* 6-Card UI Showcase Gallery */
.screenshots-section {
  margin-bottom: 64px;
}

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

.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: 18px;
  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: 248px;
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  background: #0b1024;
}

.shot-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 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);
  text-align: start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  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;
  text-align: start;
}

.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 rgba(79, 70, 229, 0.28);
}

.price-box .amount {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.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;
  text-align: start;
}

.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 dl {
  margin: 0 0 14px;
  color: var(--fg);
}

.doc-card ul {
  padding-inline-start: 22px;
}

.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;
  padding-inline-start: 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;
  flex-wrap: wrap;
  gap: 20px;
}

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

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

/* Locale-Specific Typography Rules */
:lang(ja) { line-break: strict; }
h1:lang(ja), h1:lang(zh-Hans), h1:lang(zh-Hant), h1:lang(yue-Hant) { 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"] .brand-text .name { letter-spacing: 0; }
h1:lang(hi), h1:lang(th), h1:lang(mr), h1:lang(ar), h1:lang(he) { line-height: 1.26; }

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

@media (max-width: 960px) {
  .screenshots-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 820px) {
  .video-showcase {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .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;
  }
}

@media (max-width: 600px) {
  .screenshots-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .top-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .lang .langs {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* iPad Showcase & Compatibility Sections (start) */
/* Native iPad Landscape Showcase */
.ipad-section {
  margin-bottom: 64px;
}

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

.ipad-shot-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: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ipad-frame {
  width: 100%;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.22), rgba(15, 23, 42, 0.14));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}

.ipad-shot-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0b1024;
}

.ipad-shot-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

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

/* Supported iPhone & iPad Compatibility Matrix */
.compat-section {
  margin-bottom: 64px;
}

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

.compat-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);
  text-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.compat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, 0.28);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 12px;
}

.compat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.52;
}

@media (max-width: 820px) {
  .ipad-showcase-grid,
  .compat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ipad-shot-card {
    padding: 14px;
    border-radius: 20px;
  }
  .ipad-frame {
    padding: 6px;
    border-radius: 18px;
    margin-bottom: 14px;
  }
  .ipad-shot-card img {
    border-radius: 14px;
  }
  .compat-card {
    padding: 18px;
  }
}
/* iPad Showcase & Compatibility Sections (end) */
