:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #22d3ee;
  --grad-start: #6366f1;
  --grad-mid: #8b5cf6;
  --grad-end: #ec4899;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  --radius: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.lang-switcher {
  position: relative;
}

.lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.15), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(236, 72, 153, 0.12), transparent 50%),
    linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  color: #fff;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-text p.lead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #000;
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.store-btn .store-text small {
  font-size: 0.65rem;
  opacity: 0.85;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-btn .store-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------- Phone mockup ---------- */
.phone-mockup {
  position: relative;
  width: 260px;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  display: block;
}

.hero-art {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-art .phone-mockup {
  transform: rotate(-4deg);
  transition: transform 0.4s ease;
}

.hero-art .phone-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

@media (min-width: 900px) {
  .hero {
    padding: 6rem 0 7rem;
  }
  .hero .container {
    grid-template-columns: 1.1fr 1fr;
  }
  .phone-mockup {
    width: 300px;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features {
  background: var(--bg-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.feature-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  stroke: currentColor;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- Screenshots ---------- */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 700px) {
  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .screenshots-grid .phone-mockup:nth-child(2) {
    transform: translateY(-1.5rem);
  }
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #fff;
  text-align: center;
}

.cta .section-title,
.cta .section-subtitle {
  color: #fff;
}

.cta .section-subtitle {
  opacity: 0.92;
}

.cta .store-buttons {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 700px) {
  .site-footer .container {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
  .footer-links {
    justify-self: end;
  }
}

.site-footer .brand {
  color: #fff;
  justify-self: start;
}

@media (max-width: 699px) {
  .site-footer .brand {
    justify-self: center;
  }
}

.footer-meta {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-meta a {
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #cbd5e1;
}

/* ---------- Privacy page ---------- */
.legal {
  padding: 4rem 0;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal p,
.legal li {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-art .phone-mockup { transform: none; }
}
