/* ================================================================
   LANDIMA · styles.css
   Minimalist monochrome design — unified shadow & motion system
   ================================================================ */

@font-face { font-family:'Ravi FaNum'; font-weight:100; src:url('fonts/woff2/RaviFaNum-thin.woff2') format('woff2'), url('fonts/woff/RaviFaNum-thin.woff') format('woff'); font-display:swap; }
@font-face { font-family:'Ravi FaNum'; font-weight:300; src:url('fonts/woff2/RaviFaNum-Light.woff2') format('woff2'), url('fonts/woff/RaviFaNum-Light.woff') format('woff'); font-display:swap; }
@font-face { font-family:'Ravi FaNum'; font-weight:400; src:url('fonts/woff2/RaviFaNum-Regular.woff2') format('woff2'), url('fonts/woff/RaviFaNum-Regular.woff') format('woff'); font-display:swap; }
@font-face { font-family:'Ravi FaNum'; font-weight:500; src:url('fonts/woff2/RaviFaNum-Medium.woff2') format('woff2'), url('fonts/woff/RaviFaNum-Medium.woff') format('woff'); font-display:swap; }
@font-face { font-family:'Ravi FaNum'; font-weight:600; src:url('fonts/woff2/RaviFaNum-SemiBold.woff2') format('woff2'), url('fonts/woff/RaviFaNum-SemiBold.woff') format('woff'); font-display:swap; }
@font-face { font-family:'Ravi FaNum'; font-weight:700; src:url('fonts/woff2/RaviFaNum-Bold.woff2') format('woff2'), url('fonts/woff/RaviFaNum-Bold.woff') format('woff'); font-display:swap; }
@font-face { font-family:'Ravi FaNum'; font-weight:900; src:url('fonts/woff2/RaviFaNum-Black.woff2') format('woff2'), url('fonts/woff/RaviFaNum-Black.woff') format('woff'); font-display:swap; }

/* ===== Design Tokens ===== */
:root {
  /* Colors */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-muted: #f4f4f4;
  --ink: #0a0a0a;
  --ink-soft: #3a3a3a;
  --muted: #8a8a8a;
  --line: #ececec;
  --line-strong: #d4d4d4;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* UNIFIED SHADOW SYSTEM */
  --shadow-xs:  0 1px 2px rgba(10,10,10,0.04), 0 1px 3px rgba(10,10,10,0.05);
  --shadow-sm:  0 2px 4px rgba(10,10,10,0.04), 0 6px 14px -4px rgba(10,10,10,0.06);
  --shadow-md:  0 4px 10px -2px rgba(10,10,10,0.05), 0 12px 28px -8px rgba(10,10,10,0.08);
  --shadow-lg:  0 8px 20px -6px rgba(10,10,10,0.08), 0 24px 48px -12px rgba(10,10,10,0.1);
  --shadow-xl:  0 16px 36px -10px rgba(10,10,10,0.12), 0 32px 64px -16px rgba(10,10,10,0.14);

  /* Button-specific shadows */
  --shadow-btn:         0 4px 14px -2px rgba(10,10,10,0.22), 0 2px 5px rgba(10,10,10,0.1);
  --shadow-btn-hover:   0 10px 24px -4px rgba(10,10,10,0.3),  0 4px 8px rgba(10,10,10,0.12);
  --shadow-btn-soft:    0 2px 6px rgba(10,10,10,0.04), 0 4px 10px -2px rgba(10,10,10,0.06);
  --shadow-btn-soft-h:  0 6px 16px -4px rgba(10,10,10,0.1), 0 3px 6px rgba(10,10,10,0.06);

  /* Menu & overlays */
  --shadow-menu:  -24px 0 60px -8px rgba(10,10,10,0.18);
  --shadow-chip:  0 6px 18px -4px rgba(10,10,10,0.12), 0 2px 6px rgba(10,10,10,0.06);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Ravi FaNum', 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.018) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ===== Layout helpers ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* ===============================================
   NAV
   =============================================== */
.nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  box-shadow: var(--shadow-xs);
}
.brand-mark::after {
  content: "";
  position: absolute; inset: -6px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none;
}
.nav-links li { display: flex; align-items: center; }
.nav-links li + li::before {
  content: ""; width: 1px; height: 14px;
  background: var(--line-strong);
  margin: 0 22px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; bottom: -6px; right: 0;
  height: 1px; width: 0;
  background: var(--ink);
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; gap: 12px; align-items: center; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 12px;
  position: relative;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.menu-toggle:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-btn-soft);
}
.menu-toggle span {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 20px; height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; width: 14px; }
.menu-toggle span:nth-child(3) { top: 27px; }

/* ===============================================
   BUTTONS (unified shadow system)
   =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease),
              box-shadow .3s var(--ease),
              background-color .3s var(--ease),
              color .3s var(--ease),
              border-color .3s var(--ease);
  position: relative;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

/* Dark (primary) */
.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-btn);
}
.btn-dark:hover {
  background: #1f1f1f;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}
.btn-dark:active { background: var(--ink); }

/* Light / outline */
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-btn-soft);
}
.btn-light:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-btn-soft-h);
  transform: translateY(-1px);
}

/* White on dark CTA */
.btn-white {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-white:hover {
  background: #f0f0f0;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

/* Ghost on dark */
.btn-ghost-w {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-w:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  transform: translateY(-1px);
}

.btn-block { width: 100%; }

.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }

/* ===============================================
   HERO — Centered with Orbital System
   =============================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero-top {
  max-width: 860px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 3;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-weight: 500;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-xs);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  position: relative;
}
.hero-badge .dot::after {
  content: "";
  position: absolute; inset: -4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.8vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero h1 .light { font-weight: 300;  color: var(--ink-soft); }
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute; right: 0; bottom: 6px;
  width: 100%; height: 8px;
  background: var(--ink);
  transform-origin: right;
  animation: drawLine 1.2s var(--ease-out) 0.6s both;
  z-index: -1; opacity: 0.15;
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex; gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   Orbital System — "بر مدار توسعه"
   ============================ */
.cosmos {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 40px auto 30px;
}
.cosmos-glow,
.cosmos-glow-2 {
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: 50%;
}
.cosmos-glow {
  background: radial-gradient(circle at center,
    rgba(10,10,10,0.08) 0%,
    rgba(10,10,10,0.04) 30%,
    transparent 65%);
  animation: glowPulse 5s ease-in-out infinite;
}
.cosmos-glow-2 {
  inset: 22%;
  background: radial-gradient(circle at center,
    rgba(10,10,10,0.12) 0%,
    transparent 60%);
  filter: blur(10px);
  animation: glowPulse 4s ease-in-out infinite reverse;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* Core (cosmos center — scoped to prevent class-name collision with .stat .ring .core) */
.cosmos .core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 20;
  box-shadow: var(--shadow-xl);
}
.cosmos .core-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cosmos .core-spark { width: 16px; height: 16px; opacity: 0.85; }
.cosmos .core-spark svg { width: 100%; height: 100%; }
.cosmos .core-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.cosmos .core-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0.5;
  animation: corePulse 2.4s ease-out infinite;
}
.cosmos .core-ring:nth-child(2) { animation-delay: 1.2s; }
@keyframes corePulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Orbits - sizes defined here so they can be responsive */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-1 { --size: 240px; --dur: 22s; }
.orbit-2 { --size: 390px; --dur: 32s; }
.orbit-3 { --size: 540px; --dur: 42s; }

.orbit-ring {
  position: absolute; inset: 0;
  border: 1px dashed rgba(10,10,10,0.18);
  border-radius: 50%;
}
.orbit-spin {
  position: absolute; inset: 0;
  border-radius: 50%;
}
.orbit.cw  .orbit-spin { animation: spinCW  var(--dur) linear infinite; }
.orbit.ccw .orbit-spin { animation: spinCCW var(--dur) linear infinite; }
@keyframes spinCW  { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

.sat {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: rotate(var(--angle));
}
.sat-inner {
  position: absolute;
  width: 54px; height: 54px;
  top: calc(var(--size) / -2 - 27px);
  left: -27px;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-chip);
  pointer-events: auto;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.sat-inner:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.sat-inner svg {
  width: 24px; height: 24px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sat-inner .sat-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.sat-inner.dark {
  background: var(--ink);
  border-color: var(--ink);
}
.sat-inner.dark svg { stroke: #fff; }
.sat-inner.dark .sat-text { color: #fff; }

/* Counter-rotation keeps icons upright */
.orbit.cw  .sat-inner { animation: counterCW  var(--dur) linear infinite; }
.orbit.ccw .sat-inner { animation: counterCCW var(--dur) linear infinite; }
@keyframes counterCW {
  from { transform: rotate(calc(var(--angle) * -1)); }
  to   { transform: rotate(calc(var(--angle) * -1 - 360deg)); }
}
@keyframes counterCCW {
  from { transform: rotate(calc(var(--angle) * -1)); }
  to   { transform: rotate(calc(var(--angle) * -1 + 360deg)); }
}

/* Hero Stats Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  position: relative;
  z-index: 3;
}
.hero-stat {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 6px 10px;
}
.hero-stat:first-child { border-right: none; }
.hero-stat .n {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat .l {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ===============================================
   MARQUEE
   =============================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0 26px;
  margin-top: 60px;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}
.marquee::before { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee::after  { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }

.marquee-head {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 20px;
}
.marquee-track {
  display: flex; gap: 72px;
  animation: scroll 28s linear infinite;
  width: max-content;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee-item:hover { color: var(--ink); }
.marquee-item .sym {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
}

/* ===============================================
   SECTIONS BASE
   =============================================== */
section { padding: 110px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--ink);
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.section-title .thin { font-weight: 200; color: var(--ink-soft); }
.section-lead {
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 580px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* ===============================================
   SERVICES
   =============================================== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.service {
  padding: 36px 28px 44px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: background .4s var(--ease);
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform .55s var(--ease-out);
  z-index: 0;
}
.service:hover::before { transform: translateY(0); }
.service > * { position: relative; z-index: 1; transition: color .45s var(--ease); }
.service:hover > * { color: #fff; }
.service:hover .service-num { color: rgba(255,255,255,0.45); }
.service:hover .service-arrow { transform: translate(-6px, -6px); color: #fff; }

.service-num {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.service-visual {
  margin: 48px 0 28px;
  height: 90px;
  display: grid;
  place-items: center;
}
.service-visual svg {
  max-width: 100%;
  height: 100%;
  stroke: currentColor;
}
.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.service-arrow {
  position: absolute;
  top: 36px; left: 28px;
  z-index: 2;
  transition: transform .4s var(--ease), color .4s var(--ease);
  color: var(--muted);
}

/* ===============================================
   PROCESS
   =============================================== */
.process {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  top: 15%; right: -120px;
  width: 400px; height: 400px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  opacity: 0.6;
}
.process::after {
  content: "";
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  opacity: 0.4;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}
.steps-connector {
  position: absolute;
  top: 94px;
  right: 16.5%;
  left: 16.5%;
  height: 1px;
  border-top: 1px dashed var(--line-strong);
  z-index: 0;
  pointer-events: none;
}
.steps-connector::before,
.steps-connector::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: var(--shadow-xs);
}
.steps-connector::before { right: 0; }
.steps-connector::after  { left: 0; }

.step {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 32px;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease),
              border-color .5s var(--ease),
              box-shadow .5s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.step-ring {
  width: 72px; height: 72px;
  position: relative;
  margin-bottom: 28px;
}
.step-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.step-ring .track { stroke: var(--line); fill: none; stroke-width: 3; }
.step-ring .bar {
  stroke: var(--ink); fill: none;
  stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.step.in .step-ring .bar { stroke-dashoffset: var(--offset, 50); }
.step-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem;
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ===============================================
   STATS
   =============================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 60px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  border-right: 1px solid var(--line);
}
.stat:first-child { border-right: none; }
.stat .ring {
  width: 88px; height: 88px;
  position: relative;
}
.stat .ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.stat .ring .t {
  stroke: var(--line); fill: none;
  stroke-width: 4;
}
.stat .ring .b {
  stroke: var(--ink); fill: none;
  stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.stat.in .ring .b { stroke-dashoffset: var(--offset, 50); }
.stat .ring .core {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  box-shadow: var(--shadow-md);
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===============================================
   TESTIMONIALS
   =============================================== */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.quote {
  padding: 40px 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color .4s var(--ease),
              transform .4s var(--ease),
              box-shadow .4s var(--ease);
}
.quote:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.quote .mark {
  font-size: 3rem; line-height: 1;
  font-family: Georgia, serif;
  color: var(--line-strong);
  margin-bottom: 10px;
}
.quote p {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 28px;
}
.quote-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}
.quote-foot .name { font-weight: 700; }
.quote-foot .role {
  font-size: 0.85rem;
  color: var(--muted);
}
.quote-foot .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

/* ===============================================
   CTA
   =============================================== */
.cta-wrap {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-wrap::before {
  content: "";
  position: absolute;
  right: -150px; top: -150px;
  width: 400px; height: 400px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.cta-wrap::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}
.cta-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-wrap h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.cta-wrap h2 .thin {
  font-weight: 200;
  color: rgba(255,255,255,0.6);
}
.cta-wrap p {
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot-col h4 {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 20px;
}
.foot-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.94rem;
  transition: color .25s var(--ease), padding .25s var(--ease);
}
.foot-col a:hover {
  color: var(--muted);
  padding-right: 8px;
}
.foot-about {
  max-width: 320px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-top: 14px;
}
.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-legal {
  display: flex;
  gap: 24px;
}
.foot-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.foot-legal a:hover { color: var(--ink); }

/* ===============================================
   MOBILE MENU (fixed: now has close button + proper CTAs)
   =============================================== */
.mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.mobile-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 88vw);
  height: 100dvh;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
  box-shadow: var(--shadow-menu);
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-close {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .25s var(--ease),
              border-color .25s var(--ease),
              transform .25s var(--ease);
}
.mobile-close:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(90deg);
}

.mobile-nav {
  padding: 20px 24px;
  flex: 1;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 18px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .5s var(--ease-out),
              transform .5s var(--ease-out),
              padding .25s var(--ease);
}
.mobile-nav a::after {
  content: "←";
  opacity: 0.3;
  font-size: 1.1rem;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-nav a:hover {
  padding-right: 8px;
}
.mobile-nav a:hover::after {
  opacity: 1;
  transform: translateX(-4px);
}
.mobile-menu.active .mobile-nav a { opacity: 1; transform: translateX(0); }
.mobile-menu.active .mobile-nav a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.active .mobile-nav a:nth-child(2) { transition-delay: .18s; }
.mobile-menu.active .mobile-nav a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.active .mobile-nav a:nth-child(4) { transition-delay: .30s; }
.mobile-menu.active .mobile-nav a:nth-child(5) { transition-delay: .36s; }

.mobile-cta {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-soft);
  flex-shrink: 0;
}

body.menu-open { overflow: hidden; }

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps-connector { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { border-bottom: none; }
  .quotes { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cosmos { max-width: 520px; }
  .orbit-1 { --size: 200px; }
  .orbit-2 { --size: 320px; }
  .orbit-3 { --size: 460px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 50px 0 40px; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  section { padding: 80px 0; }
  .cta-wrap { padding: 50px 30px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-bot {
    flex-direction: column;
    text-align: center;
  }

  /* orbit resized for mobile */
  .cosmos { max-width: 420px; }
  .orbit-1 { --size: 170px; }
  .orbit-2 { --size: 270px; }
  .orbit-3 { --size: 380px; }
  .cosmos .core { width: 100px; height: 100px; }
  .cosmos .core-text { font-size: 0.78rem; }
  .cosmos .core-spark { width: 13px; height: 13px; }
  .sat-inner {
    width: 46px; height: 46px;
    top: calc(var(--size) / -2 - 23px);
    left: -23px;
    border-radius: 12px;
  }
  .sat-inner svg { width: 20px; height: 20px; }
  .sat-inner .sat-text { font-size: 0.65rem; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .hero-stat:nth-child(2n+1) { border-right: none; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) {
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
}

@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .cta-wrap { padding: 40px 24px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }

  /* orbit scales further */
  .cosmos { max-width: 320px; }
  .orbit-1 { --size: 130px; }
  .orbit-2 { --size: 210px; }
  .orbit-3 { --size: 290px; }
  .cosmos .core { width: 82px; height: 82px; }
  .cosmos .core-text { font-size: 0.7rem; }
  .cosmos .core-spark { width: 11px; height: 11px; }
  .sat-inner {
    width: 38px; height: 38px;
    top: calc(var(--size) / -2 - 19px);
    left: -19px;
    border-radius: 10px;
  }
  .sat-inner svg { width: 17px; height: 17px; }
  .sat-inner .sat-text { font-size: 0.58rem; }

  .quote { padding: 30px 24px; }
  .step { padding: 30px 24px; }
  .service { padding: 30px 22px 34px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
