/* مولکول استودیو - استایل مشترک همه صفحه‌ها
   فونت‌ها از پوشه assets/fonts خوانده می‌شوند (راهنما: assets/fonts/README.txt) */

:root {
  --bg: #07070d;
  --bg-soft: #11111c;
  --bg-field: #14142a;
  --line: #3a3a58;
  --text: #f1f1f8;
  --muted: #b9b9d4;
  --blue: #29b6ff;
  --pink: #ff3d9a;
  --grad: linear-gradient(110deg, #29b6ff, #ff3d9a);
  --font-body: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", system-ui, sans-serif;
  --font-display: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-latin: "Vazirmatn", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; text-wrap: balance; }
:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }

.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 100;
  background: #ffd23f; color: #07070d; padding: 8px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 0 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.section-head h2, .h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; }
.section-head p { font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: .875rem; color: var(--blue); letter-spacing: .04em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  border: 0; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--grad); color: #07070d; box-shadow: 0 0 32px rgba(255, 61, 154, .35); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-dark { background: #07070d; color: #fff; }
.btn-sm { min-height: 42px; padding: 0 22px; font-size: .9375rem; }

/* هدر */
.site-header { position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; display: block; }
.brand-name {
  font-family: var(--font-latin); font-weight: 500; font-size: 1.0625rem; letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr;
}
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { color: var(--muted); font-size: .9375rem; padding: 8px 4px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--pink); }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 14px;
  border: 1.5px solid var(--line); background: transparent; color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}

/* صفحه اول */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 56px 72px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); color: #fff; }
.hero p { font-size: 1.1875rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { flex: 0 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-logo {
  width: min(380px, 100%); aspect-ratio: 1 / 1; display: block;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%);
}

/* کاشی‌های خدمات */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 300px; padding: 32px; border-radius: 28px; transition: transform .25s;
}
.tile:hover { transform: translateY(-6px); }
.tile.wide { grid-column: span 2; }
.tile svg { width: 56px; height: 56px; }
.tile-body { display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 2.75rem; }
.tile p { font-size: 1.0625rem; max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; }
.tags span { border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 14px; opacity: .85; }
.t-blue { background: #2f6bff; color: #fff; }
.t-pink { background: #ff2e93; color: #07070d; }
.t-cyan { background: #19d3ea; color: #07070d; }
.t-violet { background: #6d3bff; color: #fff; }
.t-coral { background: #ff7a59; color: #07070d; }
.t-mint { background: #3df5b0; color: #07070d; }
.t-yellow { background: #ffd23f; color: #07070d; }
.t-dark {
  background: linear-gradient(#14142a, #14142a) padding-box, linear-gradient(135deg, #29b6ff, #ff3d9a) border-box;
  border: 2px solid transparent; color: #fff;
}
.t-dark svg { color: var(--blue); }
.t-dark p { color: #d4d4ea; }

/* چرا ما و مراحل */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why h3 { font-size: 1.875rem; margin-bottom: 10px; }
.why p { font-size: 1.0625rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--bg-soft); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; line-height: 1; }
.step h3 { font-size: 1.75rem; }
.step p { color: var(--muted); }

/* بخش دعوت به ثبت سفارش */
.cta-band {
  background: linear-gradient(110deg, #19d3ea, #ff5fae); color: #07070d;
  border-radius: 36px; padding: 56px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.cta-band p { font-size: 1.1875rem; max-width: 520px; margin-top: 12px; }
.cta-text { flex: 1 1 400px; min-width: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* فوتر */
.site-footer { border-top: 1px solid #1d1d30; padding-block: 48px 40px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-size: 1.25rem; color: #fff; }
.footer-col p, .footer-col a { color: var(--muted); font-size: .9375rem; }
.footer-col a:hover { color: #fff; }
.footer-col .ltr { direction: ltr; text-align: right; font-weight: 500; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1d1d30; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; color: #8d8dab; }

/* واکنش‌گرا */
@media (max-width: 1000px) {
  .tiles, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(300px, 100%); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 84px; right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: #0e0e1b; border: 1px solid var(--line); border-radius: 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 12px; font-size: 1rem; border-radius: 12px; border-bottom-color: transparent; }
  .nav a[aria-current="page"] { background: #1a1a2e; border-bottom-color: transparent; }
  .nav .btn { margin-top: 8px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand img { width: 40px; height: 40px; }
  .hero-logo { width: min(220px, 100%); }
  .tiles, .steps { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-column: auto; }
  .tile { padding: 26px; min-height: 260px; }
  .tile h3 { font-size: 2.25rem; }
  .cta-band { padding: 40px 24px; border-radius: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile { transition: none; }
  .btn:hover, .tile:hover { transform: none; }
}
