:root {
  --bg: #f9f9f7;
  --surface: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #a0a0a0;
  --accent: #e8761a;
  --accent-light: #fff3e8;
  --accent-dim: rgba(232, 118, 26, 0.12);
  --border: rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.09);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.12);
  --radius: 20px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(249,249,247,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; color: var(--text-primary);
  text-decoration: none;
}
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; padding: 6px 14px; border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(0,0,0,0.05); }

.lang-toggle {
  display: flex; align-items: center;
  background: rgba(0,0,0,0.06); border-radius: 8px;
  padding: 3px; gap: 2px; margin-left: 8px;
}
.lang-btn {
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 6px; border: none;
  cursor: pointer; background: transparent; color: var(--text-tertiary);
  transition: all .2s; font-family: 'DM Mono', monospace;
}
.lang-btn.active {
  background: var(--surface); color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── HERO ── */
.hero {
  padding: 20px 40px 100px;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 {
  font-size: clamp(36px, 5vw, 58px); font-weight: 300; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 24px; color: var(--text-primary);
}
h1 strong { font-weight: 600; }
.hero-sub {
  font-size: 18px; color: var(--text-secondary); font-weight: 300;
  line-height: 1.7; margin-bottom: 40px; max-width: 460px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text-primary); color: #fff;
  padding: 14px 24px; border-radius: 14px;
  text-decoration: none; font-weight: 500; font-size: 15px;
  transition: all .25s; box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.22); }
.btn-store svg { flex-shrink: 0; }
.btn-store-text small { display: block; font-size: 10px; font-weight: 400; opacity: .7; letter-spacing: .04em; }
.btn-store-text strong { font-size: 15px; font-weight: 600; }

.btn-scroll {
  font-size: 14px; color: var(--text-secondary); text-decoration: none;
  display: flex; align-items: center; gap: 6px; font-weight: 500;
  transition: color .2s;
}
.btn-scroll:hover { color: var(--text-primary); }

/* ── FEATURES ── */
section { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-size: 30px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
h2 {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 300; letter-spacing: -1px;
  line-height: 1.2; margin-bottom: 16px;
}
h2 strong { font-weight: 600; }
.section-sub { font-size: 17px; color: var(--text-secondary); font-weight: 300; max-width: 520px; }


/* ── FEATURES ── */
.features-section { padding-top: 0; padding-bottom: 30px; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: 60px; border-radius: var(--radius); overflow: hidden;
}
.feature-card {
  background: var(--surface); padding: 36px 32px;
  transition: background .2s;
}
.feature-card:hover { background: #f4f4f2; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-dim); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ── SCREENSHOTS ── */
.screenshots-section { padding-top: 0; padding-bottom: 30px; }
.screenshots-scroll {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 24vw, 240px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  padding: 10px clamp(20px, 4vw, 40px) 20px;
  box-sizing: border-box;
}
.screenshot-slot {
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 320px;
  border-radius: 32px;
  background: #e8e8e6;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-tertiary); font-size: 13px; font-weight: 500;
  overflow: hidden; position: relative;
}
.screenshot-slot img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 32px;
}
.screenshot-slot .placeholder-icon { font-size: 32px; opacity: .4; }
.screenshot-slot .placeholder-text { opacity: .5; }

/* ── DEVELOPER ── */
.developer-section { padding-top: 0; padding-bottom: 30px; }
.developer-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 60px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: start;
}
.dev-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #f0a04a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; flex-shrink: 0;
}
.dev-info h3 { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 6px; }
.dev-role { font-size: 14px; color: var(--accent); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.dev-bio { font-size: 16px; color: var(--text-secondary); line-height: 1.75; max-width: 560px; font-weight: 300; }
.dev-links { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.dev-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg); padding: 8px 16px; border-radius: 10px;
  text-decoration: none; border: 1px solid var(--border);
  transition: all .2s;
}
.dev-link:hover { color: var(--text-primary); border-color: rgba(0,0,0,.15); }

/* ── CTA ── */
.cta-section {
  background: var(--text-primary); color: #fff;
  border-radius: var(--radius); margin: 0 40px 80px;
  padding: 80px 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -60%; left: -20%;
  width: 140%; height: 200%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232,118,26,.25) 0%, transparent 60%);
}
.cta-section h2 { color: #fff; font-weight: 300; max-width: none; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.6); font-size: 17px; margin-bottom: 40px; font-weight: 300; }
.cta-section .btn-store { background: var(--accent); box-shadow: 0 8px 30px rgba(232,118,26,.4); }
.cta-section .btn-store:hover { box-shadow: 0 12px 40px rgba(232,118,26,.5); }

/* ── FOOTER ── */
footer {
  max-width: 1100px; margin: 0 auto; padding: 0 40px 60px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--border); padding-top: 32px;
}
footer p { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-tertiary); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ── DIVIDER ── */
.divider { max-width: 1100px; margin: 20px auto; padding: 0 40px; }
.divider hr { border: none; border-top: 1px solid var(--border); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp .6s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .0s; }
.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
.hero-visual { animation: fadeUp .7s .2s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 60px; padding: 20px 20px 60px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { justify-content: center; }
  section { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .developer-card { grid-template-columns: 1fr; text-align: center; }
  .dev-avatar { margin: 0 auto; }
  .dev-links { justify-content: center; }
  .cta-section { margin: 0 20px 60px; padding: 60px 32px; }
  footer { padding: 32px 20px 40px; flex-direction: column; text-align: center; }
  .screenshots-scroll { padding: 10px 20px 20px; }
}

/* Language toggle */
[data-lang] { transition: opacity .2s; }
