/* ==========================================================================
   فن پژوهان پیشتاز جنوب — «شب، دریا، فانوس»
   ========================================================================== */

/* ---------- Fonts (Vazirmatn, OFL — داخل پروژه) ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic-wght-normal.05d9ce2a23d3.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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-1EEFF;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin-wght-normal.e7eada615dc3.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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;
}

/* ---------- Tokens ---------- */
:root {
  --night-deep: #071B33;
  --night: #0B2644;
  --blue: #12407B;
  --teal: #1FB6C1;
  --teal-ink: #0E7C86;      /* فیروزه‌ای تیره برای متن روی زمینهٔ روشن (کنتراست AA) */
  --aqua: #3FD8D5;
  --light: #E9FFFD;
  --paper: #FFFFFF;
  --mist: #F2F8FB;
  --ink: #0B2644;
  --ink-soft: #3E5672;
  --on-night: #E9FFFD;
  --on-night-soft: #B5CCDD;
  --line-day: #DCE8EF;
  --line-night: rgba(63, 216, 213, .18);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -24px rgba(11, 38, 68, .35);
  --shadow-night: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --header-h: 76px;

  --fs-body: 1.0625rem;
  --fs-h1: clamp(2.2rem, 1.2rem + 3.6vw, 4.1rem);
  --fs-h2: clamp(1.7rem, 1.1rem + 2vw, 2.7rem);
  --fs-h3: 1.2rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 850; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 2.5rem, 900px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; background: var(--aqua); color: var(--night); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.icon-sm { width: 1.1rem; height: 1.1rem; }

/* ---------- Surfaces: night & day ---------- */
.night {
  position: relative;
  color: var(--on-night);
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(18, 64, 123, .9), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(31, 182, 193, .12), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  isolation: isolate;
}
.day { position: relative; background: var(--paper); color: var(--ink); }
.day.tint { background: linear-gradient(180deg, var(--mist), #fff); }
section { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }

.stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 28%, var(--aqua) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 72% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 22%, var(--aqua) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 93% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 85%, #fff 50%, transparent 51%);
  background-size: 640px 420px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }

/* ---------- Waves (از سربرگ) ---------- */
.waves { position: absolute; inset-inline: 0; height: clamp(60px, 8vw, 110px); pointer-events: none; overflow: hidden; z-index: 1; }
.waves .wave { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.wave-1 { animation: drift 26s linear infinite; }
.wave-2 { animation: drift 18s linear infinite reverse; height: 85% !important; }
.wave-3 { animation: drift 32s linear infinite; height: 65% !important; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* موج از شب به روز (پایین بخش‌های شب) */
.waves-to-day { bottom: -1px; }
.waves-to-day .wave-1 path { fill: var(--teal); opacity: .35; }
.waves-to-day .wave-2 path { fill: var(--aqua); opacity: .35; }
.waves-to-day .wave-3 path { fill: var(--paper); }
/* موج از روز به شب (بالای بخش‌های شب) */
.waves-from-day { top: -1px; transform: scaleY(-1); }
.waves-from-day .wave-1 path { fill: var(--teal); opacity: .25; }
.waves-from-day .wave-2 path { fill: var(--aqua); opacity: .25; }
.waves-from-day .wave-3 path { fill: var(--paper); }
.waves-to-night { bottom: -1px; }
.waves-to-night .wave-1 path { fill: var(--teal); opacity: .5; }
.waves-to-night .wave-2 path { fill: var(--aqua); opacity: .5; }
.waves-to-night .wave-3 path { fill: var(--night-deep); }
.night:has(.waves-from-day) { padding-top: calc(clamp(4.5rem, 3rem + 5vw, 7.5rem) + 50px); }
.night:has(.waves-to-day) { padding-bottom: calc(clamp(4.5rem, 3rem + 5vw, 7.5rem) + 60px); }
/* بخش روزِ پیش از بخش شبِ رنگی‌شده: آخرین لایهٔ موج باید هم‌رنگ آن باشد */
.tint + .night .waves-from-day .wave-3 path { fill: #fff; }

/* ---------- Divider (سه لوزی سربرگ) ---------- */
.divider { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.divider::after { content: ""; width: 72px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--teal)); }
.divider i { width: 6px; height: 6px; background: var(--teal); transform: rotate(45deg); display: block; }
.divider i.big { width: 11px; height: 11px; background: var(--night); }
.night .divider i.big { background: var(--light); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.eyebrow { margin: 0 0 .5rem; font-size: .95rem; font-weight: 700; color: var(--teal-ink); letter-spacing: .02em; }
.night .eyebrow { color: var(--aqua); }
.section-sub { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }
.night .section-sub { color: var(--on-night-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .7rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.4;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: linear-gradient(135deg, var(--light), var(--aqua)); color: var(--night); box-shadow: 0 10px 30px -10px rgba(63, 216, 213, .7); }
.btn-light:hover { box-shadow: 0 16px 40px -10px rgba(63, 216, 213, .9); }
.btn-ghost { border-color: rgba(233, 255, 253, .35); color: var(--on-night); background: rgba(233, 255, 253, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--aqua); background: rgba(63, 216, 213, .1); }
.btn-dark { background: var(--night); color: var(--light); }
.btn-dark:hover { background: var(--blue); }
.btn-sm { min-height: 42px; padding: .45rem 1.1rem; font-size: .92rem; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  color: var(--on-night);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 27, 51, .82); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-night), 0 10px 30px -18px rgba(0, 0, 0, .6);
  --header-h: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(63, 216, 213, .5), 0 0 24px rgba(63, 216, 213, .35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.1rem; font-weight: 850; }
.brand-text span { font-size: .82rem; color: var(--aqua); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a { padding: .45rem .85rem; border-radius: 999px; font-weight: 600; font-size: .97rem; color: var(--on-night-soft); transition: color .25s, background .25s; }
.main-nav a:hover { color: var(--light); background: rgba(233, 255, 253, .07); }
.main-nav .nav-cta { margin-inline-start: .5rem; color: var(--night); background: var(--aqua); }
.main-nav .nav-cta:hover { background: var(--light); color: var(--night); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-night); background: rgba(233, 255, 253, .06); color: var(--light); align-items: center; justify-content: center; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem); overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .9rem; border: 1px solid var(--line-night); border-radius: 999px; background: rgba(63, 216, 213, .06); font-size: .9rem; }
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 {
  margin-top: 1.1rem;
  background: linear-gradient(100deg, var(--light) 30%, var(--aqua) 60%, var(--light) 90%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-sub { margin-top: 1.25rem; max-width: 34em; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--on-night-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero-tags a { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .85rem; color: var(--on-night-soft); border: 1px dashed rgba(63, 216, 213, .3); transition: .25s; }
.hero-tags a:hover { color: var(--light); border-style: solid; border-color: var(--aqua); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-lighthouse { width: min(100%, 420px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); overflow: visible; }
.hero-lighthouse .beams { transform-origin: 200px 127px; animation: beam-sweep 8s ease-in-out infinite; }
.hero-lighthouse .beam-r { transform-origin: 222px 127px; }
.hero-lighthouse .beam-l { transform-origin: 178px 127px; }
@keyframes beam-sweep {
  0%   { transform: scaleX(1);   opacity: 1; }
  25%  { transform: scaleX(.15); opacity: .4; }
  50%  { transform: scaleX(-1);  opacity: 1; }
  75%  { transform: scaleX(-.15); opacity: .4; }
  100% { transform: scaleX(1);   opacity: 1; }
}
.hero-lighthouse .lantern-glow { transform-origin: 200px 127px; animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.18); opacity: .75; } }

/* پرتو بزرگ نور که روی صفحه می‌چرخد */
.hero-sweep {
  position: absolute; z-index: 0; pointer-events: none;
  width: 2400px; height: 2400px; left: calc(22% - 1200px); top: calc(38% - 1200px);
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(233, 255, 253, .0) 70deg, rgba(233, 255, 253, .085) 84deg,
    rgba(63, 216, 213, .05) 92deg, transparent 104deg, transparent 250deg,
    rgba(233, 255, 253, .06) 266deg, transparent 282deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 22%, transparent 60%);
  mask: radial-gradient(circle, #000 0 22%, transparent 60%);
  animation: sweep 22s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats { padding-block: 0; margin-top: -1px; }
.stats + .about { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-day);
  position: relative; z-index: 3; margin-top: -40px;
}
.stat { padding: 1.75rem 1.25rem; text-align: center; display: flex; flex-direction: column; gap: .25rem; }
.stat + .stat { border-inline-start: 1px solid var(--line-day); }
.stat-num { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 900; line-height: 1.2; color: var(--night); display: inline-flex; justify-content: center; }
.stat-prefix { color: var(--teal); }
.stat-label { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about-watermark { position: absolute; inset-inline-end: -60px; top: 50%; transform: translateY(-50%); width: 380px; opacity: .045; filter: grayscale(1); pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; position: relative; }
.about-body p { color: var(--ink-soft); font-size: 1.08rem; }
.about-body p:first-child { color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.founders {
  background: var(--night); color: var(--on-night); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-night); position: relative; overflow: hidden;
}
.founders::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0, rgba(63, 216, 213, .25), transparent 70%); }
.founders h3 { position: relative; margin-bottom: 1.25rem; color: var(--aqua); font-size: 1rem; }
.founders ul { position: relative; display: grid; gap: 1rem; }
.founder { display: flex; align-items: center; gap: 1rem; padding: .9rem; border-radius: var(--radius-sm); background: rgba(233, 255, 253, .05); border: 1px solid var(--line-night); }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none; object-fit: cover;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 850; color: var(--night);
  background: conic-gradient(from 210deg, var(--aqua), var(--light), var(--teal), var(--aqua));
  box-shadow: 0 0 0 4px rgba(63, 216, 213, .15);
}
.founder-name { font-size: 1.15rem; font-weight: 750; }

/* ---------- Glow cards (نور تعقیب‌کنندهٔ نشانگر) ---------- */
.glow-card { position: relative; --mx: 50%; --my: 0%; }
.glow-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(63, 216, 213, .16), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.glow-card:hover::after { opacity: 1; }

/* ---------- Areas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.area-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 64, 123, .45), rgba(7, 27, 51, .6));
  border: 1px solid var(--line-night); box-shadow: var(--shadow-night);
  transition: transform .5s var(--ease), border-color .4s;
}
.area-card:hover { transform: translateY(-6px); border-color: rgba(63, 216, 213, .5); }
.area-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.area-media svg, .area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.area-card:hover .area-media svg, .area-card:hover .area-media img { transform: scale(1.05); }
.area-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; position: relative; }
.area-index { position: absolute; inset-inline-end: 1.4rem; top: 1.2rem; font-weight: 900; font-size: 1.6rem; color: rgba(63, 216, 213, .25); }
.area-body h3 { font-size: 1.25rem; padding-inline-end: 3rem; }
.area-body h3 a:hover { color: var(--aqua); }
.area-summary { margin-top: .6rem; color: var(--on-night-soft); font-size: .98rem; line-height: 1.9; }
.ps { margin: .5rem 0 1.25rem; display: grid; gap: .6rem; }
.ps-row { padding: .75rem .9rem; border-radius: 12px; background: rgba(233, 255, 253, .04); border-inline-start: 3px solid; }
.ps-problem { border-color: rgba(233, 255, 253, .3); }
.ps-solution { border-color: var(--aqua); background: rgba(63, 216, 213, .07); }
.ps dt { display: flex; align-items: center; gap: .4rem; font-weight: 750; font-size: .88rem; color: var(--aqua); }
.ps-problem dt { color: var(--light); }
.ps dd { margin: .2rem 0 0; font-size: .92rem; line-height: 1.85; color: var(--on-night-soft); }
.link-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--aqua); align-self: flex-start; }
.link-more .icon { transition: transform .3s var(--ease); }
.link-more:hover .icon { transform: translateX(-5px); }

/* انیمیشن‌های داخل تصاویر SVG */
.illus-draw { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-visible .illus-draw, .page-hero .illus-draw { animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.illus-dash { animation: dash 2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.illus-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.45); opacity: .6; } }
.illus-scanline { animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(110px); } }
.illus-wave { animation: wavefade 2.4s ease-in-out infinite; }
.illus-wave.w2 { animation-delay: .3s; } .illus-wave.w3 { animation-delay: .6s; }
@keyframes wavefade { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.illus-pin { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.illus-bars rect { transform-box: fill-box; transform-origin: bottom; animation: grow 3s ease-in-out infinite; }
.illus-bars rect:nth-child(2) { animation-delay: .2s; } .illus-bars rect:nth-child(3) { animation-delay: .4s; } .illus-bars rect:nth-child(4) { animation-delay: .6s; }
@keyframes grow { 50% { transform: scaleY(.75); } }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.industry {
  padding: 1.6rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-day);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  overflow: hidden;
}
.industry:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.industry-icon, .service-icon, .contact-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none;
  color: var(--night); background: linear-gradient(135deg, var(--light), rgba(63, 216, 213, .55));
  box-shadow: inset 0 0 0 1px rgba(31, 182, 193, .35);
}
.industry-icon .icon, .service-icon .icon, .contact-icon .icon { width: 28px; height: 28px; }
.industry h3 { margin-top: 1.1rem; font-size: 1.08rem; }
.industry p { margin: .5rem 0 0; font-size: .93rem; color: var(--ink-soft); line-height: 1.85; }
.industry .glow-card::after, .day .glow-card::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(31, 182, 193, .12), transparent 45%); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.6rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-day); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service h3 { font-size: 1.08rem; }
.service p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.85; }

/* ---------- Process (مسیر فانوس تا کشتی) ---------- */
.voyage { position: relative; padding-block: 2rem 1rem; }
.voyage-path { position: absolute; inset-inline: 40px; top: 3.4rem; width: calc(100% - 80px); height: 90px; overflow: visible; }
.voyage-path path { fill: none; stroke: var(--aqua); stroke-width: 2.5; stroke-dasharray: .012 .012; vector-effect: non-scaling-stroke; opacity: .7;
  animation: sail 8s linear infinite; }
@keyframes sail { to { stroke-dashoffset: -.24; } }
.voyage-start, .voyage-end { position: absolute; top: 2.6rem; z-index: 2; }
.voyage-start { inset-inline-start: -8px; }
.voyage-start img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(63, 216, 213, .4), 0 0 40px rgba(63, 216, 213, .6); }
.voyage-end { inset-inline-end: -8px; width: 64px; }
[dir="rtl"] .voyage-end svg { transform: scaleX(-1); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; z-index: 1; padding-top: 6.5rem; counter-reset: s; }
.step { text-align: center; padding: 1.4rem 1.2rem; border-radius: var(--radius); background: rgba(233, 255, 253, .04); border: 1px solid var(--line-night); backdrop-filter: blur(4px); }
.step-num {
  width: 54px; height: 54px; margin: -3.1rem auto 1rem; display: grid; place-items: center; border-radius: 50%;
  font-weight: 900; font-size: 1.35rem; color: var(--night); background: var(--aqua);
  box-shadow: 0 0 0 6px rgba(63, 216, 213, .18), 0 0 30px rgba(63, 216, 213, .55);
}
.step h3 { font-size: 1.1rem; }
.step p { margin: .5rem 0 0; color: var(--on-night-soft); font-size: .94rem; line-height: 1.85; }

/* ---------- Publications marquee ---------- */
.pubs .section-head { margin-bottom: 2.5rem; }
.marquee { display: flex; overflow: hidden; gap: 1rem; direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; flex: none; min-width: 100%; justify-content: space-around; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li span {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; padding: .85rem 1.4rem; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line-day); font-weight: 700; color: var(--night); font-size: 1rem;
}
.marquee li span::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--teal); }
@keyframes marquee { to { transform: translateX(calc(-100% - 1rem)); } }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(4rem, 3rem + 4vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .4rem; padding: 1.8rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(18, 64, 123, .55), rgba(7, 27, 51, .4));
  border: 1px solid var(--line-night); transition: transform .45s var(--ease), border-color .3s;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--aqua); }
.contact-card .contact-icon { margin-bottom: .8rem; }
.contact-label { color: var(--on-night-soft); font-size: .95rem; }
.contact-value { font-size: 1.3rem; font-weight: 800; color: var(--light); text-align: start; overflow-wrap: anywhere; }
[dir="rtl"] .contact-value[dir="ltr"] { text-align: right; }
.address-card {
  margin-top: 1.25rem; display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 1.8rem; border-radius: var(--radius);
  background: rgba(233, 255, 253, .05); border: 1px dashed rgba(63, 216, 213, .35);
}
.address-text { flex: 1; }
.address-text strong { color: var(--aqua); font-size: .95rem; }
.address-text p { margin: .2rem 0 0; color: var(--on-night); line-height: 2; }
.copy-idle, .copy-done { display: inline-flex; align-items: center; gap: .4rem; }
.copy-done, [data-copied] .copy-idle { display: none; }
[data-copied] .copy-done { display: inline-flex; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: var(--on-night-soft); padding-top: 3.5rem; border-top: 1px solid var(--line-night); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand strong { color: var(--light); font-size: 1.05rem; }
.footer-legal { margin: .4rem 0 0; font-size: .9rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a, .footer-contact a { width: fit-content; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--aqua); }
.footer-bottom { border-top: 1px solid var(--line-night); padding-block: 1.2rem 1.6rem; font-size: .88rem; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 40; display: flex; flex-direction: column; gap: .6rem; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--night);
  background: var(--aqua); box-shadow: 0 12px 30px -8px rgba(7, 27, 51, .6); transition: transform .3s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn .icon { width: 26px; height: 26px; }
.float-wa { background: linear-gradient(135deg, var(--light), var(--aqua)); animation: ring 4s ease-in-out infinite; }
@keyframes ring { 0%, 80%, 100% { box-shadow: 0 12px 30px -8px rgba(7, 27, 51, .6), 0 0 0 0 rgba(63, 216, 213, .6); } 90% { box-shadow: 0 12px 30px -8px rgba(7, 27, 51, .6), 0 0 0 14px rgba(63, 216, 213, 0); } }
.float-call { display: none; }

/* ---------- Area detail page ---------- */
.page-hero { padding-top: calc(var(--header-h) + 3.5rem); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.page-hero h1 { margin-top: .6rem; }
.page-hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-night); box-shadow: var(--shadow-night); }
.page-hero-art svg, .page-hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.breadcrumb { display: flex; gap: .5rem; font-size: .9rem; color: var(--on-night-soft); }
.breadcrumb a:hover { color: var(--aqua); }
.area-detail { padding-top: 3rem; }
.ps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ps-card { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line-day); background: #fff; }
.ps-card.ps-solution { background: linear-gradient(160deg, var(--night), var(--blue)); color: var(--on-night); border: 0; box-shadow: var(--shadow); }
.ps-card h2 { font-size: 1.25rem; margin: .9rem 0 .5rem; }
.ps-card p { margin: 0; color: var(--ink-soft); }
.ps-card.ps-solution p { color: var(--on-night-soft); }
.ps-card-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--mist); color: var(--night); }
.ps-solution .ps-card-icon { background: rgba(63, 216, 213, .18); color: var(--aqua); }
.prose { margin-top: 3.5rem; }
.prose p { font-size: 1.1rem; color: var(--ink-soft); }
.applications { margin-top: 2.5rem; }
.applications h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.applications ul { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.applications li { display: flex; gap: .7rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--mist); font-weight: 600; line-height: 1.8; }
.check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--aqua); color: var(--night); }
.cta-band { margin-top: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.8rem 2rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--light), #fff 60%); border: 1px solid var(--line-day); }
.cta-band strong { font-size: 1.2rem; }
.cta-band p { margin: .3rem 0 0; color: var(--ink-soft); }
.others-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.other-card { display: block; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line-day); transition: transform .4s var(--ease), box-shadow .4s; height: 100%; }
.other-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.other-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.other-media svg, .other-media img { width: 100%; height: 100%; object-fit: cover; }
.other-title { display: block; padding: .8rem 1rem 1rem; font-weight: 700; font-size: .95rem; line-height: 1.7; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 2rem); overflow: hidden; }
.lost-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.lost-art .hero-lighthouse { max-width: 300px; margin-inline: auto; }
.lost-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 900; line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--aqua); }
.lost h1 { margin: 1rem 0 .5rem; }
.lost .btn { margin-top: 1.5rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .others-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: .6rem;
    background: radial-gradient(600px 400px at 50% 20%, rgba(18, 64, 123, .9), transparent), var(--night-deep);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .main-nav a { font-size: 1.35rem; padding: .6rem 1.4rem; color: var(--light); }
  .main-nav .nav-cta { margin: 1rem 0 0; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .hero-grid, .page-hero-grid, .about-grid, .lost-inner { grid-template-columns: 1fr; }
  .hero { text-align: start; }
  .hero-art { order: -1; }
  .hero-lighthouse { width: min(62vw, 260px); }
  .hero-sweep { left: calc(50% - 1200px); top: calc(22% - 1200px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-day); }
  .steps { grid-template-columns: 1fr 1fr; padding-top: 2rem; row-gap: 3rem; }
  .voyage-path, .voyage-start, .voyage-end { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .float-call { display: grid; }
  .lost-art { order: -1; }
}
@media (max-width: 640px) {
  .area-grid, .service-grid, .industry-grid, .ps-cards, .applications ul { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .others-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .address-card { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .brand-text strong { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.3rem .8rem; }
}
@media (max-width: 420px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-sweep { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .illus-draw { stroke-dashoffset: 0; }
}
