/* =============================================
   Dostum Amigo SLU — Global Stylesheet
   Modern SaaS / technology design system
   ============================================= */

:root {
  --navy-900: #0a1733;
  --navy-800: #0f2147;
  --navy-700: #142b5e;
  --navy-100: #e7ecf7;
  --blue-600: #1e6bff;
  --blue-500: #3b82f6;
  --blue-400: #5fa0ff;
  --ink-900: #0b1220;
  --ink-700: #2a3856;
  --ink-500: #5a6a85;
  --ink-300: #98a3b8;
  --line: #e3e8f1;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef3fb;
  --success: #15a36a;
  --warn: #d97706;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 23, 51, 0.06);
  --shadow: 0 8px 30px rgba(10, 23, 51, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 23, 51, 0.14);
  --container: 1180px;
  --maxread: 760px;
  --t-fast: 150ms ease;
  --t: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: "Inter", "Segoe UI", -apple-system, sans-serif;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code, kbd { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--bg-tint); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy-900); color: #cfd9ee; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--bg-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-700); max-width: 680px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.05rem;
  margin-right: auto; /* pushes everything else to the right */
}
.brand:hover { color: var(--navy-900); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 56px;
  width: auto;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--navy-800); }
.nav-cta { margin-left: 8px; }
.nav .lang-switcher { margin-left: 4px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block;
  width: 20px; height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: transform var(--t);
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  6px; left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600); color: #fff;
  box-shadow: 0 8px 20px rgba(30,107,255,0.28);
}
.btn-primary:hover { background: #1759d8; color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--navy-900);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(30,107,255,0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(20,43,94,0.12), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero p { font-size: 1.2rem; color: var(--ink-700); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before,
.hero-visual::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: .55;
}
.hero-visual::before {
  width: 320px; height: 320px;
  background: #5fa0ff; top: -80px; right: -60px;
}
.hero-visual::after {
  width: 260px; height: 260px;
  background: #0a1733; bottom: -80px; left: -40px;
}
.hero-visual-inner {
  position: absolute; inset: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: auto 1fr;
}
.hero-visual-bar {
  display: flex; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hero-visual-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.hero-visual-content {
  padding: 18px;
  color: rgba(255,255,255,0.92);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}
.hero-visual-content span { color: #9bd1ff; }
.hero-visual-content em { color: #ffd49b; font-style: normal; }

/* ===== Trust Strip ===== */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: #fff;
}
.trust-strip-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 28px 40px;
  color: var(--ink-500);
  font-size: 0.92rem;
}
.trust-strip-inner b { color: var(--navy-900); margin-right: 6px; }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfd8ea; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-tint); color: var(--blue-600);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-700); margin: 0; }

/* ===== Featured App ===== */
.featured-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}
.featured-app-mock {
  position: relative;
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: 32px;
  border: 8px solid #0b1220;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #fff;
}
.featured-app-mock::before {
  content: ""; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0b1220;
  border-radius: 0 0 14px 14px;
}
.featured-app-mock-screen {
  position: absolute; inset: 32px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.featured-app-mock-row {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
}
.featured-app-mock-row b { color: #9bd1ff; display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.featured-app ul { padding-left: 1.1rem; }
.featured-app li::marker { color: var(--blue-600); }

/* ===== Why Choose ===== */
.why-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.why-list li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.why-list .check {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(21,163,106,0.12); color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.why-list b { color: var(--navy-900); }

/* ===== About snippet ===== */
.about-snippet {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.about-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.about-stat b { display: block; color: var(--blue-600); font-size: 1.4rem; margin-bottom: 2px; }
.about-stat span { color: var(--ink-700); font-size: 0.94rem; }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(95,160,255,0.30), transparent 60%),
    radial-gradient(800px 300px at 0% 100%, rgba(20,43,94,0.40), transparent 60%),
    var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #cfd9ee; max-width: 620px; margin: 0 auto 24px; }
.cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: #b8c4dd;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #b8c4dd; font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: #b8c4dd; font-size: 0.95rem; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: #8ea0c2; font-size: 0.88rem;
}
.footer-bottom a { color: #b8c4dd; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background:
    radial-gradient(900px 320px at 90% 0%, rgba(30,107,255,0.16), transparent 60%),
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-700); }
.breadcrumbs { font-size: 0.88rem; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--navy-900); }
.breadcrumbs span { margin: 0 6px; }

/* ===== Long-form / legal ===== */
.prose {
  max-width: var(--maxread);
  margin: 0 auto;
}
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-700); }
.prose .meta {
  color: var(--ink-500);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.callout {
  background: var(--bg-tint);
  border-left: 4px solid var(--blue-600);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 1.4rem 0;
  color: var(--ink-700);
}
.callout strong { color: var(--navy-900); }

/* ===== Apps catalog ===== */
.app-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfd8ea; }
.app-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.app-card h3 { margin: 0 0 4px; }
.app-card p { margin: 0; color: var(--ink-700); font-size: 0.96rem; }
.app-status {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-live { background: rgba(21,163,106,0.12); color: var(--success); }
.status-soon { background: rgba(217,119,6,0.12); color: var(--warn); }

.founder-credit {
  margin-top: 16px;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.01em;
}
.founder-credit small { font-size: 0.92em; }

.app-coming {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.app-coming .app-icon { width: 64px; height: 64px; border-radius: 14px; font-size: 1.1rem; opacity: 0.55; }
.app-coming h4 { margin: 0 0 2px; }
.app-coming p { margin: 0; color: var(--ink-500); font-size: 0.9rem; }

/* ===== App detail ===== */
.app-detail-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}
.app-detail-hero .featured-app-mock { margin: 0; }
.app-detail-hero .app-icon { width: 72px; height: 72px; border-radius: 18px; font-size: 1.3rem; margin-bottom: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h4 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-700); font-size: 0.96rem; }

.permissions {
  display: grid;
  gap: 16px;
}
.perm {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.perm h4 { margin: 0 0 6px; color: var(--navy-900); }
.perm code { font-size: 0.85rem; }
.perm p { margin: 0; color: var(--ink-700); }

.app-links {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info dt { font-weight: 600; color: var(--navy-900); margin-top: 16px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; color: var(--ink-700); }
.contact-info dd a { color: var(--blue-600); }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  background: var(--bg-tint);
  color: var(--navy-800);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.form label { font-weight: 600; color: var(--navy-900); font-size: 0.92rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: border-color var(--t), box-shadow var(--t);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--ink-500); font-size: 0.86rem; margin: 0; }

/* ===== 404 ===== */
.notfound {
  min-height: 70vh;
  display: flex; align-items: center;
}
.notfound h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 8px; }

/* ===== Utilities ===== */
.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.muted { color: var(--ink-500); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-grid,
  .featured-app,
  .about-snippet,
  .app-detail-hero,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .featured-app { padding: 32px; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 6px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 8px 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; }
  .nav .lang-switcher { margin-left: auto; }
  .grid-2, .grid-3, .grid-4, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .app-card { grid-template-columns: 72px 1fr; }
  .app-card .btn { grid-column: 1 / -1; width: 100%; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Honeypot (anti-spam) ===== */
/* Visually hidden but still in the DOM so bots fill it. Humans never see it. */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ===== Language switcher (premium dropdown) ===== */
.lang-switcher {
  position: relative;
  display: inline-flex;
  z-index: 1000;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t), color var(--t);
}
.lang-trigger:hover {
  border-color: var(--blue-500);
  background: var(--bg-tint);
  color: var(--navy-800);
}
.lang-trigger:focus-visible {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}
.lang-trigger .lang-chev {
  width: 12px;
  height: 12px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  color: var(--ink-500);
  transition: transform var(--t-fast);
}
.lang-switcher.is-open .lang-trigger .lang-chev {
  transform: rotate(180deg);
  color: var(--navy-800);
}
.lang-trigger .lang-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  line-height: 1;
}

.lang-flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0,0,0,0.08);
  flex: none;
}
/* English (Union Jack — simplified) */
.lang-flag[data-lang-flag="en"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='t'><path d='M0,0 v30 h60 v-30 z'/></clipPath><path d='M0,0 v30 h60 v-30 z' fill='%23012169'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23ffffff' stroke-width='6'/><path d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/><path d='M30,0 v30 M0,15 h60' stroke='%23ffffff' stroke-width='10'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/></svg>");
}
/* Spain (red-yellow-red) */
.lang-flag[data-lang-flag="es"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23AA151B'/><rect y='0.5' width='3' height='1' fill='%23F1BF00'/></svg>");
}
/* Germany (black-red-yellow) */
.lang-flag[data-lang-flag="de"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3'><rect width='3' height='1' fill='%23000000'/><rect y='1' width='3' height='1' fill='%23DD0000'/><rect y='2' width='3' height='1' fill='%23FFCE00'/></svg>");
}
/* France (blue-white-red vertical) */
.lang-flag[data-lang-flag="fr"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='1' height='2' fill='%230055A4'/><rect x='1' width='1' height='2' fill='%23ffffff'/><rect x='2' width='1' height='2' fill='%23EF4135'/></svg>");
}
/* Portugal (green-red vertical) */
.lang-flag[data-lang-flag="pt"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'><rect width='600' height='400' fill='%23DA291C'/><rect width='240' height='400' fill='%23046A38'/><circle cx='240' cy='200' r='52' fill='%23FFE900' stroke='%23ffffff' stroke-width='4'/></svg>");
}
/* Bangladesh (dark green with red disc) */
.lang-flag[data-lang-flag="bn"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'><rect width='100' height='60' fill='%23006A4E'/><circle cx='45' cy='30' r='18' fill='%23F42A41'/></svg>");
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(10, 23, 51, 0.18), 0 4px 12px rgba(10, 23, 51, 0.06);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 220px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.lang-switcher.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-menu li::marker { content: ""; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-900);
  text-align: left;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lang-option:hover,
.lang-option:focus-visible {
  background: var(--bg-tint);
  color: var(--navy-900);
  outline: none;
}
.lang-option[aria-current="true"] {
  background: rgba(59,130,246,0.10);
  color: var(--navy-900);
  font-weight: 600;
}
.lang-option .lang-code {
  font-family: "Inter", "Segoe UI", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 26px;
  flex: none;
  text-align: left;
}
.lang-option[aria-current="true"] .lang-code { color: var(--blue-600); }
.lang-option .lang-name { flex: 1; }

/* ===== English-only banner (legal/support pages) ===== */
.banner-english-only {
  background: #fff8e1;
  border: 1px solid #f5d27e;
  color: #5a4200;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.banner-english-only strong { color: #4a3500; }

/* ===== Mobile: keep language switcher visible next to hamburger ===== */
@media (max-width: 720px) {
  .lang-trigger { padding: 7px 12px; gap: 6px; }
  .lang-trigger .lang-label { font-size: 0.8rem; }
  .lang-flag { width: 20px; height: 14px; }
  .lang-menu { min-width: 210px; right: 0; }
}

/* ===== App icon image (real artwork instead of text placeholder) ===== */
.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.app-icon.has-image {
  background: transparent;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0;
}

/* ===== Extra responsive polish (tablets, iPad, small phones) ===== */
@media (max-width: 960px) {
  .brand-logo { width: 150px; height: auto; }
  .container { padding: 0 22px; }
  h1 { font-size: 2.1rem; }
  .lead { font-size: 1.05rem; }
  .app-detail-hero .featured-app-mock { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .brand-logo { width: 130px; height: auto; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  .lead { font-size: 1rem; }
  .page-hero { padding: 36px 0 12px; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 32px; }
  .featured-app { padding: 24px; }
  .cta { padding: 28px 18px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .app-card {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: start;
  }
  .app-card .app-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    flex: none;
    border-radius: 14px;
    font-size: 1.1rem;
    align-self: start;
  }
  .app-card > div { min-width: 0; }
  .app-detail-hero .app-links { flex-wrap: wrap; }
  .app-detail-hero .app-links .btn { flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.5rem; }
  .app-detail-hero .app-links .btn { flex: 1 1 100%; }
  .breadcrumbs { font-size: 0.82rem; }
  .topic-pills .pill { font-size: 0.82rem; }
}

/* iOS / Safari input zoom fix: inputs need >=16px to prevent auto-zoom on focus */
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px; }
}
