/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --violet: #8b1eff;
  --cyan: #2bcefd;
  --grad: linear-gradient(90deg, #8b1eff, #2bcefd);
  --bg: #0d0d0f;
  --surface: #18181c;
  --surface2: #22222a;
  --text: #f0f0f4;
  --muted: #9090a0;
  --border: rgba(255,255,255,0.08);
  --radius: 20px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Nav ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 900px; margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em;
}
.logo-k {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-rest { color: var(--text); }

.nav-link {
  font-size: 0.85rem; color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  max-width: 900px; margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 480px; margin: 0 auto;
}

/* ── App grid ── */
.apps-grid {
  max-width: 900px; margin: 0 auto;
  padding: 0 24px 80px;
  display: flex; flex-direction: column; gap: 16px;
}

.app-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
}
.app-card:hover {
  background: var(--surface2);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.app-icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 14px;
  overflow: hidden;
}
.app-icon svg { width: 100%; height: 100%; display: block; }

.app-info { flex: 1; min-width: 0; }
.app-info h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.app-tagline { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.app-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }

.app-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge {
  font-size: 0.72rem; font-weight: 600; padding: 2px 8px;
  border-radius: 20px;
}
.badge-ios { background: rgba(139,30,255,0.18); color: #c07cff; border: 1px solid rgba(139,30,255,0.3); }
.badge-paid { background: rgba(43,206,253,0.12); color: #72deff; border: 1px solid rgba(43,206,253,0.25); }
.badge-free { background: rgba(80,220,100,0.12); color: #72e08c; border: 1px solid rgba(80,220,100,0.25); }

.lang-count { font-size: 0.75rem; color: var(--muted); }

.app-arrow {
  flex-shrink: 0;
  font-size: 1.2rem; color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.app-card:hover .app-arrow { color: var(--text); transform: translateX(3px); }

/* ── App page layout ── */
.app-hero {
  max-width: 900px; margin: 0 auto;
  padding: 60px 24px 40px;
}
.app-hero-inner {
  display: flex; align-items: flex-start; gap: 28px;
}
.app-hero-icon {
  flex-shrink: 0; width: 80px; height: 80px;
  border-radius: 18px; overflow: hidden;
}
.app-hero-icon svg { width: 100%; height: 100%; display: block; }

.app-hero-text h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.app-hero-text .tagline { font-size: 1rem; color: var(--muted); margin-bottom: 16px; }
.app-hero-text .app-store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  padding: 10px 20px; border-radius: 50px;
  transition: opacity 0.2s;
}
.app-hero-text .app-store-btn:hover { opacity: 0.85; }

/* ── Localisation section ── */
.locale-section {
  max-width: 900px; margin: 0 auto;
  padding: 0 24px 80px;
}
.locale-section h2 {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 8px;
}
.locale-section .section-desc {
  font-size: 0.9rem; color: var(--muted); margin-bottom: 24px;
}

.locale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.locale-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-size: 0.85rem;
}
.locale-btn:hover {
  background: var(--surface2);
  border-color: rgba(139,30,255,0.4);
}
.locale-btn .flag { font-size: 1.2rem; line-height: 1; }
.locale-btn .lang-name { font-size: 0.8rem; }

/* ── Locale page ── */
.locale-hero {
  max-width: 900px; margin: 0 auto;
  padding: 48px 24px 32px;
}
.locale-hero .breadcrumb {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 16px;
}
.locale-hero .breadcrumb a { color: var(--violet); }
.locale-hero .breadcrumb a:hover { text-decoration: underline; }
.locale-hero h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.locale-hero p { font-size: 0.9rem; color: var(--muted); }

.screenshots-section {
  max-width: 900px; margin: 0 auto;
  padding: 0 24px 80px;
}
.screenshots-section h2 { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.08em; }

.screenshots-row {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--surface2) transparent;
}
.screenshot-frame {
  flex-shrink: 0;
  width: 180px; height: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.75rem; text-align: center; padding: 16px;
}
.screenshot-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 22px;
}

/* ── App description block ── */
.app-about {
  max-width: 900px; margin: 0 auto;
  padding: 0 24px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.about-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── Gradient divider ── */
.grad-line {
  height: 1px;
  background: var(--grad);
  opacity: 0.3;
  max-width: 900px; margin: 0 auto 40px;
}

/* ── Footer ── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.8rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Back link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--muted);
  margin: 20px 24px 0;
  max-width: 900px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .app-hero-inner { flex-direction: column; gap: 16px; }
  .app-about { grid-template-columns: 1fr; }
  .app-card { flex-wrap: wrap; }
  .app-arrow { display: none; }
}
