:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-elevated: #1e1e2a;
  --border: #252535;
  --border-hover: #35354a;
  --text-primary: #ededf0;
  --text-secondary: #8585a0;
  --text-muted: #55556a;
  --accent: #4a6cf7;
  --accent-light: #6b8cff;
  --accent-dim: rgba(74, 108, 247, 0.12);
  --accent-glow: rgba(74, 108, 247, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Scroll animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  padding: 0.75rem 2rem;
  border-bottom-color: var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand span {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 40% at 50% 0%,
      rgba(74, 108, 247, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(74, 108, 247, 0.05) 0%,
      transparent 40%
    );
  animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

#heroCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Floating dots for sections */
.section-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-dots span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: floatDot linear infinite;
}

.section-dots span:nth-child(1) {
  left: 8%;
  top: 20%;
  animation-duration: 18s;
  animation-delay: 0s;
}
.section-dots span:nth-child(2) {
  left: 22%;
  top: 60%;
  animation-duration: 22s;
  animation-delay: 2s;
}
.section-dots span:nth-child(3) {
  left: 40%;
  top: 35%;
  animation-duration: 16s;
  animation-delay: 4s;
}
.section-dots span:nth-child(4) {
  left: 55%;
  top: 75%;
  animation-duration: 20s;
  animation-delay: 1s;
}
.section-dots span:nth-child(5) {
  left: 70%;
  top: 15%;
  animation-duration: 24s;
  animation-delay: 3s;
}
.section-dots span:nth-child(6) {
  left: 85%;
  top: 50%;
  animation-duration: 19s;
  animation-delay: 5s;
}
.section-dots span:nth-child(7) {
  left: 15%;
  top: 85%;
  animation-duration: 21s;
  animation-delay: 6s;
}
.section-dots span:nth-child(8) {
  left: 92%;
  top: 30%;
  animation-duration: 17s;
  animation-delay: 2.5s;
}

@keyframes floatDot {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  15% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.15;
    transform: translateY(-30px) translateX(15px);
  }
  85% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 50%,
    #8b5cf6 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* --- Sections --- */
section {
  padding: 5rem 2rem;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* --- Services --- */
#services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card .click-indicator {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover .click-indicator {
  opacity: 0.5;
}

.service-card .click-indicator svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-secondary);
  fill: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.service-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Packages --- */
#packages {
  background: var(--bg-primary);
}

.package-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

.package-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 16px 48px rgba(0, 0, 0, 0.3);
}

.package-card .click-indicator {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.package-card:hover .click-indicator {
  opacity: 0.5;
}

.package-card .click-indicator svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-secondary);
  fill: none;
}

.package-inner {
  position: relative;
  z-index: 1;
}

.package-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.package-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.package-price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
}

.package-price .period {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.package-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.package-features {
  list-style: none;
  margin-bottom: 2rem;
}

.package-features li {
  padding: 0.6rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features li svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.package-cta {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.package-cta:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* --- AI Agents --- */
#ai-agents {
  background: var(--bg-secondary);
}

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

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.ai-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ai-card .click-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ai-card:hover .click-indicator {
  opacity: 0.5;
}

.ai-card .click-indicator svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-secondary);
  fill: none;
}

.ai-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ai-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.ai-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ai-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Contact --- */
#contact {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.contact-method:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.contact-method svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-submit:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand span {
  font-weight: 600;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  padding: 2rem;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: modalIn 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.modal-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Language Toggle --- */
.lang-toggle {
  background: var(--accent-dim);
  padding: 0.3rem 0.7rem !important;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent) !important;
  background: var(--accent-dim);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.75rem;
    margin: 1rem;
  }

  .modal-header h3 {
    font-size: 1.3rem;
  }

  .nav-links {
    display: none;
  }

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

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

  .package-card {
    padding: 1.75rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

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

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