:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --warning-bg: #fef3c7;
  --warning-fg: #92400e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #f1f5f9;
    --muted: #94a3b8;
    --border: #1e293b;
    --accent: #60a5fa;
    --warning-bg: #78350f;
    --warning-fg: #fef3c7;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  color: var(--muted);
  margin: 4px 0 0 0;
  font-size: 14px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.lang-switch a.active {
  background: var(--accent);
  color: white;
}

article h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px 0;
}

article section {
  margin-bottom: 24px;
}

article p,
article li {
  font-size: 15px;
}

article a {
  color: var(--accent);
  word-break: break-word;
}

article .warning {
  background: var(--warning-bg);
  color: var(--warning-fg);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Landing page ===== */

:root {
  --brand-primary: #1f5b99;
  --brand-primary-dark: #163f6c;
  --brand-accent: #e85d5d;
  --brand-violet: #8b8baa;
}

body.landing {
  background:
    radial-gradient(circle at 15% 10%, rgba(232, 93, 93, 0.18), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(31, 91, 153, 0.22), transparent 50%),
    linear-gradient(135deg, #f6f7fb 0%, #e9eaf5 100%);
  min-height: 100vh;
  color: #0f172a;
}

@media (prefers-color-scheme: dark) {
  body.landing {
    background:
      radial-gradient(circle at 15% 10%, rgba(232, 93, 93, 0.22), transparent 45%),
      radial-gradient(circle at 90% 80%, rgba(31, 91, 153, 0.35), transparent 50%),
      linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
    color: #f1f5f9;
  }
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 24px;
    gap: 32px;
    text-align: center;
  }
}

.hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  margin-bottom: 20px;
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 820px) {
  .hero__title { font-size: 42px; }
}

.hero__tagline {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  .hero__tagline { color: #93c5fd; }
}

.hero__desc {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 520px;
  opacity: 0.85;
}

@media (max-width: 820px) {
  .hero__desc { margin-left: auto; margin-right: auto; }
}

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

@media (max-width: 820px) {
  .cta { justify-content: center; }
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  min-width: 170px;
}

.cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.cta__btn--web {
  background: var(--brand-primary);
}

.cta__btn--web:hover {
  background: var(--brand-primary-dark);
}

.cta__btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.cta__btn-pre {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.cta__btn-store {
  font-size: 16px;
  font-weight: 700;
}

.hero__hint {
  margin-top: 24px;
  font-size: 13px;
  opacity: 0.7;
}

.hero__hint a {
  color: var(--brand-primary);
}

.hero__mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__mockup img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 32px;
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.25),
    0 0 0 8px rgba(255, 255, 255, 0.6);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.hero__mockup img:hover {
  transform: rotate(-1deg) scale(1.02);
}

@media (prefers-color-scheme: dark) {
  .hero__mockup img {
    box-shadow:
      0 30px 60px rgba(0, 0, 0, 0.5),
      0 0 0 8px rgba(255, 255, 255, 0.08);
  }
}

.landing-footer {
  text-align: center;
  padding: 24px 20px 32px;
  font-size: 13px;
  opacity: 0.7;
}

.landing-footer p { margin: 4px 0; }

.landing-footer a {
  color: inherit;
  text-decoration: underline;
}

.landing-footer__links a { margin: 0 4px; }

