/* WedBaZ website. Colours are the app's "Gilded Petrol" night palette (HxColors.WedbazNight). */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #06191c;
  --bg-deep: #041113;
  --surface-1: #0c2427;
  --surface-2: #102b2f;
  --surface-3: #153236;
  --glass: rgba(15, 48, 52, 0.55);
  --glass-line: rgba(230, 207, 158, 0.2);
  --line: rgba(216, 184, 120, 0.16);
  --line-strong: rgba(216, 184, 120, 0.32);
  --text: #e4ece9;
  --text-strong: #fdfaf2;
  --muted: #a3b8b3;
  --faint: #88a19c;
  --gold: #d9b46e;
  --gold-text: #e8c98f;
  --gold-bright: #f0cf86;
  --gold-soft: rgba(217, 180, 110, 0.14);
  --ice-start: #f3d9a0;
  --ice-end: #c79a55;
  --on-ice: #231606;
  --teal: #5cc8be;
  --teal-soft: rgba(92, 200, 190, 0.16);
  --green: #4fe0a6;
  --radius-card: 24px;
  --radius-btn: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --font: "Vazirmatn", Tahoma, Arial, sans-serif;
  --page: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(217, 180, 110, 0.13), transparent 62%),
    radial-gradient(900px 700px at 8% 38%, rgba(47, 143, 134, 0.12), transparent 64%),
    linear-gradient(180deg, #082125 0%, var(--bg) 42%, var(--bg-deep) 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--gold-bright); }
img, svg { display: block; max-width: 100%; }
/* an icon without its own size rule (zero specificity, so every component rule wins) */
:where(svg[aria-hidden="true"]:not([width])) { width: 1.25em; height: 1.25em; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.45; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--on-ice); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(240, 217, 166, 0.6); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(var(--page), calc(100% - 40px)); margin-inline: auto; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 25, 28, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); }
.brand img { width: 40px; height: 40px; }
.wordmark {
  font-weight: 800; font-size: 22px; letter-spacing: 0.2px; direction: ltr;
  background: linear-gradient(135deg, #f8e3b3 0%, #d9b46e 55%, #b68a4d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-strong); background: rgba(255, 255, 255, 0.05); }
.header-cta { margin-inline-start: 6px; }
.menu-btn {
  display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line-strong);
  color: var(--text-strong); border-radius: 12px; width: 44px; height: 44px; cursor: pointer;
}
.menu-btn svg { margin: auto; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: var(--radius-btn);
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary {
  color: var(--on-ice);
  background: linear-gradient(135deg, var(--ice-start) 0%, var(--gold) 55%, var(--ice-end) 100%);
  box-shadow: 0 10px 28px rgba(217, 180, 110, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { color: var(--on-ice); box-shadow: 0 14px 34px rgba(217, 180, 110, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { color: var(--text-strong); background: var(--glass); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text-strong); background: rgba(21, 50, 54, 0.8); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .sub { font-weight: 500; font-size: 14px; opacity: 0.8; }

/* ── hero ── */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-text); font-weight: 600; font-size: 15px;
  background: var(--gold-soft); border: 1px solid var(--line); padding: 4px 14px; border-radius: 999px;
}
.hero h1 { margin-top: 16px; font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
.hero h1 .wordmark { font-size: 1em; }
.hero h2 { margin-top: 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.hero p.lead { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.trust {
  margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.trust div { background: rgba(10, 34, 37, 0.92); padding: 12px 14px; text-align: center; }
.trust b { display: block; color: var(--text-strong); font-size: 17px; }
.trust span { color: var(--faint); font-size: 13px; }

/* the shield on its stage: aura, rays and ground rings, as on the app's connect screen */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; width: 100%; }
.stage .halo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.stage .halo .aura { transform-box: fill-box; transform-origin: center; animation: breathe 5.5s ease-in-out infinite; }
.stage .halo .rays { animation: ray 5.5s ease-in-out infinite; }
.stage .shield {
  position: absolute; left: 16%; right: 16%; top: 7%; bottom: 11%;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}
.stage .shield img { width: 100%; height: 100%; object-fit: contain; }
.stage .status {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(79, 224, 166, 0.12); border: 1px solid rgba(79, 224, 166, 0.35); color: #bff5dc;
  padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.stage .status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes ray { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── sections ── */
section.block { padding: 64px 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.head h2 { margin-top: 12px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.head p { margin-top: 10px; color: var(--muted); font-size: 17px; }

.card {
  background: linear-gradient(180deg, rgba(21, 50, 54, 0.72), rgba(12, 36, 39, 0.72));
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px;
  box-shadow: var(--shadow);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold-text);
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-top: 14px; }
.card p { color: var(--muted); margin-top: 6px; }

/* app section */
.app .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.phone {
  width: min(250px, 46%); border-radius: 34px; padding: 8px; background: #0a1c1f;
  border: 1px solid rgba(230, 207, 158, 0.25); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone img { border-radius: 27px; width: 100%; height: auto; }
.phone.back { transform: translateY(36px) rotate(-3deg); opacity: 0.92; }
.features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.features li svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--teal); }
.downloads { margin-top: 26px; display: grid; gap: 12px; }
.downloads .btn { justify-content: space-between; }
.dl-note { color: var(--faint); font-size: 14px; margin-top: 10px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.dl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dl-meta svg { width: 16px; height: 16px; color: var(--gold-text); }

/* steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 30px; }
.steps .num {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px;
  color: var(--on-ice); background: linear-gradient(135deg, var(--ice-start), var(--ice-end));
}

/* plans */
.plan { display: flex; flex-direction: column; }
.plan .tag { color: var(--gold-text); font-weight: 600; font-size: 14px; }
.plan h3 { font-size: 24px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  padding: 3px 12px; border-radius: 999px; font-size: 14px; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.plan .btn { margin-top: auto; }
.plan .spacer { flex: 1; min-height: 18px; }
.plan.featured { border-color: rgba(217, 180, 110, 0.45); background: linear-gradient(180deg, rgba(56, 48, 30, 0.55), rgba(12, 36, 39, 0.8)); }
.note { text-align: center; color: var(--faint); margin-top: 18px; font-size: 15px; }

/* guides tiles */
.tile { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.tile:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-3px); }
.tile { transition: transform 0.18s ease, border-color 0.18s ease; }
.tile b { color: var(--text-strong); font-size: 18px; margin-top: 10px; }
.tile span { color: var(--muted); font-size: 15px; }
.tile .go { color: var(--gold-text); font-weight: 600; font-size: 15px; margin-top: 6px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: rgba(12, 36, 39, 0.8); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--text-strong);
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* final call */
.final {
  text-align: center; padding: 44px 28px; border-radius: 28px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(217, 180, 110, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(21, 50, 54, 0.85), rgba(10, 30, 33, 0.9));
  border: 1px solid var(--line-strong);
}
.final h2 { font-size: clamp(24px, 3vw, 32px); }
.final p { color: var(--muted); margin-top: 10px; }
.final .cta-row { justify-content: center; }

/* footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--muted); font-size: 15px; }
.site-footer .brand img { width: 34px; height: 34px; }
.site-footer small { display: block; margin-top: 4px; }

/* ── guides page ── */
.page-hero { padding: 48px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin-top: 14px; }
.page-hero p { color: var(--muted); margin: 12px auto 0; max-width: 40em; font-size: 17px; }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.toc a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px;
}
.toc a:hover { border-color: var(--line-strong); color: var(--text-strong); }
.toc a svg { width: 18px; height: 18px; color: var(--gold-text); }

.guide { margin-top: 26px; scroll-margin-top: 90px; }
.guide > .card { padding: 28px; }
.guide h2 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.guide h2 .icon { width: 44px; height: 44px; }
.guide .intro { color: var(--muted); margin-top: 10px; }
.guide h3 { font-size: 19px; margin-top: 26px; color: var(--gold-text); scroll-margin-top: 90px; }
ol.flow { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
ol.flow li {
  counter-increment: s; position: relative; padding: 12px 58px 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
ol.flow li::before {
  content: counter(s, persian); position: absolute; right: 14px; top: 11px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: var(--on-ice); background: linear-gradient(135deg, var(--ice-start), var(--ice-end));
}
.tip {
  margin-top: 14px; padding: 12px 16px; border-radius: 14px; color: var(--text);
  background: var(--teal-soft); border: 1px solid rgba(92, 200, 190, 0.3);
}
.tip b { color: #bff5ec; }
.shots { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.shots figure { margin: 0; width: min(200px, 30%); }
.shots img { border-radius: 20px; border: 1px solid var(--line-strong); }
.shots figcaption { text-align: center; color: var(--faint); font-size: 13px; margin-top: 6px; }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.apps .card { box-shadow: none; padding: 20px; }
.apps h4 { margin: 0; color: var(--text-strong); font-size: 18px; }
.apps .role { color: var(--gold-text); font-size: 14px; }
.apps p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.apps .btn { margin-top: 12px; }
.inline-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
code, .ltr { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; }

/* reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s ease; }
.js [data-reveal].shown { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero .wrap, .app .wrap { grid-template-columns: 1fr; }
  .hero .stage { max-width: 380px; order: -1; }
  .app .phones { order: 2; }
}
@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; inset-inline: 12px;
    background: rgba(8, 30, 33, 0.97); border: 1px solid var(--line-strong); border-radius: 18px; padding: 10px;
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 14px; font-size: 16px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .apps { grid-template-columns: 1fr; }
  section.block { padding: 48px 0; }
  .hero { padding-top: 30px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .phone { width: 47%; border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 21px; }
  .shots figure { width: calc(50% - 7px); }
  ol.flow li { padding-right: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
