﻿:root {
  --bg: #0d121c;
  --ink: #e6ebf5;
  --accent: #6b8cf0;
  --line: #26304a;
}

* { box-sizing: border-box; margin: 0; }


@font-face {
    font-family: 'YekanBakh-Regular';
    src: url('/fonts/font-family:truetype/YekanBakh-Regular.eot?#') format('eot'), /* IE6�8 */
    url('/fonts/YekanBakh-Regular.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/fonts/YekanBakh-Regular.woff2') format('woff2'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/fonts/YekanBakh-Regular.ttf') format('ttf'); /* Saf3�5, Chrome4+, FF3.5, Opera 10+ */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: YekanBakh-Regular;
}

/* ===== سکشن لپ‌تاپ ===== */
/* ارتفاع این سکشن را جاوااسکریپت دقیق تنظیم می‌کند */
#pin {
  position: relative;
  height: 300vh;
}

.stage {
  position: sticky;      /* صفحه همین‌جا ثابت می‌ماند */
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #2a2623 0%, #0b0d12 70%);
}

.mobile-btn {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  padding: 9px 22px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: rgba(13, 18, 28, .6);
  backdrop-filter: blur(6px);
}

.laptop {
  position: relative;
  width: min(96vw, calc(92vh * 1.383));
  aspect-ratio: 1632 / 1180;
  margin-top: 26px;
}

.laptop .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* پنجره‌ی صفحه‌ی لپ‌تاپ (جایی که عکس داخلش حرکت می‌کند) */
.screen {
  position: absolute;
  left: 15.95%;
  width: 68.4%;
  top: 14.4%;
  height: 59.2%;
  overflow: hidden;
  background: #fff;
  z-index: 1;
  direction: ltr;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}

.hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #9aa6c4;
  z-index: 3;
}

/* ===== اطلاعات پروژه ===== */
.info {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.head h1 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: .18em;
  direction: ltr;
  background: linear-gradient(90deg, #ff9700, #dfe6f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tags {
  display: flex;
  gap: 18px;
  direction: ltr;
  font-size: 17px;
  flex-wrap: wrap;
}
.tags span + span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9700;
  margin-inline-end: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.rows { border-inline-start: 1px solid var(--line); }

.row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 26px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.row.last { border-bottom: 0; }
.row b { color: #d7a451bd; font-weight: 400; white-space: nowrap; }
.row .v { direction: ltr; text-align: left; }
.row .v p + p { margin-top: 14px; }
.row a { color: var(--accent); text-decoration: none; }

.about { padding: 34px 0 0 34px; }
.about h2 { font-size: 26px; font-weight: 800; color: #b9c6ee; }

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .rows { border: 0; }
  .info { padding: 50px 20px 80px; }
  .rows { border: 0; }
.row { padding-right: 0; font-size: 16px; }
  .hint { display: none; }
}