:root {
  --blue: #0A84FF;
  --blue-dark: #003D5C;
  --navy: #002A3D;
  --ink: #1c2530;
  --muted: #5b6b7a;
  --line: #e6ebf1;
  --bg: #f6f8fb;
  --wa: #25D366;
  --radius: 18px;
  --maxw: 880px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[lang-rtl] { direction: rtl; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.spacer { flex: 1; }
.nav-links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: #fff; color: var(--muted);
  padding: 6px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-toggle button.active { background: var(--blue); color: #fff; }

@media (max-width: 600px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue-dark) 45%, var(--blue) 100%);
  color: #fff; text-align: center; padding: 64px 22px 72px;
}
.hero img.logo {
  width: 132px; height: 132px; border-radius: 28px; object-fit: cover;
  background: #fff; padding: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.hero h1 { font-size: 34px; margin: 22px 0 8px; font-weight: 700; letter-spacing: -.5px; }
.hero p.tag { font-size: 17px; opacity: .9; font-weight: 300; max-width: 540px; margin: 0 auto; }
.hero .stores { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.35); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block h2 { font-size: 25px; margin-bottom: 6px; letter-spacing: -.3px; }
section.block .sub { color: var(--muted); margin-bottom: 28px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,40,80,.08); }
.card .ico { font-size: 26px; margin-bottom: 10px; }
.card h3 { font-size: 16px; margin-bottom: 4px; }
.card p { font-size: 14px; color: var(--muted); }

.langs-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { background: #eef3f9; color: var(--blue-dark); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }

/* ---------- Legal pages ---------- */
.legal { background: #fff; }
.legal .wrap { padding-top: 44px; padding-bottom: 64px; }
.legal h1 { font-size: 30px; margin-bottom: 4px; letter-spacing: -.4px; }
.legal .eff { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 19px; margin: 30px 0 10px; }
.legal p, .legal li { color: #36424f; font-size: 15.5px; margin-bottom: 10px; }
.legal ul { padding-inline-start: 22px; }
.legal .note {
  background: #eef6ff; border: 1px solid #d6e8fb; border-radius: 14px;
  padding: 16px 18px; margin: 22px 0; font-size: 15px;
}
.legal .back { display: inline-block; margin-bottom: 26px; font-weight: 600; font-size: 14px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  text-align: center; padding: 38px 22px; font-size: 14px;
}
footer a { color: #fff; }
footer .flinks { margin-bottom: 12px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer .flinks a { color: rgba(255,255,255,.85); }

/* language visibility */
[data-en] { display: none; }
body.en [data-tr] { display: none; }
body.en [data-en] { display: revert; }
