/* =========================
   TREN0X — style.css
   Works with index.html structure
   ========================= */

/* ----- Reset ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Arial, sans-serif;
  background: #0b0f19;
  color: #eaeaf0;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ----- Subtle global noise ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* =========================
   TOP BAR
   ========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 25, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand__name {
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 18px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  font-size: 14px;
  color: rgba(234, 234, 240, 0.85);
  transition: 0.2s ease;
}
.nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}
.nav__cta {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(34, 158, 217, 0.35);
  background: rgba(34, 158, 217, 0.12);
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  height: 2px;
  width: 18px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Menu open (mobile) */
body.menu-open .nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  padding: 88px 0 54px;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.88) 0%, rgba(5, 8, 18, 0.72) 38%, rgba(5, 8, 18, 0.42) 60%, rgba(5, 8, 18, 0.25) 100%),
    url("/assets/img/hero/hero-main.png") 65% center / cover no-repeat;
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
  transform: scale(1.03);
  z-index: 0;
}

/* Dark overlay + color film */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(100, 140, 255, 0.22), transparent 55%),
    radial-gradient(circle at 85% 35%, rgba(0, 255, 180, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(5, 8, 18, 0.70), rgba(5, 8, 18, 0.95));
}

/* Animated grid overlay (CSS) */
.hero__grid {
  position: absolute;
  inset: -40px;
  z-index: 2;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(800px) rotateX(58deg) translateY(120px);
  transform-origin: top;
  animation: gridMove 10s linear infinite;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,1), rgba(0,0,0,0));
}
@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 260px, 260px 0; }
}

/* Glows */
.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.35;
  z-index: 2;
}
.hero__glow--a {
  left: -160px;
  top: -120px;
  background: rgba(80, 120, 255, 0.55);
}
.hero__glow--b {
  right: -220px;
  bottom: -180px;
  background: rgba(0, 220, 255, 0.35);
}

/* Layout inside hero */
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(234,234,240,0.88);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  width: fit-content;
  margin-bottom: 16px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45,212,191,0.18);
}

/* Typography */
.hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.grad {
  background: linear-gradient(90deg, #9bd0ff, #34d399, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 16px;
  max-width: 660px;
  color: rgba(207, 213, 255, 0.92);
}

/* Buttons */
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-telegram {
  background: linear-gradient(180deg, #2aa8e9, #1e78c9);
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.22);
  border-color: rgba(255,255,255,0.10);
}
.btn-telegram .btn__icon { font-size: 16px; }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: rgba(234,234,240,0.92);
  backdrop-filter: blur(10px);
}
.btn-big { padding: 16px 22px; border-radius: 16px; }

.hero__note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(234,234,240,0.55);
}

/* Trust blocks */
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.trust__item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 14, 25, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.trust__num {
  font-weight: 900;
  font-size: 14px;
}
.trust__txt {
  font-size: 12px;
  color: rgba(207, 213, 255, 0.80);
}

/* Right panel */
.hero__panel { display: block; }
.panel {
  border-radius: 22px;
  background: rgba(10, 14, 25, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  padding: 18px;
}
.panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel__title {
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 14px;
}
.panel__pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.25);
}
.panel__line {
  height: 1px;
  margin: 14px 0;
  background: rgba(255,255,255,0.08);
}
.panel__rows { display: grid; gap: 10px; }
.panel__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.panel__k { color: rgba(234,234,240,0.65); }
.panel__v { color: rgba(234,234,240,0.92); text-align: right; }

.panel__cta {
  margin-top: 16px;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  background: rgba(34, 158, 217, 0.14);
  border: 1px solid rgba(34, 158, 217, 0.30);
  transition: 0.15s ease;
}
.panel__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* =========================
   SECTIONS
   ========================= */
.section {
  position: relative;
  z-index: 2;
  padding: 72px 0;
}
.section--dark {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section__title {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section__lead {
  max-width: 760px;
  color: rgba(207, 213, 255, 0.88);
}

/* Cards grid */
.grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(10, 14, 25, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 158, 217, 0.28);
}
.card__icon { font-size: 20px; margin-bottom: 8px; }
.card h3 { margin-bottom: 6px; font-size: 16px; }
.card p { color: rgba(207, 213, 255, 0.82); font-size: 13px; }

/* CTA box */
.cta { margin-top: 18px; }
.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(34, 158, 217, 0.08);
  border: 1px solid rgba(34, 158, 217, 0.22);
  backdrop-filter: blur(10px);
}
.cta__box h3 { font-size: 16px; margin-bottom: 4px; }
.cta__box p { font-size: 13px; color: rgba(234,234,240,0.78); }

/* Mini blocks */
.mini {
  padding: 16px;
  border-radius: 18px;
  background: rgba(10, 14, 25, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
.mini__t { font-weight: 900; margin-bottom: 6px; }
.mini__p { color: rgba(207, 213, 255, 0.82); font-size: 13px; }

/* Steps */
.steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step {
  padding: 18px;
  border-radius: 18px;
  background: rgba(10, 14, 25, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
.step__n {
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(34, 158, 217, 0.95);
  margin-bottom: 10px;
}
.step__t { font-weight: 900; margin-bottom: 6px; }
.step__p { color: rgba(207, 213, 255, 0.82); font-size: 13px; }

.final {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.final__note {
  font-size: 12px;
  color: rgba(234,234,240,0.55);
}

/* =========================
   FOOTER
   ========================= */
.footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.footer__brand {
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.footer__txt {
  max-width: 640px;
  color: rgba(234,234,240,0.65);
  font-size: 12px;
}
.footer__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  align-items: flex-end;
}
.footer__right a {
  color: rgba(234,234,240,0.75);
}
.footer__right a:hover { color: #fff; }

/* =========================
   REVEAL ANIMATIONS
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: 2; }
  .hero__content { order: 1; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    padding: 14px;
    background: rgba(11, 15, 25, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 10px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .nav a {
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .nav__cta { text-align: center; }

  .hero { padding: 70px 0 40px; }
  .trust { grid-template-columns: 1fr; }
  .cta__box { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; }
  .footer__right { align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 16px; }
  .hero__lead { font-size: 14px; }
  .panel { padding: 14px; }
}
/* ===== Иконки карточек (картинки вместо эмодзи) ===== */
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: rgba(34, 158, 217, 0.08);
  border: 1px solid rgba(34, 158, 217, 0.16);
  box-shadow: inset 0 0 18px rgba(34, 158, 217, 0.08);
  font-size: 0; /* скрывает влияние старого emoji-размера */
}

.card__icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(34, 158, 217, 0.22));
}
