/* ============================================================
   ZiraTrade LLC — stylesheet
   Theme: deep navy + orange neon, technical / scanning motif
   ============================================================ */

:root {
  /* palette */
  --bg:        #0A1124;   /* deep navy */
  --bg-2:      #0D1630;   /* alt section */
  --panel:     #101D3A;   /* card */
  --panel-2:   #13234A;   /* raised */
  --line:      #1E2F57;   /* hairline */
  --line-soft: #182645;
  --navy-accent:#2A4B86;

  --orange:    #FF6A1A;   /* signature neon */
  --orange-hi: #FF8A3D;
  --orange-glow: rgba(255,106,26,.35);

  --text:      #EAF0FB;
  --text-mut:  #93A4C9;
  --text-dim:  #647199;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- signature: ambient scan line ---------- */
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--orange-glow), transparent);
  height: 140px;
  opacity: .10;
  animation: scan 9s linear infinite;
}
@keyframes scan {
  0%   { transform: translateY(-160px); }
  100% { transform: translateY(100vh); }
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--orange);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: var(--text);
}

.section-sub {
  color: var(--text-mut);
  max-width: 62ch;
  margin: 0;
  font-size: 17px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--orange);
  color: #1A0E03;
  box-shadow: 0 0 0 rgba(255,106,26,0);
}
.btn-primary:hover {
  background: var(--orange-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--orange-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-hi); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,17,36,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--orange);
}
.brand-mark { color: var(--orange); flex: none; }
.brand-text {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: .01em;
  color: var(--text);
}
.brand-text strong { color: var(--orange); font-weight: 700; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 15px;
  color: var(--text-mut);
  font-weight: 500;
  transition: color .18s;
  position: relative;
}
.main-nav a:not(.nav-cta):hover { color: var(--text); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .2s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  color: var(--orange) !important;
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-display);
  transition: border-color .2s, background .2s;
}
.nav-cta:hover { border-color: var(--orange); background: rgba(255,106,26,.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: .25s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 75%);
  opacity: .5;
  z-index: 0;
}
.radar {
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  z-index: 0;
  opacity: .55;
}
.radar-ring {
  position: absolute; inset: 0; margin: auto;
  border: 1px solid var(--navy-accent);
  border-radius: 50%;
}
.radar-ring:nth-child(1) { width: 100%; height: 100%; }
.radar-ring:nth-child(2) { width: 66%; height: 66%; }
.radar-ring:nth-child(3) { width: 33%; height: 33%; }
.radar-sweep {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--orange-glow) 40deg, transparent 70deg);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}
.hero-title .accent {
  color: var(--orange);
  text-shadow: 0 0 36px var(--orange-glow);
}
.hero-lede {
  font-size: 18.5px;
  color: var(--text-mut);
  max-width: 64ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 56px 0 0;
  padding: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats li {
  background: var(--bg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--orange);
}
.stat-label { font-size: 13px; color: var(--text-dim); font-family: var(--ff-mono); letter-spacing: .04em; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 28px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--text-dim);
  white-space: nowrap;
}
.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0; padding: 0;
}
.trust-list li {
  font-family: var(--ff-display);
  font-size: 15px;
  color: var(--text-mut);
  font-weight: 500;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 92px 0; position: relative; z-index: 2; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: 52px; }

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.col-narrow { position: sticky; top: 100px; }

.lead-para { font-size: 19px; color: var(--text); margin-top: 0; }
.section p { color: var(--text-mut); }

/* about value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.value-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--panel);
}
.value-item h3 {
  font-family: var(--ff-display);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}
.value-item p { font-size: 14px; margin: 0; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cap-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-accent);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.cap-card:hover::before { transform: scaleX(1); }

.cap-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--orange);
  background: rgba(255,106,26,.08);
  border: 1px solid rgba(255,106,26,.25);
  margin-bottom: 20px;
}
.cap-icon svg { width: 26px; height: 26px; }
.cap-index {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.cap-card h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--text);
}
.cap-card > p { font-size: 14.5px; margin: 0 0 16px; }
.cap-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0; padding: 0;
}
.cap-tags li {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-mut);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 6px;
}
.cap-card-cta {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cap-card-cta h3 { font-size: 20px; }
.cap-card-cta p { margin-bottom: 22px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-track {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px 22px 22px;
  border-left: 1px solid var(--line-soft);
}
.process-step:first-child { border-left: 0; }
.process-step::before {
  content: "";
  position: absolute;
  top: 38px; left: -5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
}
.process-step:first-child::before { left: 0; }
.process-num {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: .1em;
}
.process-step h3 {
  font-family: var(--ff-display);
  font-size: 17px;
  margin: 14px 0 8px;
  color: var(--text);
}
.process-step p { font-size: 14px; margin: 0; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.partner-item {
  background: var(--bg-2);
  padding: 26px 24px;
  transition: background .2s;
}
.partner-item:hover { background: var(--panel); }
.partner-bullet {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--orange);
  margin-bottom: 14px;
  box-shadow: 0 0 10px var(--orange-glow);
}
.partner-item h3 {
  font-family: var(--ff-display);
  font-size: 16.5px;
  margin: 0 0 8px;
  color: var(--text);
}
.partner-item p { font-size: 14px; margin: 0; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform .2s, border-color .2s;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--navy-accent); }
.project-media {
  position: relative;
  height: 168px;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(255,106,26,.18), transparent 55%),
    linear-gradient(135deg, #11203f, #0c1730);
  overflow: hidden;
}
.project-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .4;
}
.project-media::after {
  content: attr(data-tag);
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--orange);
  border: 1px solid rgba(255,106,26,.4);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(10,17,36,.6);
}
.project-body { padding: 22px 22px 24px; }
.project-meta {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.project-body h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  margin: 10px 0 8px;
  color: var(--text);
}
.project-body p { font-size: 14px; margin: 0; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    radial-gradient(100% 100% at 50% 0%, #16264a, #0c1730);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.team-photo span {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, transparent 60%, rgba(255,106,26,.06));
}
.team-card h3 {
  font-family: var(--ff-display);
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--text);
}
.team-role { font-family: var(--ff-mono); font-size: 12.5px; color: var(--orange); margin: 0; }

/* ============================================================
   OFFICES
   ============================================================ */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.office-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}
.office-flag {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--orange);
  border: 1px solid rgba(255,106,26,.35);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}
.office-card h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--text);
}
.office-card address {
  font-style: normal;
  color: var(--text-mut);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.office-link {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--orange);
  margin-right: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.office-link:hover { border-color: var(--orange); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 16.5px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--ff-mono);
  font-size: 22px;
  color: var(--orange);
  transition: transform .2s;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-mut);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--panel);
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.blog-card:hover { border-color: var(--navy-accent); transform: translateY(-3px); }
.blog-date {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: .08em;
}
.blog-card h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  margin: 12px 0 10px;
  color: var(--text);
  line-height: 1.3;
}
.blog-card p { font-size: 14px; margin: 0 0 16px; }
.blog-readmore {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-mut);
  transition: color .2s;
}
.blog-card:hover .blog-readmore { color: var(--orange); }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.contact-details {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-details li { display: flex; flex-direction: column; gap: 4px; }
.cd-label {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.contact-details a, .contact-details span:not(.cd-label) {
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--text);
}
.contact-details a:hover { color: var(--orange); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-mut);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,26,.15);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status {
  font-family: var(--ff-mono);
  font-size: 13px;
  margin: 14px 0 0;
  min-height: 18px;
}
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  position: relative;
  z-index: 2;
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 50px;
  padding-bottom: 44px;
}
.footer-brand p {
  color: var(--text-mut);
  font-size: 14.5px;
  max-width: 38ch;
  margin: 16px 0 0;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-nav h4 {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-nav a {
  display: block;
  font-size: 14.5px;
  color: var(--text-mut);
  margin-bottom: 10px;
  transition: color .18s;
}
.footer-nav a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-bottom .container { padding: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .col-narrow { position: static; }
  .cap-grid, .project-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
  .process-step::before { display: none; }
  .partner-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav {
    position: fixed;
    top: 72px; right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - 72px);
    background: var(--bg-2);
    border-left: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
    gap: 22px;
    transform: translateX(110%);
    transition: transform .3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 60px 0 56px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cap-grid, .project-grid, .blog-grid, .team-grid, .process-track { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   SUB-PAGES (capability detail pages)
   ============================================================ */
.breadcrumb {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 22px 0 0;
  position: relative;
  z-index: 2;
}
.breadcrumb a { color: var(--text-mut); transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }
.breadcrumb .current { color: var(--orange); }

/* page hero (compact variant of homepage hero) */
.page-hero {
  position: relative;
  padding: 50px 0 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 830px; }
.page-hero h1 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 14px 0 18px;
}
.page-hero h1 .accent { color: var(--orange); text-shadow: 0 0 30px var(--orange-glow); }
.page-hero .lede { font-size: 18px; color: var(--text-mut); max-width: 64ch; margin: 0 0 28px; }

/* sticky sub-navigation between capability pages */
.subnav {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13,22,48,.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 72px;
  z-index: 40;
}
.subnav-inner { display: flex; gap: 8px; overflow-x: auto; padding: 13px 28px; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap;
  font-family: var(--ff-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mut);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  transition: .2s;
}
.subnav a:hover { border-color: var(--orange); color: var(--text); }
.subnav a.active { background: var(--orange); color: #1A0E03; border-color: var(--orange); }

/* solutions detail grid */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s, border-color .2s;
}
.detail-card:hover { border-color: var(--navy-accent); transform: translateY(-3px); }
.detail-card h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--text);
  display: flex; align-items: center; gap: 11px;
}
.detail-card h3 .dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--orange); box-shadow: 0 0 10px var(--orange-glow); flex: none;
}
.detail-card p { font-size: 14.5px; margin: 0; }

/* applications */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-item {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 17px 18px;
  font-family: var(--ff-display);
  font-size: 15px;
  color: var(--text);
  display: flex; align-items: center; gap: 11px;
}
.app-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; box-shadow: 0 0 8px var(--orange-glow); }

/* what we deliver */
.deliver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deliver-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 22px;
  background: var(--panel);
}
.deliver-item .num { font-family: var(--ff-mono); font-size: 13px; color: var(--orange); letter-spacing: .08em; }
.deliver-item h3 { font-family: var(--ff-display); font-size: 16px; margin: 10px 0 6px; color: var(--text); }
.deliver-item p { font-size: 14px; margin: 0; }

/* related capabilities */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card {
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--panel);
  transition: .2s;
}
.related-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.related-card span { font-family: var(--ff-mono); font-size: 11px; color: var(--orange); }
.related-card h3 { font-family: var(--ff-display); font-size: 15.5px; margin: 8px 0 0; color: var(--text); line-height: 1.3; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 46px 40px;
  text-align: center;
}
.cta-band h2 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; color: var(--text); }
.cta-band p { color: var(--text-mut); max-width: 56ch; margin: 0 auto 24px; }

/* "explore" link on homepage capability cards */
.cap-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--orange);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.cap-card:hover .cap-link { border-color: var(--orange); }

@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .deliver-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 24px; }
}

/* ============================================================
   Contact: WhatsApp + WeChat
   ============================================================ */
.cd-wa, .office-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25D366 !important;
}
.cd-wa svg, .office-wa svg { color: #25D366; flex: none; }
.cd-wa:hover, .office-wa:hover { color: #1ebe5d !important; }
.cd-wechat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #09B83E;
  font-family: var(--ff-display);
  font-size: 18px;
}
.cd-wechat svg { color: #09B83E; flex: none; }
.office-wa { font-family: var(--ff-mono); font-size: 13px; margin-top: 4px; }

/* ============================================================
   Homepage project cards with real random images
   ============================================================ */
.project-media.has-image {
  background-size: cover !important;
  background-position: center !important;
}
.project-media.has-image::before { display: none; }
.project-media.has-image::after {
  background: rgba(10,17,36,.72);
  border-color: rgba(255,106,26,.5);
}
/* dark gradient for legibility + subtle brand watermark */
.project-media.has-image .pm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,17,36,.15) 0%, rgba(10,17,36,.55) 100%);
  z-index: 1;
}
.project-media .pm-wm {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  letter-spacing: .02em;
  pointer-events: none;
}
.project-media .pm-wm b { color: var(--orange); }

/* انتقال نرم هنگام چرخش عکس کارت‌های پروژه */
.project-media.has-image {
  transition: background-image .6s ease-in-out;
}
