:root {
  color-scheme: light;
  --bg: #FDFAF6;
  --surface: #FFFFFF;
  --elevated: #F5F0EA;
  --text: #1C1208;
  --muted: #7A6A56;
  --line: #EAE3D9;
  --accent: #9333EA;
  --accent-strong: #7E22CE;
  --accent-soft: rgba(147, 51, 234, 0.08);
  --accent-border: rgba(147, 51, 234, 0.2);
  --glow: 0 0 48px rgba(147, 51, 234, 0.1);
  --shadow: 0 24px 64px rgba(28, 18, 8, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; }
.brand-mark {
  display: grid; width: 36px; height: 36px; place-items: center;
  overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: var(--glow);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 0.95rem; }
.nav a { transition: color .15s; }
.nav a:hover { color: var(--accent); }
.language-toggle {
  min-width: 46px; height: 34px;
  background: var(--elevated); border: 1px solid var(--line);
  color: var(--accent); font-size: 0.86rem; font-weight: 800;
  border-radius: 999px; cursor: pointer; font: inherit;
  transition: border-color .15s;
}
.language-toggle:hover { border-color: var(--accent-border); }

/* Hero — phone left, text right */
.hero {
  width: min(1120px, calc(100% - 40px)); margin: 34px auto 0;
  padding: 44px 0 74px;
  display: grid; grid-template-columns: 320px 1fr;
  align-items: center; gap: 64px;
}

/* Phone goes first (left column) via explicit order */
.phone-preview { order: -1; }

.hero-copy .eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 18px;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-copy .lead {
  font-size: 1.04rem; color: var(--muted); max-width: 440px; line-height: 1.75; margin: 0 0 32px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 750; transition: transform .15s, opacity .15s;
}
.button:hover { transform: translateY(-2px); opacity: .9; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-strong); opacity: 1; }
.secondary { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.secondary:hover { color: var(--text); border-color: var(--muted); }

/* Phone mockup */
.phone-preview {
  position: relative;
  display: grid; gap: 14px;
  width: min(100%, 340px);
  margin-right: auto;
  padding: 24px;
  border: 1px solid var(--line); border-radius: 34px;
  background: linear-gradient(160deg, #fff 60%, #f3ebfc);
  box-shadow: var(--shadow), var(--glow);
}
.phone-top {
  width: 76px; height: 6px; margin: 0 auto 12px;
  border-radius: 999px; background: var(--line);
}
.preview-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface);
}
.preview-card.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.icon {
  display: grid; flex: 0 0 auto;
  width: 42px; height: 42px; place-items: center;
  border-radius: 12px; background: var(--elevated);
}
.preview-card strong, .preview-card small { display: block; }
.preview-card small { color: var(--muted); }

/* Features */
.features {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.features article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px 22px; transition: border-color .2s, transform .2s;
}
.features article:hover { border-color: var(--accent-border); transform: translateY(-4px); }
.features span {
  display: block; font-size: 1.7rem; margin-bottom: 16px;
}
.features h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.features p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* Inner pages */
.page {
  width: min(820px, calc(100% - 40px));
  margin: 44px auto 80px; padding: 38px;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow);
}
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.page h2 { font-size: 1.08rem; line-height: 1.25; margin: 0 0 8px; }
.page p, .page li { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
.page a { color: var(--accent); }
.page a:hover { text-decoration: underline; }
.updated { margin-top: 12px; font-size: 0.95rem; }

/* Support */
.support-page { max-width: 860px; }
.support-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--accent-border);
  border-radius: 18px; background: var(--accent-soft); margin-top: 28px;
}
.support-card p { margin: 0; color: var(--muted); }

/* 404 */
.not-found { text-align: center; }

/* Footer */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
  padding: 28px 0 34px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.93rem;
}
.footer-links { display: flex; gap: 16px; }
.footer a, .nav a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .site-header, .footer { flex-direction: column; align-items: flex-start; }
  .header-actions { width: 100%; justify-content: space-between; }
  .nav { flex: 1; justify-content: flex-start; }
  .hero {
    grid-template-columns: 1fr; gap: 34px;
    margin-top: 10px; padding-bottom: 46px;
  }
  .phone-preview { order: 0; width: 100%; margin: 0; }
  .features { grid-template-columns: 1fr; margin-bottom: 46px; }
  .page { padding: 26px; margin-top: 24px; }
}
