/* Evervault-inspired design system */
:root {
  --primary: #60a5fa;
  --primary-20: rgba(96, 165, 250, 0.2);
  --primary-40: rgba(96, 165, 250, 0.4);
  --primary-60: rgba(96, 165, 250, 0.6);
  --primary-80: rgba(96, 165, 250, 0.8);
  --primary-100: #60a5fa;
  --secondary: #a78bfa;
  --secondary-20: rgba(167, 139, 250, 0.2);
  /* Светлая тема: “grey” — это оттенки текста/подложек (на базе slate-900) */
  --grey-10: rgba(15, 23, 42, 0.03);
  --grey-20: rgba(15, 23, 42, 0.06);
  --grey-30: rgba(15, 23, 42, 0.10);
  --grey-40: rgba(15, 23, 42, 0.16);
  --grey-50: rgba(15, 23, 42, 0.24);
  --grey-60: rgba(15, 23, 42, 0.38);
  --grey-70: rgba(15, 23, 42, 0.52);
  --grey-80: rgba(15, 23, 42, 0.68);
  --grey-90: rgba(15, 23, 42, 0.82);
  --grey-100: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-body: #f5f7fb;
  --border-color: rgba(15, 23, 42, 0.10);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --token-04: 0.25rem;
  --token-08: 0.5rem;
  --token-12: 0.75rem;
  --token-16: 1rem;
  --token-20: 1.25rem;
  --token-24: 1.5rem;
  --token-32: 2rem;
  --token-40: 2.5rem;
  --token-48: 3rem;
  --token-56: 3.5rem;
  --token-64: 4rem;
  --token-72: 4.5rem;
  --token-80: 5rem;
  --token-96: 6rem;
  --token-128: 8rem;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 2rem;
  --font-size-h4: 1.5rem;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-xs: 0.75rem;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;
  --line-height-tight: 1.1;
  --line-height-normal: 1.4;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container */
.container {
  max-width: 1400px;
  padding: 0 var(--token-24);
  margin: 0 auto;
}

/* Banner */
.banner {
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
  padding: var(--token-12) 0;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--token-12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--token-16);
  color: var(--grey-80);
  font-size: var(--font-size-sm);
}

.banner-content svg {
  color: var(--primary-100);
}

.banner-content a {
  color: var(--primary-100);
  text-decoration: none;
  font-weight: var(--fw-medium);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7f9ff 0%, #eef2ff 45%, #ffffff 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

.matrix-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(15, 23, 42, 0.035) 2px,
      rgba(15, 23, 42, 0.035) 4px
    );
  animation: matrix-flow 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  text-align: center;
  color: var(--grey-100);
  padding: 0 var(--token-24);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: var(--fw-black);
  line-height: var(--line-height-tight);
  margin-bottom: var(--token-16);
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 58%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--grey-80);
  margin-bottom: var(--token-16);
}

.hero-content p:first-of-type {
  font-size: 1.25rem;
  font-weight: var(--fw-medium);
  color: var(--grey-90);
}

.hero-buttons {
  display: flex;
  gap: var(--token-16);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--token-24);
}

.hero-buttons .cta-button {
  margin-top: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--token-08);
  background: var(--primary-100);
  color: white;
  padding: var(--token-16) var(--token-24);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: all 0.3s ease;
  margin-top: var(--token-24);
}

.cta-button:hover {
  background: var(--primary-80);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(96, 165, 250, 0.3);
}

/* Clients Section */
.clients-section {
  padding: var(--token-48) 0;
  background: var(--grey-10);
  border-bottom: 1px solid var(--border-color);
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--token-32);
  margin-bottom: var(--token-24);
  align-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.clients-section .logo {
  font-size: var(--font-size-sm);
  font-weight: var(--fw-semibold);
  color: var(--grey-60);
  text-align: center;
  padding: var(--token-12);
  border-radius: var(--radius-sm);
  transition: color 0.3s ease;
}

.clients-section .logo:hover {
  color: var(--grey-90);
}

.clients-text {
  text-align: center;
  color: var(--grey-70);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Features Section */
.features-section {
  padding: var(--token-80) 0;
  background: var(--bg-body);
}

.features-header {
  text-align: center;
  margin-bottom: var(--token-48);
}

.features-header h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--fw-bold);
  color: var(--grey-100);
  margin: 0 auto;
  max-width: 800px;
  line-height: var(--line-height-tight);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--token-32);
  max-width: 1400px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: var(--token-24);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-40);
  box-shadow: 0 8px 32px rgba(96, 165, 250, 0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--token-12);
}

.feature-label {
  font-size: var(--font-size-sm);
  font-weight: var(--fw-medium);
  color: var(--grey-90);
}

/* Solutions Section */
.solutions-section {
  padding: var(--token-80) 0;
  background: var(--grey-10);
  z-index: 2;
  position: relative;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 56px;
  max-width: 1300px;
  margin: 0 auto;
  box-sizing: border-box;
}

.solution-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--token-32);
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .10), 0 2px 10px rgba(15, 23, 42, .06);
  transition: .2s cubic-bezier(.4,.5,.1,1.1);
}

.solution-card:hover {
  box-shadow: 0 18px 54px rgba(15, 23, 42, .12), 0 6px 18px rgba(15, 23, 42, .08);
  border-color: var(--primary-40);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-100), var(--secondary));
}

.solution-header h3 {
  font-size: var(--font-size-base);
  font-weight: var(--fw-medium);
  color: var(--primary-100);
  margin: 0 0 var(--token-08) 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.solution-header h2 {
  font-size: var(--font-size-h3);
  font-weight: var(--fw-bold);
  color: var(--grey-100);
  margin: 0 0 var(--token-16) 0;
  line-height: var(--line-height-tight);
}

.solution-card p {
  color: var(--grey-70);
  line-height: var(--line-height-normal);
  margin-bottom: var(--token-24);
}

.learn-more {
  color: var(--primary-100);
  text-decoration: none;
  font-weight: var(--fw-medium);
  display: inline-block;
  margin-bottom: var(--token-24);
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: var(--primary-80);
}

.solution-visual {
  margin-top: var(--token-24);
}

.mockup-cards {
  display: flex;
  gap: var(--token-12);
  align-items: center;
}

.mockup-card {
  background: var(--grey-20);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--token-12) var(--token-16);
  font-size: var(--font-size-sm);
  font-weight: var(--fw-medium);
  color: var(--grey-80);
  text-align: center;
  min-width: 80px;
}

.tech-logos {
  display: flex;
  gap: var(--token-16);
  align-items: center;
  flex-wrap: wrap;
}

.tech-logo {
  background: var(--primary-20);
  border: 1px solid var(--primary-40);
  border-radius: var(--radius-sm);
  padding: var(--token-08) var(--token-12);
  font-size: var(--font-size-xs);
  font-weight: var(--fw-semibold);
  color: var(--primary-100);
  text-align: center;
}

/* Final CTA Section */
.final-cta {
  padding: var(--token-80) 0;
  background: linear-gradient(135deg, var(--primary-20), var(--secondary-20));
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--fw-bold);
  color: var(--grey-100);
  margin-bottom: var(--token-16);
  line-height: var(--line-height-tight);
}

.cta-content p {
  font-size: var(--font-size-base);
  color: var(--grey-70);
  margin-bottom: var(--token-32);
  line-height: var(--line-height-normal);
}

.cta-buttons {
  display: flex;
  gap: var(--token-16);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button.primary {
  background: var(--primary-100);
  color: white;
  border: none;
}

.cta-button.primary:hover {
  background: var(--primary-80);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(96, 165, 250, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: var(--grey-80);
  border: 1px solid var(--border-color);
}

.cta-button.secondary:hover {
  background: var(--grey-20);
  color: var(--grey-100);
  border-color: var(--primary-40);
}

/* Background Ornaments */
.ornament-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(ellipse at 10% 30%, #60a5fa50 0, #60a5fa09 58%, transparent 80%),
    radial-gradient(ellipse at 90% 70%, #a78bfa44 0, #a78bfa06 50%, transparent 92%);
  filter: saturate(110%) blur(6px) brightness(1.00);
  mix-blend-mode: normal;
  animation: ornament-fade 25s linear infinite alternate;
  opacity: .70;
}

.matrix-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #60a5fa 0, #2563eb33 75%, transparent 100%);
  border-radius: 100%;
  filter: blur(2.2px) brightness(1.12);
  animation: float2 9s ease-in-out infinite alternate;
}

.matrix-hex {
  position: absolute;
  width: 32px;
  height: 32px;
  background: repeating-linear-gradient(60deg, #a78bfa55 0 4px, transparent 4px 8px);
  border-radius: 8px;
  opacity: .47;
  filter: blur(2.5px);
  transform: rotate(20deg);
  animation: float3 12s ease-in-out infinite alternate;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes matrix-flow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

@keyframes ornament-fade {
  0% { opacity: .96; filter: blur(2px) saturate(130%); }
  100% { opacity: 1; filter: blur(6px) saturate(165%); }
}

@keyframes float2 {
  0% { transform: scale(.98) translateY(0); }
  100% { transform: scale(1.05) translateY(-28px); }
}

@keyframes float3 {
  0% { transform: rotate(16deg) scale(.97); }
  100% { transform: rotate(-14deg) scale(1.09); }
}

/* Responsive Design */
@media (max-width: 1060px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--token-16);
  }

  .hero {
    min-height: 80vh;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin: var(--token-48) auto 0;
    padding: 0 var(--token-16);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--token-16);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--token-20);
  }

  .banner-content {
    flex-direction: column;
    gap: var(--token-08);
    text-align: center;
  }

  .solution-card {
    padding: var(--token-24);
  }

  .solution-header h2 {
    font-size: var(--font-size-h4);
  }

  .mockup-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .tech-logos {
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}
