:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --bg-elevated: #121a24;
  --bg-card: #161f2c;
  --text: #e8edf4;
  --text-muted: #9aa8bc;
  --accent: #3d9eff;
  --accent-soft: rgba(61, 158, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 158, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(80, 120, 200, 0.06), transparent);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding: 0.85rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  border-radius: 8px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

/* Language picker */
.lang-picker {
  position: relative;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-toggle:hover,
.lang-picker.is-open .lang-toggle {
  border-color: rgba(61, 158, 255, 0.45);
  background: var(--accent-soft);
}

.lang-toggle-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.1rem;
  transition: transform 0.15s ease;
}

.lang-picker.is-open .lang-toggle-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.lang-option-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}

.hero-inner {
  width: min(100%, 42rem);
  margin-inline: auto;
}

.hero-logo {
  width: min(200px, 45vw);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 8px;
  border: 4px solid #ffffff;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 18px 45px rgba(0, 0, 0, 0.42);
  object-fit: cover;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.btn-app-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.badge-ios {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Notice */
.notice {
  padding: 0 0 2rem;
}

.notice-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(61, 158, 255, 0.12), rgba(61, 158, 255, 0.04));
  border: 1px solid rgba(61, 158, 255, 0.25);
}

.notice-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.notice-card p {
  margin: 0;
}

.notice-secondary {
  margin-top: 0.75rem !important;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Flow diagram */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px dashed var(--border);
}

.flow-node {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.flow-node small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.flow-node.highlight {
  border-color: rgba(61, 158, 255, 0.5);
  background: var(--accent-soft);
  color: var(--accent);
}

.flow-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature {
  padding: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.feature:hover {
  border-color: rgba(61, 158, 255, 0.35);
  transform: translateY(-1px);
}

.feature-detail {
  display: block;
}

.feature-detail summary {
  padding: 1.2rem 1.25rem;
  list-style: none;
  cursor: pointer;
}

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

.feature-detail[open] summary {
  border-bottom: 1px solid var(--border);
  background: rgba(61, 158, 255, 0.06);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature-action::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

.feature-detail[open] .feature-action::after {
  content: "−";
}

.feature-more {
  display: block;
  padding: 1rem 1.25rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-more strong {
  color: var(--text);
}

.langs {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}


.video-modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}



.feature-video-preview {
  width: 100%;
  height: 190px;
  display: block;
  position: relative;
  margin: 0 0 0.9rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #000;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.feature-video-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-video-preview:hover {
  border-color: rgba(61, 158, 255, 0.55);
}

.feature-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* Bottom CTA */
.cta-bottom {
  text-align: center;
  padding-bottom: 4rem;
}

.cta-bottom-inner h2 {
  margin-bottom: 0.35rem;
}

.cta-bottom-inner p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-inner {
  text-align: center;
}

.legal {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.footer-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-end {
    gap: 0.5rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow::before {
    content: "↓ ";
  }
}
