:root {
  --purple: #9900ff;
  --purple-dark: #7a00cc;
  --purple-soft: #f3e6ff;
  --ink: #1a1a1a;
  --ink-muted: #555;
  --line: #e6e6e6;
  --bg: #ffffff;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 12px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-switcher button + button { border-left: 1px solid var(--line); }
.lang-switcher button[aria-pressed="true"] {
  background: var(--purple);
  color: #fff;
}
.lang-switcher button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
}

/* Layout */
main { padding: 0; }

section {
  padding: 64px max(20px, calc((100vw - var(--max)) / 2));
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(180deg, var(--purple-soft) 0%, #fff 100%);
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-text h1 { color: var(--purple); }
.tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-muted);
  margin-bottom: 28px;
  max-width: 36ch;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  min-width: 180px;
  transition: transform 0.1s ease;
}
.badge:hover { text-decoration: none; transform: translateY(-1px); }
.badge-icon { flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.badge-label { font-size: 0.7rem; opacity: 0.85; letter-spacing: 0.05em; }
.badge-store { font-size: 1.05rem; font-weight: 600; }
.badge-disabled {
  background: #5a5a5a;
  opacity: 0.7;
  cursor: not-allowed;
}
.badge-disabled:hover { transform: none; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 240px;
  height: 480px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(153, 0, 255, 0.4),
    0 18px 30px -15px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--purple);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-screen img {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Features */
.features { background: #fff; }
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-grid li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-grid li:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}
.feature-grid h3 { color: var(--purple); }
.feature-grid p { color: var(--ink-muted); margin: 0; }

/* Audience */
.audience {
  background: var(--purple-soft);
  text-align: center;
}
.audience h2 { color: var(--purple); }
.audience p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.copyright { margin: 0; }

/* Responsive */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .tagline { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .phone { width: 200px; height: 400px; }
  .phone-screen img { width: 90px; height: 90px; }
  section { padding-top: 48px; padding-bottom: 48px; }
}

@media (max-width: 420px) {
  .badge { min-width: 0; flex: 1; padding: 8px 14px; }
  .badge-store { font-size: 0.95rem; }
}
