:root {
  --bg0: #050508;
  --bg1: #0a0b0f;
  --bg2: #0f1117;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent: #79f2c0;
  --accent2: #69a7ff;
  --gradient: linear-gradient(135deg, #79f2c0 0%, #69a7ff 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
/* ---------- HEADER ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header {
  backdrop-filter: blur(0px);
}

.header.scrolled {
  background: rgba(10, 11, 15, 0.7);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.logo {
  width: 24px;
  height: 24px;
  border: 3px solid white;
  border-radius: 2px;
  position: relative;
}

.logo::after {
  content: "²";
  position: absolute;
  right: -10px;
  top: -12px;
  font-size: 14px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

nav a:hover,
nav a.active {
  color: white;
}

/* ---------- HERO ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 120px 48px 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(121,242,192,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(105,167,255,0.25), transparent 40%),
    linear-gradient(180deg, #050508 0%, #0a0b0f 100%);
  filter: blur(60px);
  transform: scale(1.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
}

.hero-who {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 620px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.hero.visible .hero-who {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  font-size: clamp(4.5rem, 16vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin-bottom: 32px;
}

.hero.visible .hero h1 {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 .gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 1000px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
}

.hero.visible .hero-tagline {
  opacity: 1;
  transform: translateY(0);
}

.hero-desc {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 1000px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero.visible .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.65s, transform 0.8s ease 0.65s;
}

.hero.visible .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #79f2c0 0%, #69a7ff 100%);
  color: #000;
  box-shadow: 0 10px 40px rgba(121,242,192,0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5), transparent 70%);
  transform: translateX(-100%);
  transition: 0.6s;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- SECTIONS GLOBAL ---------- */

.section {
  padding: clamp(80px, 12vw, 140px) 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: left;
  margin-bottom: clamp(48px, 8vw, 72px);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}

.section-head h2,
.section-head p {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-head.visible h2,
.section-head.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FEATURES (Почему мы) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 32px;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: 0.4s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(121, 242, 192, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- STATS ---------- */

.stats-section {
  background: var(--bg2);
  padding: clamp(60px, 10vw, 100px) 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ---------- PROCESS ---------- */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-item:last-child {
  border-bottom: none;
}

.process-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.process-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.process-item h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-item p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- CTA BLOCK ---------- */

.cta-block {
  text-align: left;
  padding: clamp(80px, 12vw, 120px) 48px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 1200px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(121, 242, 192, 0.08) 0%, transparent 60%);
}

.cta-block h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-block p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.cta-block h2,
.cta-block p,
.cta-block .btn {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-block h2.visible,
.cta-block p.visible,
.cta-block .btn.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FOOTER ---------- */

footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- PAGE: PARTNERS ---------- */

.page-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.page-hero.visible h1 {
  opacity: 1;
  transform: translateY(0);
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.page-hero.visible p {
  opacity: 1;
  transform: translateY(0);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.benefit-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.5s ease, border-color 0.3s ease;
}

.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-card:hover {
  border-color: rgba(121, 242, 192, 0.2);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- PAGE: CONTACTS ---------- */

.contacts-wrap {
  padding: 140px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.contacts-head {
  text-align: center;
  margin-bottom: 48px;
}

.contacts-head h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.contacts-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contacts-head h1,
.contacts-head p {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contacts-head.visible h1,
.contacts-head.visible p {
  opacity: 1;
  transform: translateY(0);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(121, 242, 192, 0.15);
}

.contact-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.contact-card a,
.contact-card span {
  font-size: 1.15rem;
  color: white;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--accent);
}

.cta-center {
  text-align: center;
  margin-top: 48px;
}

/* ---------- UTILS ---------- */

.full-width {
  width: 100%;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .header { padding: 16px 24px; }
  .hero { padding: 100px 24px 80px; }
  nav { gap: 28px; }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-item { grid-template-columns: 50px 1fr; gap: 20px; padding: 28px 0; }
}

@media (max-width: 600px) {
  nav { gap: 20px; font-size: 0.9rem; }
  .feature-card { padding: 28px 24px; }
  .benefit-card { padding: 28px 24px; }
}
