:root {
  --bg: #0a0e27;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-alt: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --muted: #9ba3b4;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #00d9ff;
  --brand-strong: #00a8cc;
  --accent: #7c3aed;
  --accent-strong: #a855f7;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --glow: 0 0 40px rgba(0, 217, 255, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at top, #1a1f3a 0%, #0a0e27 50%, #000000 100%);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3 {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.bg-gradient-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, #667eea 0%, transparent 70%);
  animation-delay: 0s;
}

.bg-gradient-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, #f093fb 0%, transparent 70%);
  animation-delay: 7s;
}

.bg-gradient-3 {
  width: 450px;
  height: 450px;
  top: 40%;
  right: 30%;
  background: radial-gradient(circle, #4facfe 0%, transparent 70%);
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 14, 39, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
}

.brand-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--gradient-3);
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.hero {
  padding: 7rem 0 4rem;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.hero-copy,
.hero-panel {
  border-radius: 28px;
  padding: clamp(1.8rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.6;
}

.kicker {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
}

.animated-gradient {
  background: linear-gradient(270deg, var(--brand), var(--accent-strong), var(--brand));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 20ch;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted);
  max-width: 55ch;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--brand) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.shine-effect {
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20%, 100% { left: 100%; }
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: rgba(0, 217, 255, 0.1);
}

.hero-panel h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 1.2rem;
}

.checkmark-list {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.checkmark-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.checkmark-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
  font-size: 1.2rem;
}

.highlight-text {
  padding: 1rem;
  background: rgba(0, 217, 255, 0.1);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  font-weight: 600;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-accent {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 24ch;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.solution,
.price-card,
.timeline-item {
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s ease;
}

.hover-lift {
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
}

.card-icon,
.solution-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3,
.solution h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card ul,
.price-card ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--muted);
}

.card ul li,
.price-card ul li {
  margin-bottom: 0.5rem;
}

.solution {
  border-left: 4px solid transparent;
  border-image: var(--gradient-3);
  border-image-slice: 1;
}

.timeline {
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
  display: grid;
  gap: 2rem;
  position: relative;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 20px var(--brand);
}

.price-card {
  position: relative;
}

.price-card.highlight {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
  transform: scale(1.05);
}

.price-card.highlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--accent-strong));
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(0, 217, 255, 0.1);
}

.price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  margin: 0.8rem 0 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tech-cloud span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-cloud span:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.cta-final .container {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 217, 255, 0.2));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.cta-final p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-wrap a {
  color: var(--brand);
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-wrap a:hover {
  color: var(--accent-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: reveal-fallback 0.8s ease 1s forwards;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.js-loaded .reveal {
  animation: none;
}

@media (max-width: 1040px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .price-card.highlight {
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cards-3,
  .cards-2,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-wrap {
    justify-content: center;
    min-height: 70px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .container {
    width: calc(100% - 2rem);
  }

  .hero-copy,
  .hero-panel {
    padding: 1.5rem;
  }
}
