/* ==========================================================
   Texnonet — yenilənmiş dizayn
   Matrix ruhu qalır: qara fon, yaşıl terminal vurğusu, kod yağışı.
   Üstünə: şüşə (glass) kartlar, rəvan animasiyalar, tam mobil uyğunluq.
   ========================================================== */

:root {
  --bg: #05080a;
  --bg-2: #0a1114;
  --card: rgba(10, 18, 20, .62);
  --line: rgba(80, 255, 150, .16);
  --line-strong: rgba(80, 255, 150, .38);
  --green: #3dff8b;
  --green-dim: #1fae5e;
  --cyan: #29d3ee;
  --red: #d8372b;            /* Texnonet loqosunun qırmızısı */
  --text: #d6e6dc;
  --muted: #8aa395;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(61, 255, 139, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(216, 55, 43, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
::selection { background: var(--green); color: #00150a; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #00150a; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Fon: kod yağışı ---------- */
#matrix {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; opacity: .28; pointer-events: none;
}
body.home #matrix { opacity: .12; }

/* ---------- Fon: müştəri loqoları divarı (ana səhifə) ---------- */
.wall {
  position: fixed; inset: -10% -10%;
  z-index: -1; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-around;
  transform: rotate(-6deg);
  overflow: hidden;
}
.wall-row { overflow: hidden; }
.wall-track {
  display: flex; gap: 28px; width: max-content;
  animation: slide var(--dur, 80s) linear infinite;
  will-change: transform;
}
.wall-row.rev .wall-track { animation-direction: reverse; }
.tile {
  flex: none;
  width: clamp(150px, 15vw, 230px);
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  padding: 18px 22px;
  background: linear-gradient(145deg, #ffffff, #e9efec);
  border-radius: 20px;
  opacity: .24;
  filter: grayscale(.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.tile img { width: 100%; height: 100%; object-fit: contain; }
@keyframes slide { to { transform: translateX(-25%); } }

.wall-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(5, 8, 10, .88) 0%, rgba(5, 8, 10, .55) 55%, rgba(5, 8, 10, .15) 100%),
    linear-gradient(180deg, rgba(5, 8, 10, .6), transparent 25%, transparent 75%, rgba(5, 8, 10, .7));
}

/* ---------- Header / menyu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(5, 8, 10, .85), rgba(5, 8, 10, .55));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 34px; width: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 20px rgba(216, 55, 43, .35); transition: transform .25s; }
.brand:hover img { transform: translateY(-1px) scale(1.03); }

.nav { display: flex; gap: 6px; }
.nav a {
  font-family: var(--mono); font-size: 14px; letter-spacing: .02em;
  color: var(--text); padding: 8px 14px; border-radius: 10px;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.nav a:hover { color: var(--green); background: rgba(61, 255, 139, .07); text-decoration: none; }
.nav a.active {
  color: var(--green); background: rgba(61, 255, 139, .1); border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(61, 255, 139, .18);
}

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: rgba(61, 255, 139, .06); border: 1px solid var(--line-strong); border-radius: 12px;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--green); border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Əsas sahə ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 32px);
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
  position: relative;
}
.card::before {                     /* yuxarıda nazik işıq xətti */
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent); opacity: .55;
}

.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--green-dim);
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px;
}
.eyebrow::before { content: "> "; color: var(--green); }

h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 22px; color: #fff;
}
h1 .cursor, .cursor {
  display: inline-block; width: .38em; height: .72em; margin-left: .14em; vertical-align: -.02em;
  background: var(--green); animation: blink 1.1s steps(1) infinite; box-shadow: 0 0 14px var(--green);
}
@keyframes blink { 50% { opacity: 0; } }

.prose p { margin: 0 0 1.1em; max-width: 68ch; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(19px, 2.4vw, 23px); color: #fff; line-height: 1.55; }

/* ---------- Rəqəmlər (Biz) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.stat {
  padding: 18px 20px; border-radius: 14px;
  background: rgba(61, 255, 139, .045); border: 1px solid var(--line);
}
.stat b { display: block; font-family: var(--mono); font-size: clamp(26px, 4vw, 38px); color: var(--green); line-height: 1.1; text-shadow: 0 0 22px rgba(61, 255, 139, .45); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Sitat (Missiya) ---------- */
.quote {
  margin: 32px 0 0; padding: 24px 28px;
  border-left: 3px solid var(--red);
  background: linear-gradient(90deg, rgba(216, 55, 43, .1), transparent);
  border-radius: 0 14px 14px 0;
  font-size: clamp(21px, 3vw, 30px); font-weight: 500; color: #fff; line-height: 1.35;
}
.quote em { font-style: normal; color: var(--green); }

/* ---------- Əlaqə ---------- */
.mail-btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
  font-family: var(--mono); font-size: clamp(16px, 3.4vw, 22px); font-weight: 500;
  color: #00150a; background: var(--green);
  padding: 16px 26px; border-radius: 14px; border: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 12px 40px rgba(61, 255, 139, .25);
  transition: transform .2s, box-shadow .2s;
  word-break: break-all;
}
.mail-btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 16px 50px rgba(61, 255, 139, .4); }
.copy-btn {
  font-family: var(--mono); font-size: 14px; margin-left: 10px;
  background: transparent; color: var(--green); border: 1px solid var(--line-strong);
  padding: 14px 18px; border-radius: 14px; cursor: pointer; transition: background .2s;
}
.copy-btn:hover { background: rgba(61, 255, 139, .1); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.actions .copy-btn { margin: 0; }

/* ---------- Arzularımız ---------- */
.wish { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.flag {
  border-radius: 14px; border: 1px solid var(--line-strong);
  box-shadow: 0 0 40px rgba(61, 255, 139, .18), 0 20px 40px rgba(0,0,0,.5);
  width: 100%; height: auto; animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- İzimiz: müştəri şəbəkəsi ---------- */
.client-grid > li { min-width: 0; }
.client-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px;
  margin: 32px 0 0; padding: 0; list-style: none;
}
.client {
  display: flex; flex-direction: column; height: 100%;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.client:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 30px rgba(61, 255, 139, .14); text-decoration: none; }
.client .logo {
  display: block; position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #fff, #eef3f0);
}
.client .logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 16px 20px; object-fit: contain; }
.client .name { padding: 10px 14px 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.client .name::before { content: none; }
.client:hover .name { color: var(--green); }
.client .name::after { content: "↗"; opacity: .6; flex: none; }

/* ---------- Ana səhifə (hero) ---------- */
body.home .main { display: grid; place-items: center; max-width: 900px; padding-block: clamp(14px, 3vw, 28px); }
.hero { text-align: center; width: 100%; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 48px); }
.avatar-wrap { position: relative; width: 148px; height: 148px; margin: 0 auto 26px; display: grid; place-items: center; }
.avatar {
  position: relative; width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--green); isolation: isolate;
  box-shadow: 0 0 0 5px rgba(61, 255, 139, .07), 0 0 38px rgba(61, 255, 139, .5), inset 0 0 22px rgba(0, 0, 0, .7);
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(.95);     /* yaşıl duoton */
  animation: glitch 6s infinite steps(1);
}
.avatar::before {                                          /* yaşıl ton */
  content: ""; position: absolute; inset: 0; z-index: 1; background: #17ff7a; mix-blend-mode: multiply; opacity: .9;
}
.avatar::after {                                           /* kənar qaralması */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(0, 20, 8, .75) 100%);
}
.avatar-rain {                                             /* şəkil üstündə kod yağışı */
  position: absolute; inset: 0; z-index: 2; opacity: .55;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(120, 255, 180, .55) 9px 10px, transparent 10px 19px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 80%);
          mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 80%);
  background-size: 100% 100%;
  animation: avRain 2.8s linear infinite;
  mix-blend-mode: screen;
}
@keyframes avRain { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.avatar-scan {                                             /* skan xətləri + hərəkətli xətt */
  position: absolute; inset: 0; z-index: 4;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
}
.avatar-scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(160, 255, 200, .35), transparent);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan { from { top: -25%; } to { top: 105%; } }
@keyframes glitch {
  0%, 92%, 100% { transform: none; filter: grayscale(1) contrast(1.25) brightness(.95); }
  93% { transform: translateX(-3px); filter: grayscale(1) contrast(1.6) brightness(1.2) hue-rotate(40deg); }
  95% { transform: translateX(3px) skewX(4deg); }
  97% { transform: translateX(-1px); }
}
.ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.ring-a {
  background: conic-gradient(from 0deg, transparent 0 60%, var(--green) 85%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 8px var(--green)); animation: spin 4s linear infinite;
}
.ring-b {
  inset: 9px; border: 1px dashed rgba(61, 255, 139, .45); animation: spin 18s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-tag {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: #00150a; background: var(--green);
  padding: 2px 9px; border-radius: 99px; white-space: nowrap; line-height: 1.5; box-shadow: 0 0 14px rgba(61, 255, 139, .7);
}
.avatar-tag::before { content: "● "; animation: blink 1.4s steps(1) infinite; }
.hero .logo-big { height: 48px; width: auto; margin: 0 auto 26px; border-radius: 8px; box-shadow: 0 10px 34px rgba(216, 55, 43, .45); }
.slogan { font-size: clamp(34px, 7vw, 66px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; color: #fff; margin: 0; }
.slogan-en { font-family: var(--mono); font-size: clamp(16px, 2.6vw, 24px); color: var(--green); margin: 14px 0 0; text-shadow: 0 0 18px rgba(61, 255, 139, .4); }
.warn {
  margin: 20px auto 0; max-width: 560px; padding: 10px 16px;
  font-family: var(--mono); font-size: clamp(13px, 2.2vw, 15px); line-height: 1.55; color: #ff5a4d;
  border: 1px solid rgba(255, 90, 77, .4); border-radius: 12px; background: rgba(216, 55, 43, .09);
  text-shadow: 0 0 14px rgba(255, 70, 55, .55);
  animation: warnBlink 1.6s steps(1) infinite;
}
.warn-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #ff3b2e; box-shadow: 0 0 10px #ff3b2e; vertical-align: 1px; }
@keyframes warnBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.btn {
  font-family: var(--mono); font-size: 15px; padding: 13px 22px; border-radius: 12px;
  border: 1px solid var(--line-strong); color: var(--green); background: rgba(61, 255, 139, .06);
  transition: all .25s;
}
.btn:hover { background: rgba(61, 255, 139, .16); transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 30px rgba(61, 255, 139, .15); }
.btn.primary { background: var(--green); color: #00150a; border-color: var(--green); font-weight: 700; }
.btn.primary:hover { background: #6bffa6; }
.clients-note { margin: 26px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 26px 16px 32px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 10, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 14px;
}
.site-footer p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    flex-direction: column; gap: 4px; padding: 10px;
    background: rgba(8, 14, 16, .96); border: 1px solid var(--line-strong); border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .wish { grid-template-columns: 1fr; }
  .flag { max-width: 280px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .copy-btn, .mail-btn { width: 100%; justify-content: center; }
  .brand img { height: 30px; }
  .tile { opacity: .2; }
}

/* ---------- Hərəkət azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #matrix { display: none; }
}
