/* =========================================================================
   Nik Pouyeh Arya Tejarat — public website design system
   Brand: deep navy + metallic gold (from the company logo)
   ========================================================================= */

:root {
  --navy-950: #061433;
  --navy-900: #0a1f4d;
  --navy-800: #0b2a6f;
  --navy-700: #12398f;
  --navy-600: #1d4fb8;
  --navy-100: #e6ecf8;
  --navy-50:  #f3f6fc;

  --gold-600: #b8861f;
  --gold-500: #d4a537;
  --gold-400: #e5bf5c;
  --gold-100: #faf1db;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --white:   #ffffff;

  --success: #0f9d58;
  --danger:  #d93025;

  --font: "Plus Jakarta Sans", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 77, .06), 0 1px 3px rgba(10, 31, 77, .08);
  --shadow:    0 10px 30px -12px rgba(10, 31, 77, .25);
  --shadow-lg: 0 30px 60px -20px rgba(6, 20, 51, .45);
  --gold-gradient: linear-gradient(135deg, #f3d488 0%, #d4a537 45%, #a8741a 100%);
  --container: 1200px;
}

*, *::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-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy-900); }
p { margin: 0 0 1em; }
.fa { font-family: "Vazirmatn", var(--font); direction: rtl; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  line-height: 1;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--navy-50); }
.bg-navy { background: radial-gradient(1200px 500px at 85% -10%, rgba(212,165,55,.18), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #dbe4f5; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-gradient); border-radius: 2px; }
.bg-navy .eyebrow { color: var(--gold-400); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 12px; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; }
.bg-navy .section-head p { color: #b6c3de; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.btn-gold { background: var(--gold-gradient); color: var(--navy-950); box-shadow: 0 8px 20px -8px rgba(212,165,55,.7); }
.btn-gold:hover { color: var(--navy-950); box-shadow: 0 12px 26px -8px rgba(212,165,55,.8); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-outline { border-color: var(--ink-300); color: var(--navy-800); background: var(--white); }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.topbar { background: var(--navy-950); color: #b6c3de; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #dbe4f5; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .material-symbols-outlined { font-size: 16px; color: var(--gold-400); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; color: var(--navy-900); letter-spacing: .02em; }
.brand-text small { font-family: "Vazirmatn", sans-serif; color: var(--gold-600); font-size: .82rem; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink-700); font-weight: 600; font-size: .94rem; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); background: var(--navy-50); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; }
.hero .fa-tag { text-align: left; }
.hero h1 .gold { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #c3cfe6; max-width: 560px; }
.hero .fa-tag { font-size: 1.15rem; color: var(--gold-400); margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; color: #9fb0d2; font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .material-symbols-outlined { color: var(--gold-400); font-size: 20px; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: 28px; padding: 36px;
  background: linear-gradient(160deg, #ffffff 0%, #eef2fb 100%);
  box-shadow: var(--shadow-lg);
}
.hero-card img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(10,31,77,.25)); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--ink-900); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .85rem; animation: floaty 6s ease-in-out infinite;
}
.float-chip strong { display: block; color: var(--navy-900); font-size: 1rem; }
.float-chip small { color: var(--ink-500); }
.float-chip .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); }
.float-chip .icon.gold { background: var(--gold-100); color: var(--gold-600); }
.chip-a { top: -18px; left: -28px; }
.chip-b { bottom: -22px; right: -18px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Stats band ---------- */
.stats { margin-top: -64px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--ink-200);
}
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid var(--ink-200); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 2.3rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.03em; }
.stat-value .plus { color: var(--gold-500); }
.stat-label { color: var(--ink-500); font-size: .92rem; font-weight: 600; }

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

.card {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.card p { color: var(--ink-500); font-size: .96rem; margin: 0; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-600)); color: var(--white);
  box-shadow: 0 10px 20px -10px rgba(11,42,111,.7);
}
.icon-badge.gold { background: var(--gold-gradient); color: var(--navy-950); box-shadow: 0 10px 20px -10px rgba(212,165,55,.8); }
.icon-badge .material-symbols-outlined { font-size: 28px; }
.card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; font-weight: 700; font-size: .9rem; color: var(--navy-700); }
.card-link .material-symbols-outlined { font-size: 18px; transition: transform .2s; }
.card:hover .card-link .material-symbols-outlined { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-gradient); color: var(--navy-950); font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: #aebcd9; font-size: .94rem; margin: 0; }

/* ---------- Feature split ---------- */
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-700); }
.check-list .material-symbols-outlined { color: var(--gold-500); font-variation-settings: "FILL" 1; }
.visual-panel {
  border-radius: 28px; padding: 40px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(212,165,55,.25), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: var(--white); min-height: 420px; display: grid; gap: 16px; align-content: center;
}
.metric-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.metric-row span { color: #b6c3de; font-size: .9rem; }
.metric-row strong { color: var(--white); }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--gold-gradient); border-radius: 6px; }

/* ---------- Industries ---------- */
.pill-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--ink-200); font-weight: 600; color: var(--navy-900); box-shadow: var(--shadow-sm);
}
.pill .material-symbols-outlined { color: var(--gold-500); font-size: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: radial-gradient(500px 240px at 0% 100%, rgba(212,165,55,.3), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: #c3cfe6; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* ---------- Page header ---------- */
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.page-hero p { color: #b6c3de; max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: #8ea0c6; margin-bottom: 8px; }
.breadcrumb a { color: #c3cfe6; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-top: -40px; position: relative; }
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--ink-200); overflow: hidden; }
.form-section { padding: 30px 34px; border-bottom: 1px solid var(--ink-200); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.form-section-title .num {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  background: var(--navy-50); color: var(--navy-800); border: 1px solid var(--navy-100);
}
.form-section-title h2 { font-size: 1.12rem; margin: 0; }
.form-section-title p { margin: 0; color: var(--ink-500); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.col-span-2 { grid-column: span 2; }
.col-span-all { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink-700); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--ink-200); border-radius: 12px; font: inherit; font-size: .95rem;
  color: var(--ink-900); background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(29,79,184,.12); }
.input.input-validation-error, .select.input-validation-error { border-color: var(--danger); }
.hint { font-size: .8rem; color: var(--ink-500); margin-top: 5px; }
.field-validation-error, .text-danger { color: var(--danger); font-size: .82rem; margin-top: 5px; display: block; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; cursor: pointer; margin: 0;
  border: 1.5px solid var(--ink-200); transition: all .15s; background: var(--white);
}
.segmented label .material-symbols-outlined { font-size: 30px; color: var(--ink-500); }
.segmented label strong { display: block; color: var(--navy-900); font-size: 1rem; }
.segmented label small { color: var(--ink-500); font-weight: 500; }
.segmented input:checked + label { border-color: var(--navy-700); background: var(--navy-50); box-shadow: 0 0 0 4px rgba(29,79,184,.1); }
.segmented input:checked + label .material-symbols-outlined { color: var(--gold-500); }
.segmented input:focus-visible + label { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.input-group { display: grid; grid-template-columns: 1fr 150px; gap: 8px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 34px; background: var(--navy-50); }
.form-footer small { color: var(--ink-500); display: flex; gap: 8px; align-items: center; }

.side-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--ink-200); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.side-card h3 { font-size: 1.05rem; }
.side-card.dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #c3cfe6; border: 0; }
.side-card.dark h3 { color: var(--white); }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .92rem; }
.side-list li { display: flex; gap: 10px; }
.side-list .material-symbols-outlined { color: var(--gold-500); font-size: 20px; }
.sticky { position: sticky; top: 100px; }

.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; font-size: .94rem; margin-bottom: 20px; }
.alert-error { background: #fdecea; color: #8a1c13; border: 1px solid #f6c5c0; }
.alert-success { background: #e7f6ee; color: #0b5d34; border: 1px solid #bfe5cf; }

/* ---------- Success / tracking ---------- */
.success-card { text-align: center; padding: 56px 40px; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-gradient); color: var(--navy-950); }
.success-icon .material-symbols-outlined { font-size: 44px; }
.tracking-code {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 8px; padding: 14px 24px; border-radius: 14px;
  background: var(--navy-50); border: 1.5px dashed var(--navy-600); font-size: 1.5rem; font-weight: 800; color: var(--navy-800); letter-spacing: .08em;
}
.copy-btn { border: 0; background: none; color: var(--navy-600); cursor: pointer; padding: 4px; }

.timeline { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 24px 40px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--ink-200); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--white); }
.timeline .dot .material-symbols-outlined { font-size: 16px; }
.timeline li:last-child .dot { background: var(--gold-gradient); color: var(--navy-950); }
.timeline strong { display: block; color: var(--navy-900); }
.timeline small { color: var(--ink-500); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .82rem; background: var(--navy-50); color: var(--navy-800); }
.status-badge.Completed, .status-badge.Approved { background: #e7f6ee; color: #0b5d34; }
.status-badge.Rejected, .status-badge.Cancelled { background: #fdecea; color: #8a1c13; }
.status-badge.Quoted { background: var(--gold-100); color: #7a560c; }

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--ink-200); background: var(--white); }
.contact-item h3 { font-size: 1rem; margin: 0 0 4px; }
.contact-item p { margin: 0; color: var(--ink-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0d2; padding: 72px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; background: var(--white); padding: 10px 16px; border-radius: 14px; margin-bottom: 18px; }
.footer-brand img { height: 40px; }
.footer-brand span { color: var(--navy-900); font-weight: 800; font-size: .9rem; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #9fb0d2; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .material-symbols-outlined { color: var(--gold-400); font-size: 20px; }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; }

/* ---------- AI assistant widget ---------- */
.ai-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold-gradient); color: var(--navy-950); box-shadow: 0 16px 30px -10px rgba(168,116,26,.8);
  display: grid; place-items: center; transition: transform .2s;
}
.ai-fab:hover { transform: scale(1.06); }
.ai-fab .material-symbols-outlined { font-size: 30px; }
.ai-fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(212,165,55,.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.ai-fab-label {
  position: fixed; right: 98px; bottom: 40px; z-index: 89; background: var(--white); color: var(--navy-900);
  padding: 8px 14px; border-radius: 12px; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow);
}

.ai-panel {
  position: fixed; right: 24px; bottom: 100px; z-index: 95; width: 390px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 130px); display: flex; flex-direction: column;
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--ink-200);
  transform-origin: bottom right; transition: transform .2s ease, opacity .2s ease;
}
.ai-panel[hidden] { display: flex; opacity: 0; transform: scale(.92) translateY(10px); pointer-events: none; visibility: hidden; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: var(--white); }
.ai-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--white); display: grid; place-items: center; padding: 4px; }
.ai-avatar img { width: 100%; }
.ai-head strong { display: block; font-size: .98rem; }
.ai-head small { color: #9fb0d2; display: inline-flex; align-items: center; gap: 6px; }
.ai-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.ai-head .spacer { flex: 1; }
.ai-icon-btn { background: rgba(255,255,255,.08); border: 0; color: var(--white); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.ai-icon-btn:hover { background: rgba(255,255,255,.16); }
.ai-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--navy-50); display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; unicode-bidi: plaintext; }
.msg.bot { align-self: flex-start; background: var(--white); color: var(--ink-900); border: 1px solid var(--ink-200); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--navy-800); color: var(--white); border-bottom-right-radius: 4px; }
.msg.error { background: #fdecea; color: #8a1c13; border-color: #f6c5c0; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-suggestions button { border: 1px solid var(--navy-100); background: var(--white); color: var(--navy-800); padding: 7px 12px; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ai-suggestions button:hover { border-color: var(--navy-600); }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ink-200); background: var(--white); }
.ai-form textarea { flex: 1; resize: none; border: 1.5px solid var(--ink-200); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: .92rem; height: 46px; max-height: 120px; unicode-bidi: plaintext; }
.ai-form textarea:focus { outline: 0; border-color: var(--navy-600); }
.ai-send { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--navy-800); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.ai-send:disabled { opacity: .5; cursor: not-allowed; }
.ai-foot { text-align: center; font-size: .72rem; color: var(--ink-500); padding: 0 12px 10px; background: var(--white); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 12px 20px 20px; border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow);
  }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink-200); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .grid-4, .form-grid, .form-grid-3, .segmented { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-section { padding: 24px 20px; }
  .form-footer { flex-direction: column; align-items: stretch; padding: 20px; }
  .brand-text { display: none; }
  .float-chip { display: none; }
  .ai-fab-label { display: none; }
  .ai-panel { right: 16px; bottom: 96px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Utilities (no inline styles: the CSP forbids them) ---------- */
.muted { color: var(--ink-500); }
.metric-row.block { display: block; }
.w-72 { width: 72%; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.text-center { text-align: center; }
.narrow { max-width: 760px; margin: 0 auto; }
.success-card .btn-row { justify-content: center; }
.grid-3-stack { display: grid; gap: 16px; }
.cta-vertical { flex-direction: column; align-items: flex-start; }
.page-hero .fa { color: var(--gold-400); text-align: left; }
.timeline-wrap { margin-top: 16px; }
.form-section-title .num .material-symbols-outlined { font-size: 18px; }

/* ---------- Stitch design additions ---------- */
.card-featured { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-color: transparent; position: relative; }
.card-featured h3 { color: var(--white); }
.card-featured p { color: #b6c3de; }
.card-featured .card-link { color: var(--gold-400); }
.card-tag { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-950); background: var(--gold-gradient); padding: 4px 10px; border-radius: 999px; }
.quick-track { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 14px; align-items: end; padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--ink-200); box-shadow: var(--shadow); }
.quick-track h2 { font-size: 1.3rem; margin: 6px 0 0; }
@media (max-width: 900px) { .quick-track { grid-template-columns: 1fr; } }

.grid-2 h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 12px; }
.brand img { flex: none; }
@media (max-width: 640px) {
  .topbar { display: none; }
  .nav { height: 66px; }
  .nav-cta .btn-gold { padding: 10px 14px; font-size: .85rem; }
}

/* =========================================================================
   Language switch + Right-to-left (Persian) support
   ========================================================================= */
.topbar-right { display: inline-flex; align-items: center; gap: 18px; }
.lang-link { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-weight: 700; }
.lang-link:hover { border-color: var(--gold-400); color: var(--gold-400) !important; }
.nav-lang { display: none; }
.brand-fa { font-family: "Vazirmatn", sans-serif; font-size: 1.05rem !important; }
.brand-en { font-family: "Plus Jakarta Sans", sans-serif !important; letter-spacing: .06em; font-size: .68rem !important; }

[dir="rtl"] body { font-family: "Vazirmatn", "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.45; font-weight: 800; }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
[dir="rtl"] .hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
[dir="rtl"] .stat-value, [dir="rtl"] .tracking-code { letter-spacing: 0; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[dir="rtl"] .card:hover .card-link .flip-rtl { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .stat { border-right: 0; border-left: 1px solid var(--ink-200); }
[dir="rtl"] .stat:last-child { border-left: 0; }
[dir="rtl"] .chip-a { left: auto; right: -28px; }
[dir="rtl"] .chip-b { right: auto; left: -18px; }
[dir="rtl"] .card-tag { right: auto; left: 18px; }
[dir="rtl"] .timeline li { padding: 0 40px 24px 0; }
[dir="rtl"] .timeline li::before { left: auto; right: 13px; }
[dir="rtl"] .timeline .dot { left: auto; right: 0; }
[dir="rtl"] .validation-summary-errors ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .ai-fab { right: auto; left: 24px; }
[dir="rtl"] .ai-fab-label { right: auto; left: 98px; }
[dir="rtl"] .ai-panel { right: auto; left: 24px; transform-origin: bottom left; }
[dir="rtl"] .msg.bot { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .msg.user { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] .page-hero .fa, [dir="rtl"] .hero .fa-tag { text-align: right; }
[dir="rtl"] .breadcrumb, [dir="rtl"] .footer-bottom { direction: rtl; }
[dir="rtl"] input[dir="ltr"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="number"], [dir="rtl"] input[type="date"] { text-align: right; }
[dir="rtl"] .ai-form textarea, [dir="rtl"] .input, [dir="rtl"] .select, [dir="rtl"] .textarea { font-family: "Vazirmatn", sans-serif; }

@media (max-width: 900px) {
  .nav-lang { display: block; }
  .site-header.open .nav-links .nav-lang a { color: var(--gold-600); }
}
@media (max-width: 640px) {
  [dir="rtl"] .ai-panel { left: 16px; right: auto; }
}
.stat-value .plus { margin-inline-start: .12em; }
@media (max-width: 900px) {
  [dir="rtl"] .stat:nth-child(2n) { border-left: 0; }
}
