@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/IRANYekanWebMedium.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --card: #151d3b;
  --line: #243056;
  --text: #eef1fb;
  --muted: #a7b0d0;
  --brand: #6c7bff;
  --brand-2: #22d3ee;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "IRANYekan", Tahoma, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-family: system-ui, sans-serif; font-weight: 800;
}
.menu { display: flex; align-items: center; gap: 26px; color: var(--muted); }
.menu a:hover { color: var(--text); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); font-size: 1.3rem; border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(108, 123, 255, .35); color: #fff; }
.btn-small { padding: 8px 20px; font-size: .92rem; color: #fff !important; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); box-shadow: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 110px 0 90px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(108, 123, 255, .28), transparent 70%),
    radial-gradient(500px 300px at 10% 20%, rgba(34, 211, 238, .18), transparent 70%);
}
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--brand-2);
  font-size: .9rem; margin-bottom: 22px; background: rgba(34, 211, 238, .06);
}
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.4; font-weight: 800; }
.grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 640px; margin: 20px auto 34px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stats { display: flex; justify-content: center; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 1.8rem; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-align: center; font-weight: 800; }
.sub { text-align: center; color: var(--muted); margin: 8px 0 44px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--brand); }
.icon {
  font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; background: rgba(108, 123, 255, .14); margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* Portfolio */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  font: inherit; cursor: pointer; padding: 8px 20px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.work {
  position: relative; display: block; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, border-color .25s;
}
a.work:hover { transform: translateY(-6px); border-color: var(--brand); }
.work.hide { display: none; }
.thumb {
  height: 180px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.5rem; color: rgba(255, 255, 255, .92);
}
.t1 { background: linear-gradient(135deg, #f97316, #ef4444); }
.t2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.t3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.t4 { background: linear-gradient(135deg, #6366f1, #22d3ee); }
.t5 { background: linear-gradient(135deg, #f59e0b, #84cc16); }
.t6 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.work .info { padding: 18px 20px 22px; }
.work h3 { font-size: 1.05rem; margin-bottom: 2px; }
.work p { color: var(--muted); font-size: .88rem; }
.soon-badge {
  position: absolute; top: 12px; left: 12px; font-size: .78rem;
  background: rgba(11, 16, 32, .75); border: 1px solid var(--line);
  padding: 2px 12px; border-radius: 999px; color: var(--muted);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.steps b {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; margin-bottom: 12px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .92rem; }

/* CTA */
.cta {
  text-align: center;
  background: radial-gradient(600px 260px at 50% 100%, rgba(108, 123, 255, .25), transparent 70%), var(--bg-alt);
}
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .92rem; }
.footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .menu-btn { display: block; }
  .menu {
    display: none; position: absolute; top: 68px; inset-inline: 0;
    flex-direction: column; gap: 0; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; width: 100%; text-align: center; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 64px 0; }
  .stats { gap: 28px; }
}
