/* AmanatCar marketing site. Phone first; animations respect "reduce motion". No external assets. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("/assets/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 600; font-display: swap; src: url("/assets/fonts/vazirmatn-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url("/assets/fonts/vazirmatn-arabic-800-normal.woff2") format("woff2"); }

:root {
  --navy-900: #0b1f3a; --navy-800: #102b50; --navy-700: #123a6b; --blue-600: #1d5aa6; --blue-500: #2f74c9;
  --blue-50: #eef4fc; --gold-500: #e2a52b; --gold-400: #f0bd4f; --gold-50: #fdf6e7;
  --ink: #0f1b2d; --ink-2: #4a5a70; --ink-3: #7a889c; --line: #e3e8ef; --bg: #ffffff; --bg-2: #f6f8fb;
  --red: #c8372d; --red-50: #fdecea; --green: #1c8a55; --green-50: #e8f6ee;
  --radius: 18px; --shadow: 0 10px 30px -12px rgba(11, 31, 58, .25); --max: 1120px;
  --font: "Inter", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[dir="rtl"] { --font: "Vazirmatn", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; overflow-x: hidden; }
[dir="rtl"] body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11,31,58,.25); }
.header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; color: var(--navy-900); white-space: nowrap; }
.brand svg { width: 34px; height: 34px; }
.brand .car { color: var(--gold-500); }
.nav { display: none; margin-inline-start: auto; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--navy-700); background: var(--blue-50); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { position: relative; }
.lang-btn, .menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 150px; display: none; }
.lang.open .lang-list { display: block; }
.lang-list a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.lang-list a:hover, .lang-list a[aria-current="true"] { background: var(--blue-50); color: var(--navy-700); }
.head-actions .signin { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; animation: drop .2s ease-out; }
.mobile-nav a { display: block; padding: 14px 16px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin: 14px 16px; display: flex; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(226,165,43,.8); }
.btn-primary:hover { background: var(--gold-400); }
.btn-dark { background: var(--navy-700); color: #fff; }
.btn-dark:hover { background: var(--blue-600); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #2a6bc0 0%, transparent 60%), linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 70%, #174a8a 100%); padding: 40px 0 64px; }
.hero .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; }
.hero .glow.a { width: 320px; height: 320px; background: var(--gold-500); bottom: -160px; inset-inline-start: -120px; animation: float 14s ease-in-out infinite; opacity: .25; }
.hero .glow.b { width: 260px; height: 260px; background: #3d8bff; top: -80px; inset-inline-end: -60px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-20px); } }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .85rem; font-weight: 600; color: #dbe7f7; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(226,165,43,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(226,165,43,0); } }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 800; margin: 18px 0 16px; }
.hero h1 .hl { color: var(--gold-400); }
.hero .lead { font-size: 1.05rem; color: #cfdcef; max-width: 36rem; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 16px; }
.hero .note { font-size: .85rem; color: #a9bdd8; }

/* Phone demo */
.phone { position: relative; width: min(300px, 82vw); margin: 0 auto; aspect-ratio: 9 / 18.5; background: #0a1628; border-radius: 40px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08); transform: rotate(-2deg); animation: phoneIn 1s .2s both cubic-bezier(.2,.8,.2,1); }
[dir="rtl"] .phone { transform: rotate(2deg); }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(0); } }
.screen { height: 100%; background: var(--bg-2); border-radius: 30px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.screen-top { background: var(--navy-700); color: #fff; padding: 18px 16px 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.screen-top svg { width: 24px; height: 24px; }
.screen-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.field { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: .78rem; color: var(--ink-3); }
.field .val { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; min-height: 1.6em; direction: ltr; text-align: start; }
.field .val::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--blue-600); vertical-align: -3px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scan { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .2s; }
.scan.on { opacity: 1; }
.scan::before { content: ""; display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--blue-500), var(--gold-500)); animation: scan 1s ease-in-out infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
[dir="rtl"] .scan::before { animation-name: scanR; }
@keyframes scanR { from { transform: translateX(100%); } to { transform: translateX(-260%); } }
.checking { font-size: .82rem; color: var(--ink-3); min-height: 1.3em; }
.result { border-radius: 16px; padding: 14px; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .35s, transform .35s; }
.result.show { opacity: 1; transform: none; }
.result.risk { background: var(--red-50); border: 1px solid #f5c2bd; }
.result.ok { background: var(--green-50); border: 1px solid #b6e3c9; }
.result .badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.result.risk .badge { background: var(--red); color: #fff; }
.result.ok .badge { background: var(--green); color: #fff; }
.result strong { display: block; font-size: .95rem; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .72rem; font-weight: 600; background: #fff; border: 1px solid #f0d0cc; color: var(--red); padding: 3px 8px; border-radius: 8px; }
.result.ok p { font-size: .8rem; margin: 0; color: var(--ink-2); }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 42rem; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); font-weight: 800; color: var(--navy-900); }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.alt { background: var(--bg-2); }
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(11,31,58,.04); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; color: var(--navy-900); }
.card p { color: var(--ink-2); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--blue-50); color: var(--blue-600); }
.icon svg { width: 26px; height: 26px; }
.problem .icon { background: var(--red-50); color: var(--red); }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; box-shadow: 0 0 0 6px var(--blue-50); }
.step h3 { color: var(--navy-900); }
.step p { color: var(--ink-2); margin: 0; }

/* Trust */
.trust { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; }
.trust .section-head h2 { color: #fff; }
.trust .section-head p { color: #b8c8de; }
.trust .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.trust .card h3 { color: #fff; }
.trust .card p { color: #b8c8de; }
.trust .icon { background: rgba(226,165,43,.15); color: var(--gold-400); }
.appeal { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25); border-radius: var(--radius); padding: 22px; }
.appeal p { margin: 0; font-weight: 600; }

/* Stats */
.stats { display: grid; gap: 14px; grid-template-columns: 1fr; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat .n { font-size: clamp(2.2rem, 9vw, 3rem); font-weight: 800; color: var(--navy-700); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .n.soft { font-size: 1.15rem; color: var(--ink-3); font-weight: 700; padding: 14px 0; }
.stat .l { color: var(--ink-2); font-weight: 600; }
.stats-note { text-align: center; color: var(--ink-3); font-size: .85rem; margin-top: 16px; }

/* Pricing */
.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin: 0 auto 22px; }
.toggle button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--navy-700); box-shadow: 0 2px 8px rgba(11,31,58,.12); }
.price-card { max-width: 440px; margin: 0 auto; background: #fff; border: 2px solid var(--navy-700); border-radius: 24px; padding: 28px; text-align: center; box-shadow: var(--shadow); position: relative; }
.price { font-size: 3.4rem; font-weight: 800; color: var(--navy-900); line-height: 1; direction: ltr; unicode-bidi: isolate; }
.price small { font-size: 1rem; color: var(--ink-3); font-weight: 600; }
.was { color: var(--ink-3); text-decoration: line-through; font-weight: 700; margin-inline-end: 8px; }
.save { display: inline-block; background: var(--gold-50); color: #9a6b0c; border: 1px solid #f3dca8; font-weight: 800; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
.price-meta { min-height: 30px; margin: 10px 0 18px; }
.includes { list-style: none; padding: 0; margin: 0 0 22px; text-align: start; display: grid; gap: 10px; }
.includes li { display: flex; gap: 10px; align-items: flex-start; }
.includes li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c8a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.price-card .btn { width: 100%; }
.cash { color: var(--ink-3); font-size: .88rem; margin: 12px 0 0; }
[hidden] { display: none !important; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { background: radial-gradient(800px 400px at 50% 0%, #1f5aa3 0%, transparent 70%), var(--navy-900); color: #fff; text-align: center; }
.contact h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 800; }
.contact p { color: #c4d3e8; max-width: 36rem; margin: 0 auto 26px; }
.contact-grid { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.contact-grid .btn { width: 100%; }

/* Footer */
.footer { background: #071528; color: #93a6c1; padding: 28px 0; font-size: .9rem; }
.footer .wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer a { color: #c9d6e8; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .brand { color: #fff; }

/* Floating WhatsApp (phones) */
.wa-float { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transform: scale(0); transition: transform .3s cubic-bezier(.2,.8,.2,1.4); }
.wa-float.show { transform: scale(1); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal on scroll (only when JS runs; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* Small phones: keep the header on one line */
@media (max-width: 380px) {
  .lang-btn span, .menu-btn .lbl { display: none; }
  .lang-btn, .menu-btn { padding: 0 10px; }
}

/* Larger screens */
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .cards.three, .steps { grid-template-columns: repeat(3, 1fr); }
  .cards.six { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .appeal { flex-direction: row; justify-content: space-between; text-align: start; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .head-actions { margin-inline-start: 8px; }
  .head-actions .signin { display: inline-flex; min-height: 44px; padding: 0 16px; font-size: .92rem; }
  .menu-btn { display: none; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cards.six { grid-template-columns: repeat(3, 1fr); }
  section { padding: 88px 0; }
  .wa-float { display: none; }
  .footer .wrap { flex-direction: row; justify-content: space-between; text-align: start; }
}

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