@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --card: #132038;
  --card-hi: #18294a;
  --text: #e8eefb;
  --muted: #94a3bd;
  --teal: #2dd4bf;
  --teal-2: #38bdf8;
  --line: rgba(148, 163, 189, .18);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 17px; line-height: 1.9; color: var(--text);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(45, 212, 191, .14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }

header { padding: 28px 0 0; }
.header { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--muted); letter-spacing: .3px; }
.logo i { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--teal), var(--teal-2)); display: inline-block; }

.hero { text-align: center; padding: 84px 0 56px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.35; }
.hero h1 span { background: linear-gradient(100deg, var(--teal), var(--teal-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 auto; max-width: 52ch; color: var(--muted); }

.label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--muted); font-size: 14px; font-weight: 700; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 96px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); transition: transform .25s, background .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); background: var(--card-hi); border-color: rgba(45, 212, 191, .5); }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile__dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--teal); font-weight: 700; }
.tile__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.tile__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: .25s; }
.tile__arrow svg { width: 16px; height: 16px; }
.tile:hover .tile__arrow { color: var(--bg); background: var(--teal); border-color: var(--teal); }
.tile h2 { margin: 6px 0 0; font-size: 1.5rem; font-weight: 800; font-family: "Segoe UI", system-ui, sans-serif; letter-spacing: .2px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile__url { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 13px; direction: ltr; text-align: left; font-family: "Segoe UI", system-ui, monospace; }

footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }

@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
