/* Germanly — website styles
   Brand ported from the app: deep-blue seed (#1B5E9B), orange action (#FF5722),
   German-flag accents (black / red / gold). RTL-first (fa/ar), LTR for en.
   Self-hosted Vazirmatn (OFL) so Farsi renders well offline / inside Iran. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #1b5e9b;          /* icon background blue */
  --brand-dark: #123f68;
  --brand-deep: #0d2f4f;
  --brand-light: #2e7bc4;
  --brand-tint: #eaf2fb;

  --action: #ff5722;         /* app's energeticAccent */
  --action-dark: #e14a1a;

  --de-black: #1a1a1a;
  --de-red: #dd0000;
  --de-gold: #ffce00;
  --success: #2e9e5b;

  --ink: #16202b;
  --ink-dim: #55606b;
  --ink-faint: #8a95a1;
  --bg: #fbfcfe;
  --surface: #ffffff;
  --line: #e5eaf0;

  --maxw: 1080px;
  --radius: 20px;
  --font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* German words inside RTL text stay left-to-right. */
.de { unicode-bidi: isolate; direction: ltr; }

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

/* Show only the active language (body[data-lang] set from markup + JS). */
body[data-lang="fa"] .lang-en, body[data-lang="fa"] .lang-ar { display: none !important; }
body[data-lang="en"] .lang-fa, body[data-lang="en"] .lang-ar { display: none !important; }
body[data-lang="ar"] .lang-fa, body[data-lang="ar"] .lang-en { display: none !important; }

/* ---------- Top bar ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand .word { font-size: 18px; direction: ltr; }

.lang-toggle {
  display: flex; gap: 2px;
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.lang-toggle button {
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--ink-dim); background: transparent; border: 0; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.lang-toggle button.active { color: #fff; background: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(80% 90% at 50% -10%, #2e7bc4 0%, transparent 60%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  overflow: hidden;
}
/* German-flag stripe at the bottom edge of the hero */
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg,
    var(--de-black) 0 33.33%,
    var(--de-red) 33.33% 66.66%,
    var(--de-gold) 66.66% 100%);
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 30px;
}
.badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--de-gold); box-shadow: 0 0 10px var(--de-gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-icon {
  width: 128px; height: 128px; margin: 0 auto 28px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .grad {
  color: var(--de-gold);
}
.hero p.sub {
  font-size: clamp(16px, 2.3vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px; margin: 0 auto 40px;
}

/* store badges */
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px; padding: 12px 18px; min-width: 190px;
  transition: border-color .2s, transform .2s, background .2s;
}
.store:hover { border-color: #fff; transform: translateY(-2px); background: rgba(255,255,255,0.16); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store .txt { text-align: start; line-height: 1.2; }
.store .txt small { display: block; font-size: 11px; color: rgba(255,255,255,0.75); }
.store .txt strong { font-size: 16px; font-weight: 700; direction: ltr; }
.store .soon {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--de-gold); text-transform: uppercase; margin-inline-start: auto;
}

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--ink-dim); max-width: 580px; margin: 0 auto; font-size: 17px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 94, 155, 0.1); }
.feature .ficon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
}
.feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--ink-dim); font-size: 15px; }
.feature.f1 .ficon { background: rgba(27,94,155,.1);  color: var(--brand); }
.feature.f2 .ficon { background: rgba(255,87,34,.1);  color: var(--action); }
.feature.f3 .ficon { background: rgba(46,158,91,.12); color: var(--success); }
.feature.f4 .ficon { background: rgba(221,0,0,.08);   color: var(--de-red); }
.feature.f1:hover { border-color: var(--brand); }
.feature.f2:hover { border-color: var(--action); }
.feature.f3:hover { border-color: var(--success); }
.feature.f4:hover { border-color: var(--de-red); }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shot {
  flex: 0 0 auto; width: 244px; aspect-ratio: 1080 / 2086;
  scroll-snap-align: center;
  border-radius: 28px; border: 1px solid var(--line);
  background: var(--brand-tint);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(18, 63, 104, 0.16);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--brand); text-align: center; padding: 20px;
}
.shot.placeholder .ph-ico { font-size: 38px; opacity: .55; }
.shot.placeholder small { font-size: 12px; color: var(--ink-faint); }

/* ---------- Languages strip ---------- */
.langs-block { background: var(--brand-tint); }
.langs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.langs .chip {
  font-size: 15px; color: var(--ink); font-weight: 500;
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 20px; border-radius: 999px;
}
.langs .chip.target { border-color: var(--de-gold); background: #fffdf3; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; background: var(--surface); }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot .brand .word { font-size: 16px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--ink-dim); font-size: 14px; transition: color .2s; }
.foot nav a:hover { color: var(--brand); }
.foot .copy { color: var(--ink-faint); font-size: 13px; width: 100%; }

/* ---------- Legal (privacy) page ---------- */
.legal { padding: 56px 0 80px; max-width: 780px; }
.legal h1 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -0.01em; color: var(--ink); }
.legal p, .legal li { color: var(--ink-dim); margin-bottom: 12px; }
.legal ul { margin: 0 0 14px; padding-inline-start: 22px; }
.legal a { color: var(--brand); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--brand); }
/* Flip the back arrow to point the correct way per direction */
.back-link .arw { display: inline-block; }
[dir="rtl"] .back-link .arw { transform: scaleX(-1); }

@media (max-width: 640px) {
  .hero { padding: 60px 0 48px; }
  .store { min-width: 0; flex: 1 1 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
