:root {
  --primary: #1761BD;
  --primary-light: #3B82E0;
  --primary-dark: #114A93;
  --accent-green: #22C55E;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --bg-white: #FFFFFF;
  --bg-subtle: #F5F8FC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }

/* Navigation */
nav.top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 2rem; background: rgba(255,255,255,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226,232,240,0.5); }
.nav-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-primary); }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo-text { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-back { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.nav-back:hover { color: var(--primary); }
.nav-back svg { width: 20px; height: 20px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 0.6rem; border-radius: 8px; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.lang-switch:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 2rem 4rem; background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-white) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -25%; width: 80%; height: 150%; background: radial-gradient(ellipse at center, rgba(23,97,189,0.07) 0%, transparent 70%); pointer-events: none; }
.hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 4rem; align-items: center; position: relative; width: 100%; }
.hero-text { max-width: 540px; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(23,97,189,0.1); color: var(--primary); padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; }
.badge::before { content: ''; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
h1 span { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-description { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2.5rem; }
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.app-store-badge { display: inline-block; transition: transform 0.2s, opacity 0.2s; }
.app-store-badge:hover { transform: scale(1.02); opacity: 0.9; }
.app-store-badge img { height: 52px; width: auto; }
.hero-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.5rem 2.25rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.meta-value { font-size: 1.5rem; font-weight: 700; }
.meta-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

.hero-visual { position: relative; padding-bottom: 8%; }
.hero-ipad { width: 100%; filter: drop-shadow(0 25px 40px rgba(15,23,42,0.22)); }
.hero-iphone { position: absolute; right: -3%; bottom: 0; width: 27%; filter: drop-shadow(0 18px 30px rgba(15,23,42,0.35)); }

/* Sections */
section.block { padding: 8rem 2rem; }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 4rem; }
.section-label { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.15; }
.section-description { font-size: 1.1rem; color: var(--text-secondary); }

.features-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.3s ease; }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.feature-icon svg { width: 24px; height: 24px; color: white; }
.feature-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Showcase (alternating) */
.showcase { background: var(--bg-subtle); }
.showcase-row { max-width: 1200px; margin: 0 auto 5rem; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 4rem; align-items: center; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }
.showcase-row.reverse .showcase-media { order: 2; }
.showcase-media img { width: 100%; filter: drop-shadow(0 20px 35px rgba(15,23,42,0.2)); }
.showcase-text h3 { font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.2; }
.showcase-text p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1rem; }
.checklist { list-style: none; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-secondary); padding: 0.3rem 0; }
.checklist li::before { content: "✓"; color: var(--accent-green); font-weight: 700; }

/* Screenshots */
.screenshots { background: var(--bg-white); overflow: hidden; }
.phone-gallery { max-width: 1400px; margin: 0 auto; display: flex; gap: 1.5rem; overflow-x: auto; padding: 2rem 1rem 3rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.phone-gallery::-webkit-scrollbar { display: none; }
.phone-item { flex: 0 0 auto; width: clamp(200px, 22vw, 260px); scroll-snap-align: center; }
.phone-item img { width: 100%; filter: drop-shadow(0 14px 24px rgba(15,23,42,0.22)); }
.caption { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); text-align: center; }

/* Pro */
.pro { background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-subtle) 100%); }
.pro-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pro-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.pro-item strong { display: block; margin-bottom: 0.35rem; }
.pro-item span { color: var(--text-secondary); font-size: 0.95rem; }

/* Pricing */
.pricing { background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-white) 100%); }
.pricing-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.pricing-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; position: relative; }
.pricing-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 0.4rem 1.25rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.pricing-card h3 { font-size: 1.15rem; font-weight: 600; }
.price { margin: 1rem 0 0.25rem; }
.price-amount { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-features { list-style: none; margin: 1.25rem 0; text-align: left; }
.pricing-features li { display: flex; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: 0.9rem; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: "✓"; color: var(--accent-green); font-weight: 700; }
.pricing-note { max-width: 720px; margin: 2rem auto 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Footer */
footer { padding: 4rem 2rem; background: var(--text-primary); color: white; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand span { font-weight: 600; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* Legal pages */
main.legal { max-width: 800px; margin: 0 auto; padding: 8rem 2rem 4rem; line-height: 1.7; }
main.legal h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
main.legal .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
main.legal h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin: 2.5rem 0 1rem; }
main.legal p, main.legal li { color: var(--text-secondary); margin-bottom: 1rem; }
main.legal a { color: var(--primary); text-decoration: none; }
main.legal a:hover { text-decoration: underline; }
main.legal address { font-style: normal; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; }
main.legal address p:last-child { margin-bottom: 0; }
.legal-langs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.legal-langs a { padding: 0.35rem 0.8rem; border: 1px solid var(--border); border-radius: 100px; font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; }
.legal-langs a[aria-current] { background: var(--primary); border-color: var(--primary); color: white; }
.legal-langs a:hover { text-decoration: none; border-color: var(--primary); }

@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-iphone { right: 2%; }
  .nav-links { display: none; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .showcase-row.reverse .showcase-media { order: 0; }
  .pricing-grid, .pro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  nav.top { padding: 0.75rem 1rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  section.block { padding: 4rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
  main.legal { padding: 6rem 1.5rem 3rem; }
  main.legal h1 { font-size: 2rem; }
  .nav-back span { display: none; }
}

/* English store button */
