:root {
  --bg: url("./bg.png");
  --fg: #ffffff;
  --fg-secondary: #e6e6e6;
  --muted: #d7d7d7;
  --card: rgba(12, 12, 12, 0.7);
  --card-hover: rgba(18, 18, 18, 0.85);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent: #6366f1;
  --accent-2: #a855f7;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 12px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: #000;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── PARALLAX BACKGROUND ── */
.parallax-bg {
  position: fixed;
  top: -30vh;
  left: 0;
  width: 100%;
  height: 160vh;
  background: var(--bg) center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ── AMBIENT GLOW ── */
.ambient-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu a {
  font-size: 16px;
  padding: 12px 0;
  color: var(--fg-secondary);
  transition: color 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--fg);
}

/* ── PAGE FADE ── */
.page {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: pageFade 1s ease 0.2s forwards;
}

@keyframes pageFade {
  to { opacity: 1; }
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* ── SECTION LABEL ── */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 100px 40px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.hero-logo {
  width: 180px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.2));
}

.hero-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #6366f1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 21px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-bottom: 40px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ── CTA BUTTON ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

/* ── SECTION BACKDROP ── */
.about,
.advantages,
.contact {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
}

/* ── ABOUT ── */
.about {
  margin-bottom: 48px;
}

.about h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 600px;
  margin-bottom: 20px;
}

.about-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ── STATS ── */
.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── ADVANTAGES ── */
.advantages {
  margin-bottom: 48px;
}

.advantages h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* ── GRID ── */
.grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    transform 0.5s cubic-bezier(.2,.8,.2,1),
    background 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.05);
}

.card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.card:hover .card-icon {
  background: rgba(99, 102, 241, 0.15);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-secondary);
}

/* ── CONTACTS SECTION ── */
.contact {
  margin-bottom: 48px;
}

.contact h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-desc {
  color: var(--fg-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

/* ── CONTACT CARDS ── */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    transform 0.5s cubic-bezier(.2,.8,.2,1),
    background 0.5s ease,
    border-color 0.5s ease;
  cursor: default;
}

a.contact-item {
  cursor: pointer;
}

.contact-item:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.7;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(.2,.8,.2,1);
}

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

/* ── SELECTION ── */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── TOUCH FIX ── */
@media (hover: none) {
  .card:hover,
  .contact-item:hover {
    transform: none;
  }
}

/* ── TABLET ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 24px 100px;
  }

  .stats-row {
    gap: 32px;
  }
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .hero-logo {
    width: 90px;
  }

  .container {
    padding: 48px 12px;
  }

  .about,
  .advantages,
  .contact {
    padding: 32px 20px;
    border-radius: 18px;
  }

  .about,
  .advantages,
  .contact {
    margin-bottom: 32px;
  }
}
