/**
 * Design tokens — Industrial Editorial / Material Depth (2026)
 * Brand: navy steel + industrial blue (no purple/glow clichés)
 */

:root {
  /* Brand */
  --navy: #061a34;
  --navy-2: #0a2850;
  --navy-3: #123766;
  --ink: #10213b;
  --muted: #5c6b7e;
  --line: #d8e0eb;
  --line-soft: #e8eef6;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --bg: #eef2f7;
  --blue: #1a5fff;
  --blue-2: #0d4de0;
  --blue-soft: #e8f0ff;
  --green: #1faa5a;
  --red: #e5484d;

  /* Type */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: clamp(2.25rem, 4vw, 3.25rem);
  --lh-tight: 1.2;
  --lh-body: 1.75;
  --tracking-tight: -0.02em;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-section: clamp(2.5rem, 5vw, 4.5rem);
  --container: 1200px;
  --container-wide: 1400px;
  --tap: 48px;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --elev-1: 0 1px 2px rgba(6, 26, 52, 0.04), 0 4px 12px rgba(6, 26, 52, 0.04);
  --elev-2: 0 4px 8px rgba(6, 26, 52, 0.05), 0 16px 32px rgba(6, 26, 52, 0.08);
  --elev-3: 0 12px 24px rgba(6, 26, 52, 0.1), 0 32px 64px rgba(6, 26, 52, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 700ms;

  /* Atmosphere */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --mesh: radial-gradient(1200px 600px at 90% -10%, rgba(26, 95, 255, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(18, 55, 102, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazir", Tahoma, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--mesh);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: var(--noise);
  z-index: 9998;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - 2.5rem), var(--container-wide));
  margin-inline: auto;
}

/* Reveal motion helpers */
.hm-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.hm-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-image {
    animation: none !important;
  }
}
