:root {
  --color-bg: #f4f7fd;
  --color-surface: #ffffff;
  --color-text: #1a1d26;
  --color-text-muted: #4b5568;
  --color-primary: #1e4fd6;
  --color-primary-dark: #163ba3;
  --color-accent: #ffd23f;
  --color-border: #d8e0f0;
  --color-footer: #111827;
  --shadow-soft: 0 12px 40px rgba(26, 29, 38, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1120px;
  --header-height: 72px;
  --focus-ring: 0 0 0 3px rgba(30, 79, 214, 0.35);
  --color-link: #243047;
  --color-link-hover: #1e4fd6;
  --color-link-underline: rgba(36, 48, 71, 0.32);
  --color-link-underline-hover: rgba(30, 79, 214, 0.72);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

html:not([data-i18n-ready]) [data-i18n] {
  visibility: hidden;
}

html[data-i18n-ready] [data-i18n] {
  visibility: visible;
}

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

a {
  color: var(--color-link);
  text-decoration-line: underline;
  text-decoration-color: var(--color-link-underline);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-underline-hover);
}

a:focus-visible {
  outline: none;
  border-radius: 3px;
  box-shadow: var(--focus-ring);
}

a.content-link,
.legal-section a,
.contact-card a:not(.btn),
.info-card a:not(.btn),
.page-hero a {
  font-weight: 600;
  text-underline-offset: 0.22em;
  word-break: break-word;
}

.brand,
.brand:hover {
  color: var(--color-text);
  text-decoration: none;
}

.main-nav a,
.mobile-nav a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: none;
}

.btn,
.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
  outline: none;
  box-shadow: var(--focus-ring);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-surface);
}

.lang-switch__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: var(--color-primary);
  color: #fff;
}

.lang-switch__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: rgba(30, 79, 214, 0.08);
}

.btn.is-disabled {
  background: #64748b;
  cursor: not-allowed;
  pointer-events: none;
}

.header-download {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(17, 24, 39, 0.45);
  padding: 16px;
}

.mobile-nav__panel {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: rgba(30, 79, 214, 0.08);
}

body.menu-open {
  overflow: hidden;
}

.hero {
  padding: 48px 0 72px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.25);
  color: #8a6d00;
  font-weight: 700;
  font-size: 0.875rem;
}

.hero__title {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__description {
  margin: 0 0 24px;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 0;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(88%, 300px);
  aspect-ratio: 9 / 20;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(30, 79, 214, 0.14), rgba(255, 210, 63, 0.18));
  transform: rotate(-3deg);
  z-index: 0;
}

.hero__device {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(100%, 260px);
}

.hero__screenshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 28px 64px rgba(26, 29, 38, 0.16),
    0 8px 20px rgba(26, 29, 38, 0.08),
    0 0 0 1px rgba(26, 29, 38, 0.06);
  background: #0f1117;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__header {
  max-width: 720px;
  margin-bottom: 32px;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.section__subtitle,
.section__note,
.feature-disclaimer {
  margin: 0;
  color: var(--color-text-muted);
}

.features-grid,
.steps-grid {
  display: grid;
  gap: 20px;
}

.feature-card,
.step-card,
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.feature-card__icon,
.step-card__number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 79, 214, 0.12);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-disclaimer {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--color-accent);
  background: rgba(255, 210, 63, 0.15);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.steps-grid {
  counter-reset: step;
}

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

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__heading {
  margin: 0;
}

.faq-item__trigger {
  width: 100%;
  min-height: 44px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-item__trigger:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.faq-item__icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(-135deg);
}

.faq-item__panel {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
}

.site-footer {
  background: var(--color-footer);
  color: #e5e7eb;
  padding: 48px 0 32px;
}

.site-footer a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

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

.footer-disclaimer,
.footer-made {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.page-hero {
  padding: 48px 0 24px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-meta {
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
}

.contact-card__email a {
  font-size: 1.25rem;
}

.contact-card {
  max-width: 640px;
  padding: 32px;
}

.contact-card__label {
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card__email {
  font-size: 1.25rem;
  word-break: break-word;
}

.not-found {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .header-download {
    display: inline-flex;
  }

  .main-nav {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .hero__device {
    width: min(100%, 280px);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__device {
    width: min(100%, 300px);
  }

  .hero__visual::before {
    width: min(88%, 320px);
  }
}
