/* ===== HooshYar (هوش‌یار) — Design System ===== */
/* فونت وزیرمتن self-hosted (به‌جای CDN گوگل) — دقیقاً همان فایل‌های
   ریسک‌بان، چون دسترسی به CDNهای خارجی از داخل ایران ناپایدار است. */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* پالت هم‌راستا با تم روشن فراپاد (`farapad-landing/src/app/globals.css` و
   `tailwind.config.ts`): آبی #2563EB رنگ اصلی، فیروزه‌ای #06B6D4 و نارنجی
   برند آدفا #F97316. مقیاس navy روی همان مقیاس اسلیتِ فراپاد نشست تا
   بخش‌های تیرهٔ هوش‌یار با بقیهٔ زیست‌بوم یک‌دست دیده شوند. */
:root {
  --navy-950: #090d16;
  --navy-900: #0b0f19;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --blue-600: #2563eb;
  --blue-500: #60a5fa;
  --cobalt-700: #1d4ed8;
  --cyan-400: #06b6d4;
  --cyan-300: #67e8f9;
  /* فیروزه‌ای تیره‌تر فقط برای پایانهٔ گرادیان برند: این گرادیان در ۱۱ جا زمینهٔ
     متنِ سفید است (دکمهٔ اصلی، کال‌اوت، آیکن‌ها) و با #06b6d4 نسبت کنتراست به
     ۲٫۴۳:۱ می‌افتاد. با cyan-700 همان طیف آبی→فیروزه‌ای حفظ می‌شود ولی تیره‌ترین
     نقطهٔ خوانایی ۵٫۲:۱ است. #06b6d4 برای کاربردهای تزئینی (اُرب، بج) می‌ماند. */
  --cyan-700: #0e7490;
  --brand-accent: #f97316;
  --gradient-brand: linear-gradient(95deg, var(--cobalt-700) 0%, var(--blue-600) 45%, var(--cyan-700) 100%);
  --ink-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -20px rgba(11, 18, 32, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(11, 18, 32, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background: var(--white);
  direction: rtl;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  right: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow.on-dark {
  color: var(--cyan-300);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.35; color: var(--ink-900); }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }
p { color: var(--slate-600); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 17px; margin-top: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.65); }
.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--slate-300);
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline.on-dark { color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline.on-dark:hover { border-color: var(--cyan-300); color: var(--cyan-300); }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink-900); }
.brand .mark { width: 40px; height: 40px; object-fit: contain; }
.brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.06em; color: var(--slate-500); }
/* فوتر و بخش‌های تیره همچنان نشانِ روشن می‌خواهند. */
.site-footer .brand, .section-dark .brand { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  color: var(--slate-600);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { background: var(--slate-100); color: var(--blue-600); }
.has-dropdown { display: flex; align-items: center; gap: 4px; }
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  box-shadow: var(--shadow-soft);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--slate-700); font-size: 14.5px; }
.dropdown a:hover { background: var(--slate-50); color: var(--blue-600); }
.dropdown a span { display: block; font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--slate-700); font-size: 26px; cursor: pointer; }

@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateY(-110%); transition: transform .3s ease; overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.nav-link { display: block; padding: 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; margin: 0 0 8px 0; background: var(--slate-50); border-color: transparent; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---- Hero (dark) ---- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(37,99,235,0.35), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(6, 182, 212,0.22), transparent 55%),
              var(--navy-950);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 110px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 60% 20%, black, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; max-width: 860px; text-align: center; margin: 0 auto; }
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 700px; margin: 22px auto 0; }
.hero .cta-row { justify-content: center; }

/* Hero with visual (two-column) */
.hero.has-media .container { max-width: var(--container); text-align: right; }
.hero-columns { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-columns .hero-text { max-width: 620px; }
.hero-columns .hero-text .lead { margin: 22px 0 0; }
.hero-columns .cta-row { justify-content: flex-start; }
.hero-media { position: relative; }
.hero-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: linear-gradient(140deg, rgba(37,99,235,0.55), rgba(6, 182, 212,0.35));
  box-shadow: 0 30px 80px -20px rgba(6, 12, 30, 0.65);
}
.hero-media img {
  border-radius: 16px;
  width: 100%;
  display: block;
}
@media (max-width: 900px) {
  .hero-columns { grid-template-columns: 1fr; text-align: center; }
  .hero-columns .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-columns .cta-row { justify-content: center; }
  .hero.has-media .container { text-align: center; }
}

/* Ecosystem diagram visual */
.eco-visual { margin-bottom: 46px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-soft); }
.eco-visual img { width: 100%; display: block; }

/* Security / air-gapped visual */
.security-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow-soft); }
.security-visual img { width: 100%; display: block; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 420px at 90% -10%, rgba(6, 182, 212,0.22), transparent 60%), var(--navy-950);
  color: var(--white);
  padding: 96px 0 80px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero p.lead { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 700px; margin-top: 16px; }

/* ---- Grids / Cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -18px rgba(11,18,32,0.22); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand); color: var(--white); margin-bottom: 18px;
  font-size: 22px; font-weight: 800;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }
.card .tag { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--blue-600); }

/* Product ecosystem cards on dark */
.eco-card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--white);
}
.eco-card h3 { color: var(--white); margin-bottom: 8px; }
.eco-card p { color: rgba(255,255,255,0.68); font-size: 14.5px; margin-bottom: 18px; }
.eco-card .badge { font-size: 12px; font-weight: 700; color: var(--cyan-300); background: rgba(6, 182, 212,0.1); padding: 4px 12px; border-radius: 999px; display: inline-block; margin-bottom: 14px; }
.eco-card a.tag { color: var(--cyan-300); font-weight: 700; font-size: 14px; }

.ecosystem-section { background: var(--navy-950); color: var(--white); }
.ecosystem-section .section-head h2 { color: var(--white); }
.ecosystem-section .section-head p { color: rgba(255,255,255,0.7); }

/* ---- Stats ---- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  text-align: center;
}
.stat-card .num {
  font-size: 34px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
}
.stat-card p { font-size: 14px; color: var(--slate-600); }

/* ---- Timeline (pipeline) ---- */
.pipeline { display: flex; flex-direction: column; gap: 0; border-inline-start: 2px solid var(--slate-100); margin-inline-start: 14px; }
.pipeline-step { position: relative; padding: 0 0 40px 0; padding-inline-start: 34px; }
.pipeline-step:last-child { padding-bottom: 0; }
.pipeline-step::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--slate-100);
}
.pipeline-step .step-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pipeline-step h4 { font-size: 17px; font-weight: 700; color: var(--ink-900); }
.pipeline-step .time { font-size: 13px; font-weight: 700; color: #1d4ed8; background: rgba(37,99,235,0.08); padding: 3px 12px; border-radius: 999px; }
.pipeline-step p { margin-top: 6px; font-size: 14.5px; }

/* ---- Callout / banner ---- */
.callout {
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.callout h3 { color: var(--white); font-size: 22px; max-width: 780px; margin: 0 auto; }
.callout p { color: rgba(255,255,255,0.93); margin-top: 10px; }

.banner-dark {
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.banner-dark h3 { color: var(--white); font-size: 20px; max-width: 760px; margin: 0 auto; }

/* ---- Feature list w/ check icons ---- */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--slate-700); }
.check-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 6px;
  background: var(--gradient-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
}
.check-list.compact { gap: 9px; margin-bottom: 18px; }
.check-list.compact li { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.check-list.compact li::before { width: 16px; height: 16px; margin-top: 2px; }

/* ---- Deployment tabs (3 cards) ---- */
.deploy-card { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--slate-100); background: var(--white); }
.deploy-card h3 { margin-bottom: 10px; }
.deploy-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.deploy-card ul li { font-size: 14px; color: var(--slate-600); padding-inline-start: 16px; position: relative; }
.deploy-card ul li::before { content: "—"; position: absolute; right: 0; color: var(--cyan-400); }
.deploy-card.featured { border-color: transparent; background: var(--navy-900); color: var(--white); }
.deploy-card.featured h3, .deploy-card.featured p { color: var(--white); }
.deploy-card.featured ul li { color: rgba(255,255,255,0.75); }

/* ---- Section variants ---- */
.section-alt { background: var(--slate-50); }
.section-dark { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); }
.section-dark .container { position: relative; z-index: 1; }
/* تیترها قانون اختصاصی خودشان دارند (`h1,h2,h3,h4{color:ink-900}`) و آن قانون
   بر رنگِ ارث‌بردهٔ بخشِ تیره غلبه می‌کند؛ بدون این خط هر تیتری که بیرونِ
   `.section-head` باشد سرمه‌ای روی سرمه‌ای و عملاً نامرئی می‌شود. */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }
.section-dark p { color: rgba(255,255,255,0.72); }

/* ---- Product page template ---- */
.product-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.powered-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.powered-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); }

.value-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: center; }
@media (max-width: 800px) { .value-strip { grid-template-columns: 1fr; } }

/* ---- Table (sitemap on about / API list) ---- */
.simple-table { width: 100%; border-collapse: collapse; }
.simple-table th, .simple-table td { text-align: right; padding: 16px 18px; border-bottom: 1px solid var(--slate-100); font-size: 14.5px; }
.simple-table th { color: var(--slate-500); font-weight: 700; font-size: 13px; }
.simple-table td { color: var(--slate-700); }
.simple-table code { background: var(--slate-100); padding: 3px 8px; border-radius: 6px; font-size: 13px; color: var(--cobalt-700); direction: ltr; display: inline-block; }

/* ---- Code block ---- */
.code-block {
  background: var(--navy-950);
  color: #d7e3ff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  line-height: 1.7;
}
.code-block .k { color: var(--cyan-300); }
.code-block .s { color: #a5f3c1; }

/* ---- Contact form ---- */
.form-card { background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--slate-700); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--slate-300);
  background: var(--white);
  color: var(--ink-900);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-600); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--slate-500); margin-top: 16px; }
.form-alert { border-radius: 12px; padding: 16px 20px; font-size: 14.5px; margin-bottom: 24px; }
.form-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item .icon-sm { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--gradient-brand); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.contact-info .item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info .item p { font-size: 14px; }

/* ---- Footer ---- */
/* فوتر روشن، هم‌شکل با فوتر فراپاد: زمینهٔ slate-50، بردر نارنجی برند آدفا
   کنار تیترها و لینک‌هایی که روی hover آبی می‌شوند. */
.site-footer { background: var(--slate-50); color: var(--slate-600); padding: 70px 0 30px; border-top: 1px solid var(--slate-200); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--slate-200); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .brand { color: var(--ink-900); margin-bottom: 14px; }
.footer-grid p.desc { font-size: 14px; max-width: 320px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fbadge { font-size: 11px; font-weight: 700; color: #0e7490; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3); padding: 4px 12px; border-radius: 999px; }
.footer-col h5 { color: var(--ink-900); font-size: 14px; margin-bottom: 16px; border-right: 4px solid var(--brand-accent); padding-right: 12px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--slate-600); transition: color .2s; }
.footer-col a:hover { color: var(--blue-600); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; flex-wrap: wrap; gap: 12px; color: var(--slate-500); }
.footer-bottom a { color: var(--blue-600); font-weight: 600; }

/* ---- Visual refresh: glass cards, neon accents, glow, tabs, compare table, journey ---- */
.bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.bg-orb.cyan { background: var(--cyan-400); opacity: .32; }
.bg-orb.blue { background: var(--blue-600); opacity: .28; }
.bg-orb.size-lg { width: 480px; height: 480px; }
.bg-orb.size-md { width: 360px; height: 360px; }
.bg-orb.top-right { top: -140px; inset-inline-end: -140px; }
.bg-orb.bottom-left { bottom: -120px; inset-inline-start: -140px; }
.bg-orb.top-left { top: -120px; inset-inline-start: -160px; }

.neon-text {
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(16, 27, 52, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: var(--radius-lg);
}

.glow-border { position: relative; }
.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212,.65), rgba(37,99,235,.25), rgba(6, 182, 212,.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Ecosystem section as glass-on-dark */
.ecosystem-section { position: relative; overflow: hidden; }
.ecosystem-section .container { position: relative; z-index: 1; }
.eco-card { background: rgba(255,255,255,0.04); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(103,232,249,0.14); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.eco-card:hover { transform: translateY(-6px); border-color: rgba(6, 182, 212,.45); box-shadow: 0 20px 50px -18px rgba(6, 182, 212,.3); }

/* Hero orbs need containing context */
.hero { z-index: 1; }
.hero .bg-orb { z-index: 0; }

/* ---- Tabs (module architecture) ---- */
.tab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tab-btn {
  font-family: inherit;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: transparent;
  color: var(--slate-500);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}
.tab-btn:hover { color: var(--blue-600); border-color: rgba(37,99,235,.45); }
.tab-btn.tab-active {
  background: var(--gradient-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 26px -10px rgba(37,99,235,.55);
}
.tab-panel-wrap { background: var(--navy-900); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-soft); }
.tab-panel { display: none; }
.tab-panel.tab-panel-active { display: block; }
.tab-panel h3 { color: var(--white); margin-bottom: 8px; }
.tab-panel p { color: rgba(255,255,255,0.72); font-size: 15px; }

/* ---- Guardrails as glass grid ---- */
.guardrail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .guardrail-grid { grid-template-columns: 1fr; } }
.guardrail-item { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; background: var(--navy-900); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); transition: border-color .25s ease, transform .25s ease; }
.guardrail-item:hover { border-color: rgba(6, 182, 212,.35); transform: translateY(-3px); }
.guardrail-item .g-num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--gradient-brand); color: var(--white); font-weight: 800; font-size: 13.5px; display: flex; align-items: center; justify-content: center; }
.guardrail-item h4 { font-size: 15.5px; color: var(--white); margin-bottom: 4px; }
.guardrail-item p { font-size: 13.5px; color: rgba(255,255,255,0.68); margin: 0; }

/* ---- Comparison table ---- */
.compare-panel { padding: 6px; }
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: right; font-size: 14.5px; }
.compare-table thead th { color: rgba(255,255,255,0.75); font-weight: 700; font-size: 13px; border-bottom: 1px solid rgba(103,232,249,0.2); }
.compare-table thead th.highlight { color: var(--cyan-300); }
.compare-table tbody td { color: rgba(255,255,255,0.66); border-bottom: 1px solid rgba(255,255,255,0.06); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td.feature { color: var(--white); font-weight: 700; }
.compare-table tbody td.yes { color: var(--cyan-300); font-weight: 700; }
.compare-table tbody td.no { color: #fb7185; }
.compare-table tbody td.partial { color: #fbbf24; }

/* ---- Trust bar (under hero) ---- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 36px; padding: 20px 24px;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-bar span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.78); }
.trust-bar span::before { content: "✓"; color: var(--cyan-400); font-weight: 800; }

/* ---- Deployment journey (roadmap-style) ---- */
.journey-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.journey-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 16%;
  left: 16%;
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,.5), rgba(6, 182, 212,.4), rgba(37,99,235,.5));
  z-index: 0;
}
@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr; } .journey-grid::before { display: none; } }
.journey-step { position: relative; z-index: 1; }
.journey-step .step-num {
  width: 52px; height: 52px; margin: 0 0 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  background: var(--white); border: 1.5px solid var(--slate-300); color: var(--blue-600);
}
.journey-step.featured .step-num {
  background: var(--gradient-brand); color: var(--white); border-color: transparent;
  box-shadow: 0 10px 30px -8px rgba(37,99,235,.55);
}
.journey-step .deploy-card { height: 100%; }

/* ---- Module feature chips (dark tab panels) ---- */
.chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 700px) { .chip-grid { grid-template-columns: 1fr; } }
.chip-grid .chip { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: rgba(255,255,255,0.78); }

/* ---- Quick-access modals (demo / architecture doc) ---- */
dialog[data-modal] { border: none; padding: 0; width: min(92vw, 480px); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
dialog[data-modal]::backdrop { background: rgba(5,9,20,0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[data-modal] .form-card { padding: 36px; position: relative; box-shadow: none; border: none; }
dialog[data-modal] .modal-close { position: absolute; top: 18px; inset-inline-start: 18px; background: none; border: none; font-size: 20px; line-height: 1; color: var(--slate-500); cursor: pointer; }
dialog[data-modal] .modal-close:hover { color: var(--ink-900); }
dialog[data-modal] h3 { margin-bottom: 18px; padding-inline-end: 26px; }
.modal-fields { display: flex; flex-direction: column; gap: 14px; }

/* ---- Live inference simulator ---- */
.sim-card { padding: 30px; max-width: 640px; margin: 0 auto; }
.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.sim-head h3 { color: var(--white); font-size: 16px; margin-bottom: 2px; }
.sim-head .sub { font-size: 11.5px; color: rgba(255,255,255,0.55); }
.sim-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--cyan-300); background: rgba(6, 182, 212,0.1); border: 1px solid rgba(6, 182, 212,0.3); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.sim-query { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 18px 20px; }
.sim-query .label { display: block; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.sim-query p { color: rgba(255,255,255,0.88); font-size: 14px; }
.sim-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
@media (max-width: 640px) { .sim-steps { grid-template-columns: repeat(2, 1fr); } }
.sim-steps .step { text-align: center; font-size: 11px; font-weight: 700; padding: 10px 4px; border-radius: 8px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.58); transition: all .3s ease; }
.sim-steps .step.active { background: rgba(37,99,235,0.28); color: var(--cyan-300); }
.sim-steps .step.done { background: rgba(6, 182, 212,0.14); color: var(--cyan-300); }
.sim-toggle-btn { width: 100%; border: 1px solid rgba(6, 182, 212,0.3); background: transparent; color: var(--cyan-300); font-family: inherit; font-weight: 700; font-size: 14px; padding: 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background .25s ease; }
.sim-toggle-btn:hover { background: rgba(6, 182, 212,0.08); }
.sim-answer { max-height: 0; overflow: hidden; transition: max-height .6s ease; }
.sim-answer.open { max-height: 900px; margin-top: 16px; }
.sim-answer-box { border: 1px solid rgba(6, 182, 212,0.3); background: rgba(6, 182, 212,0.06); border-radius: var(--radius-md); padding: 16px 18px; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,0.9); }
.sim-answer-box strong { color: var(--cyan-300); }
.sim-answer-meta { margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,0.55); }
.sim-answer-meta b { color: var(--cyan-300); font-weight: 800; }
.sim-citations { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sim-citation { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 12px 14px; }
.sim-citation .doc-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--cyan-300); }
.sim-citation .doc-row span:last-child { color: rgba(255,255,255,0.5); font-weight: 500; }
.sim-citation p { color: rgba(255,255,255,0.65); font-size: 12px; margin-bottom: 6px; }
.sim-citation .match { color: #34d399; font-weight: 700; font-size: 11.5px; }

/* ---- Utilities ---- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
