/* Ana səhifə: redaksiya tipli tək sütun — hero, layihə şəbəkəsi,
   xidmətlər, proses, əlaqə. Yalnız index.html yükləyir. */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- naviqasiya ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
}
.logo i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0;
}
.nav nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 7px;
}
.nav nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.nav .cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
}
.nav .cta:hover {
  background: var(--accent) !important;
  filter: brightness(1.06);
}

/* ---------- hero ---------- */
.hero {
  padding-block: 56px 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-size: 18px;
  max-width: 34ch;
  margin: 0 0 28px;
}
.hero .actions .btn {
  padding: 13px 18px;
  font-size: 15px;
}

/* canlı render + üzərindəki ölçü işarələri */
.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--stage);
  aspect-ratio: 16 / 10;
  max-width: 100%;
  box-shadow: 0 30px 60px -30px rgba(10, 24, 32, .55);
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.shot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shot .band {
  fill: var(--ok);
  fill-opacity: .35;
  stroke: #fff;
  stroke-opacity: .5;
  stroke-width: .4;
}
.shot .band.hot {
  fill: #fff;
  fill-opacity: 1 !important;
  stroke: var(--accent);
  stroke-width: 2.5;
}
.shot .dim {
  stroke: #fff;
  stroke-width: .8;
  fill: none;
}
.shot .dimtxt {
  font-family: var(--f-mono);
  font-size: 10px;
  fill: #fff;
}

/* render üzərindəki status kartı */
.hcard {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 210px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hcard small {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hcard b {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.1;
}
.hcard span {
  font-size: 13px;
  color: var(--muted);
}
.hcard .pill {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- rəqəm zolağı ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  margin-block: 8px 0;
}
.facts div {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}
.facts div:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts b {
  display: block;
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: -.02em;
}
.facts span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- bölmə başlığı ---------- */
section.block {
  padding-block: 72px 8px;
}

.sh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sh h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 6px 0 0;
  text-wrap: balance;
  max-width: 20ch;
}
.sh p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

/* ---------- layihə şəbəkəsi ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.proj {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.proj .thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stage);
  max-width: 100%;
}
.proj .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .15, 1);
  max-width: none;
}
.proj:hover .thumb img {
  transform: scale(1.035);
}
.proj .tech {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(5, 15, 20, .78);
  color: #E8F1F3;
  font-family: var(--f-mono);
  font-size: 11px;
  border-radius: 6px;
  padding: 4px 8px;
  letter-spacing: .02em;
}
.proj .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.proj h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.proj .loc {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--f-mono);
}
.proj p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}
.feats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feats li {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--ink);
}
.open {
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.open span {
  transition: transform .2s;
}
.proj:hover .open span {
  transform: translateX(3px);
}

/* ---------- xidmətlər ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.svc {
  padding: 24px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc:not(:nth-child(3n+1)) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.svc svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc h3 {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: -.01em;
}
.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- proses ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.step h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: -.01em;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.step .dur {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  border-top: 1px dashed var(--line);
}

/* sayt qurulmasının pulsuz olduğunu bildirən qeyd */
.freebie {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line));
  background: color-mix(in srgb, var(--ok) 7%, transparent);
  border-radius: 12px;
  font-size: 15px;
}
.freebie b {
  font-weight: 700;
  color: var(--ink);
}
.freebie span:last-child {
  color: var(--muted);
  max-width: 68ch;
}

/* qəbul edilən fayl formatları */
.formats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
}
.formats .l {
  font-size: 13px;
  color: var(--muted);
  margin-right: 6px;
}
.formats code {
  font-family: var(--f-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
}

/* ---------- əlaqə ---------- */
.contact {
  margin-block: 80px 40px;
  background: var(--stage);
  color: var(--stage-ink);
  border-radius: 18px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.contact h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0 0 14px;
  text-wrap: balance;
}
.contact p {
  margin: 0;
  color: var(--stage-muted);
  max-width: 44ch;
}
.cl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 12px 14px;
}
.crow small {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stage-muted);
}
.crow b {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  user-select: all;
  word-break: break-all;
}
.copy {
  border: 1px solid rgba(255, 255, 255, .25);
  background: none;
  color: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 20px 32px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- uyğunlaşma ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 36px 24px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .svc:not(:nth-child(3n+1)) {
    padding-left: 0;
    border-left: 0;
  }
  .svc:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .facts div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .facts div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-inline: 16px;
  }
  .services,
  .steps {
    grid-template-columns: 1fr;
  }
  .svc:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .contact {
    padding: 24px;
  }
  .hcard {
    left: auto;
    right: 8px;
    bottom: 8px;
    min-width: 0;
    padding: 8px 10px;
    gap: 2px;
  }
  .hcard b {
    font-size: 15px;
  }
  .hcard .sub,
  .hcard .pill {
    display: none;
  }

  /* Naviqasiya linkləri sətirə sığmır: gizlətmək yerinə yatay sürüşən lent */
  .nav .wrap {
    gap: 12px;
  }
  .nav nav {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav nav::-webkit-scrollbar {
    display: none;
  }
  .nav nav a {
    padding: 6px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}
