/* =========================================================================
   TechTik — "Azure Deep" design system
   A bespoke, modern UI built natively for Django. No theme/plugin CSS.
   Palette: Deep Navy, Professional Blue, Cyan, Off White, Slate, Emerald.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0F172A;          /* Deep Navy — dark sections, buttons, footer */
  --ink-2: #1e293b;        /* lighter navy */
  --paper: #F8FAFC;        /* Off White — page background */
  --surface: #ffffff;
  --text: #0F172A;         /* headings / strong text (deep navy) */
  --muted: #334155;        /* Slate Gray — body text */
  --muted-2: #64748b;      /* lighter slate — tertiary text */
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.16);

  --primary: #2563EB;      /* Professional Blue */
  --primary-600: #1d4ed8;
  --accent: #06B6D4;       /* Cyan */
  --cta: #10B981;          /* Emerald Green — CTA / highlight */
  --danger: #dc2626;       /* form errors / required */
  --accent-soft: #e8f1fe;  /* light blue tint for hovers/pills */

  --grad: linear-gradient(120deg, #2563EB 0%, #06B6D4 58%, #10B981 100%);
  --grad-soft: linear-gradient(120deg, rgba(37,99,235,.14), rgba(6,182,212,.12));

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(16, 12, 40, .06), 0 2px 8px rgba(16, 12, 40, .05);
  --shadow: 0 10px 30px -12px rgba(20, 14, 50, .22);
  --shadow-lg: 0 30px 60px -24px rgba(20, 14, 50, .35);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.2rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-fa: "Vazirmatn", "Inter", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }

/* Default inline-icon sizing (component rules below may override). */
.tt-ico { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.arrow-link svg, .card-cta svg { width: 16px; height: 16px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }

.skip-link {
  position: fixed; left: 1rem; top: -120px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Eyebrow + section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); padding: .42rem .85rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(6px);
}
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; }
.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: 1rem; color: var(--text);
}
.section-lead { color: var(--muted); font-size: 1.075rem; margin-top: 1rem; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-ico { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.btn:hover .btn-ico { transform: translateX(3px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 24px -10px rgba(16,185,129,.5); position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #0ea472, #0d9488);
  opacity: 0; transition: opacity .3s ease; z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: .62rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* on dark sections */
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.on-dark .btn-primary { background: #fff; color: var(--ink); }
.on-dark .btn-primary:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(246,244,239,.78); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; }
.brand-text b { color: var(--text); }
.brand-text { color: var(--primary); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.brand-spark { width: 20px; height: 20px; }

.nav-desktop { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .25rem;
  font-family: var(--font-display); font-weight: 500; font-size: .96rem;
  padding: .6rem .85rem; border-radius: 10px; color: var(--text);
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover { background: rgba(18,16,30,.05); color: var(--primary); }
.caret-ico { width: 14px; height: 14px; transform: rotate(90deg); opacity: .6; transition: transform .25s ease; }
.has-dropdown:hover .caret-ico { transform: rotate(-90deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 540px; max-width: min(560px, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .9rem;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease; z-index: 50;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown::before { content:""; position:absolute; top:-10px; left:0; right:0; height:10px; }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.dropdown-link { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 14px; transition: background .2s ease, transform .2s ease; }
.dropdown-link:hover { background: var(--accent-soft); }
.dropdown-ico { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad-soft); color: var(--primary); }
.dropdown-ico svg { width: 20px; height: 20px; }
.dropdown-text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.dropdown-title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.dropdown-sub { font-size: .8rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: .5rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(86vw, 380px);
  background: var(--surface); z-index: 130; padding: 5.5rem 1.5rem 2rem;
  transform: translateX(110%); transition: transform .35s cubic-bezier(.22,1,.36,.58);
  overflow-y: auto; box-shadow: var(--shadow-lg); visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu[hidden] { display: block; }
.mobile-list > li { border-bottom: 1px solid var(--line); padding-block: .35rem; }
.mobile-link { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; padding: .6rem 0; }
.mobile-sub { padding: 0 0 .6rem; }
.mobile-sub a { display: flex; align-items: center; gap: .6rem; padding: .45rem 0 .45rem 1rem; color: var(--muted); border-inline-start: 2px solid var(--line); margin-inline-start: .3rem; }
.mobile-sub a > span:last-child { display: flex; flex-direction: column; }
.mobile-sub-ico { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad-soft); color: var(--primary); }
.mobile-sub-ico svg { width: 17px; height: 17px; }
.mobile-sub a small { font-size: .76rem; color: var(--muted-2); }
.mobile-menu .btn { margin-top: 1.4rem; }
.menu-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 120; opacity: 0; transition: opacity .3s ease; }
.menu-backdrop.open { opacity: 1; }
.menu-backdrop[hidden] { display: block; pointer-events: none; opacity: 0; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.blob-1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(37,99,235,.55), transparent 70%); top: -140px; inset-inline-start: -100px; animation: blobDrift 16s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(6,182,212,.5), transparent 70%); top: -60px; inset-inline-end: -80px; animation: blobDrift 20s ease-in-out infinite reverse; }
.blob-3 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(16,185,129,.42), transparent 70%); bottom: -160px; inset-inline-start: 30%; animation: blobDrift 24s ease-in-out infinite; animation-delay: -6s; }
@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, 30px) scale(1.08); }
  66%  { transform: translate(-30px, 20px) scale(.95); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-narrow { max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-top: 1.3rem; overflow-wrap: break-word; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); margin-top: 1.4rem; max-width: 38ch; }
.hero-narrow .hero-text { max-width: 60ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-narrow .hero-actions { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; }
.hero-narrow .hero-points { justify-content: center; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--muted); font-weight: 500; }
.hero-points .ico-sm { color: var(--primary); }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); }
.tick svg { width: 12px; height: 12px; }

/* hero visual card */
.hero-visual { position: relative; }
.glass-card {
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 999px; padding: .55rem 1rem; font-size: .85rem; font-weight: 600;
  font-family: var(--font-display); display: inline-flex; align-items: center; gap: .4rem;
  animation: floaty 5s ease-in-out infinite;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.float-chip.c1 { top: -18px; inset-inline-start: -10px; }
.float-chip.c2 { bottom: 40px; inset-inline-end: -14px; animation-delay: 1.5s; }
.float-chip.c3 { bottom: -16px; inset-inline-start: 24px; animation-delay: 2.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stat ribbon ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: .35rem; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
/* Prevent grid/flex children from forcing overflow on narrow screens. */
.grid > *, .stats-row > *, .hero-grid > *, .contact-grid > *,
.footer-grid > *, .split > *, .steps-grid > *, .feature-list > li,
.module, .quote-card, .card { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--grad-soft); color: var(--primary); margin-bottom: 1.1rem;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card-num { position: absolute; top: 1rem; inset-inline-end: 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--line-strong); }

/* service detail rows */
.service-row {
  display: grid; grid-template-columns: 110px 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px; transition: box-shadow .3s ease, transform .3s ease;
}
.service-row:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-aside { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.service-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.service-badge svg { width: 30px; height: 30px; }
.service-num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--line-strong); }
.service-body h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.service-tagline { color: var(--primary); font-weight: 600; font-family: var(--font-display); margin-top: .2rem; }
.service-desc { color: var(--muted); margin-top: .8rem; max-width: 60ch; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem 1.4rem; margin: 1.3rem 0; }
.feature-list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .94rem; }
.feature-list .tick { flex: 0 0 auto; margin-top: 2px; }

/* compact service grid (home) */
.svc-card { display: block; }
.svc-card .card-tagline { color: var(--primary); font-weight: 600; font-size: .86rem; font-family: var(--font-display); margin-bottom: .5rem; }
.svc-card .arrow-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--text); }
.svc-card:hover .arrow-link { color: var(--primary); }
.svc-card .arrow-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.svc-card:hover .arrow-link svg { transform: translateX(4px); }

/* process steps */
.step { position: relative; padding-top: 2.6rem; }
.step-num { position: absolute; top: 0; inset-inline-start: 0; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }
.steps-grid { counter-reset: step; position: relative; }

/* ---------- Dark section ---------- */
.on-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.on-dark .section-title, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .section-lead, .on-dark p { color: rgba(255,255,255,.72); }
.on-dark .eyebrow { color: #7dd3fc; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.on-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); box-shadow: none; }
.on-dark .card:hover { background: rgba(255,255,255,.07); }
.on-dark .card p { color: rgba(255,255,255,.66); }
.dark-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.4), transparent 65%); top: -200px; inset-inline-end: -150px; filter: blur(40px); z-index: 0; }
.on-dark .container { position: relative; z-index: 1; }

/* ---------- Tech marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.tech-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; background: rgba(255,255,255,.04); white-space: nowrap; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: scroll-x-rtl; }
@keyframes scroll-x-rtl { to { transform: translateX(50%); } }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 1.2rem; height: 100%; }
.stars { color: var(--accent); font-size: 1.05rem; letter-spacing: .1em; }
.quote-text { font-size: 1.02rem; color: var(--text); }
.on-dark .quote-text { color: rgba(255,255,255,.9); }
.quote-author { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--grad); color: #fff; flex: 0 0 auto; }
.author-name { font-family: var(--font-display); font-weight: 600; }
.author-role { font-size: .85rem; color: var(--muted); }
.on-dark .author-role { color: rgba(255,255,255,.6); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 22px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; background: var(--grad-soft); color: var(--primary); border: 1px solid var(--line); }
.team-card h3 { font-size: 1.1rem; }
.team-meta { color: var(--primary); font-size: .82rem; font-weight: 600; font-family: var(--font-display); margin: .15rem 0 .6rem; }
.team-card p { font-size: .9rem; color: var(--muted); }

/* ---------- Modules / curriculum ---------- */
.module { display: flex; gap: 1.2rem; align-items: flex-start; }
.module-num { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--ink); color: #fff; }
.module h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.module p { color: var(--muted); font-size: .93rem; }

/* ---------- Terminal / code mock ---------- */
.terminal { background: #0d0b16; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font-mono); }
.terminal-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar .tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r, .tdot.y, .tdot.g { background: rgba(255,255,255,.3); }
.terminal-title { margin-inline-start: auto; font-size: .8rem; color: rgba(255,255,255,.5); }
.terminal-body { padding: 1.2rem 1.3rem; font-size: .9rem; line-height: 1.9; color: #e6e3f5; }
.terminal-body .ln { white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: #34d399; }
.t-cmd { color: #fff; }
.t-out { color: #9b96c0; }
.code-block { background: #0d0b16; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.code-body { padding: 1.2rem 1.3rem; font-family: var(--font-mono); font-size: .9rem; line-height: 1.85; color: #d7d3f0; white-space: pre; overflow-x: auto; }

/* ---------- Discover cards ---------- */
.discover-card { display: flex; flex-direction: column; height: 100%; }
.discover-card .card-cta { margin-top: auto; padding-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--primary); }
.discover-card .card-cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.discover-card:hover .card-cta svg { transform: translateX(4px); }
.discover-card.soon { opacity: .92; }
.discover-card.soon .card-cta { color: var(--muted-2); }
.badge-soon { position: absolute; top: 1rem; inset-inline-end: 1rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--primary); font-family: var(--font-display); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-detail { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail .ci { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--primary); }
.contact-detail .ci svg { width: 22px; height: 22px; }
.contact-detail h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-display); }
.contact-detail .cd-val { font-weight: 500; margin-top: .15rem; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; font-family: var(--font-display); }
.field label .req { color: var(--danger); }
.tt-input {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 12px;
  font: inherit; background: #fbfafe; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease;
}
.tt-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
textarea.tt-input { resize: vertical; min-height: 130px; }
select.tt-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.4rem; }
[dir="rtl"] select.tt-input { background-position: left 1rem center; }
.tt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--danger); font-size: .82rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

.alert { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.4rem; font-weight: 500; display: flex; gap: .6rem; align-items: center; }
.alert-success { background: #e7f9ef; color: #11704a; border: 1px solid #b8ecce; }

/* ---------- FAQ (contact page) ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-mark { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); transition: transform .28s ease; }
.faq-mark svg { width: 16px; height: 16px; transform: rotate(90deg); }
.faq-item[open] .faq-mark { transform: rotate(180deg); }
.faq-a { padding: 0 1.4rem 1.25rem; color: var(--muted); }
.faq-a p { margin-bottom: .6rem; }
.faq-a p:last-child { margin-bottom: 0; }
[dir="rtl"] .faq-mark svg { transform: rotate(90deg); }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; }
.legal-section { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.legal-section p { color: var(--muted); }

/* ---------- Mission card ---------- */
.mission-card { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.mission-card .dark-glow { top: auto; bottom: -250px; }
.mission-label { color: #7dd3fc; font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.mission-quote { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; margin: 1rem 0 1.4rem; }
.mission-points li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; color: rgba(255,255,255,.85); }
.mission-points .tick { background: rgba(255,255,255,.12); color: #fff; }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--section-y); }
.cta-card { position: relative; background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at 30% 0%, rgba(37,99,235,.5), transparent 55%), radial-gradient(circle at 80% 100%, rgba(6,182,212,.38), transparent 50%); }
.cta-title { position: relative; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-text { position: relative; color: rgba(255,255,255,.78); max-width: 56ch; margin: 1.1rem auto 0; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2rem; }
.cta-card .btn-primary { background: #fff; color: var(--ink); }
.cta-card .btn-primary:hover { color: #fff; }
.cta-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; inset-block-end: 1.4rem; inset-inline-end: 1.4rem; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px) rotate(-90deg); transition: opacity .3s ease, transform .3s ease, visibility .3s; z-index: 90; }
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) rotate(-90deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand-text b { color: #fff; }
.footer-blurb { margin-top: 1rem; font-size: .94rem; max-width: 38ch; }
.footer-head { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-col li { line-height: 1.5; }
.ico-sm { width: 17px; height: 17px; flex: 0 0 auto; }
.footer-contact .btn { margin-top: 1rem; }
.on-dark .btn-ghost, .site-footer .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.site-footer .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .86rem; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- RTL ---------- */
[dir="rtl"] body, .fa { font-family: var(--font-fa); }
[dir="rtl"] .hero-text, [dir="rtl"] .section-lead { max-width: 60ch; }
[dir="rtl"] .feature-list { direction: rtl; }
/* Persian script needs more leading and breaks words less readily. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.4; letter-spacing: 0; }
[dir="rtl"] .hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
[dir="rtl"] .section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dropdown { min-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav-desktop, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-aside { flex-direction: row; align-items: center; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 64px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .float-chip { display: none; }
  .glass-card { padding: 1rem; }
  .stat { padding: 1.1rem .6rem; }
  .stat-value { font-size: 1.7rem; }
}