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

:root {
  color-scheme: dark;
  --bg: #070b1d;
  --bg-alt: #0b1130;
  --primary: #6c63ff;
  --secondary: #19d4ff;
  --text: #f7f8ff;
  --muted: #b5bddb;
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(9, 16, 42, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #14205c 0%, var(--bg) 35%);
  color: var(--text);
  line-height: 1.6;
}

body.is-loading {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.intro-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(20, 32, 92, 0.95), var(--bg));
  display: grid;
  place-items: center;
  gap: 16px;
  z-index: 100;
  opacity: 1;
  transition: opacity 1.2s ease 0.6s, visibility 0s linear 1.8s;
}

.intro-loader p {
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.loader-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--primary), var(--secondary));
  animation: spin 2.8s linear infinite, pulseGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(108, 99, 255, 0.6));
}

body.loaded .intro-loader {
  opacity: 0;
  visibility: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 29, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(8, 14, 36, 0.45);
}

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

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

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

.nav .nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
}

.hero {
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.portfolio-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.45);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.hero-stats strong {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 4px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.glow-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.6), transparent 70%);
  filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.glass-panel {
  width: min(380px, 90%);
  background: var(--glass);
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff6b6b;
}

.dot-yellow {
  background: #ffd93d;
}

.dot-green {
  background: #4cd964;
}

.panel-body {
  display: grid;
  gap: 18px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
  border-radius: 16px;
}

.metric-card h3 {
  font-size: 1.8rem;
}

.trend {
  font-size: 0.85rem;
  color: #5dffb4;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini-chart span {
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(108, 99, 255, 0.8), transparent);
  animation: pulse 3s infinite ease-in-out;
}

.mini-chart span:nth-child(2) {
  height: 68px;
  animation-delay: 0.5s;
}

.mini-chart span:nth-child(3) {
  height: 40px;
  animation-delay: 1s;
}

.mini-chart span:nth-child(4) {
  height: 62px;
  animation-delay: 1.5s;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.floating-badge {
  position: absolute;
  bottom: -12px;
  right: 10%;
  background: linear-gradient(135deg, rgba(25, 212, 255, 0.7), rgba(108, 99, 255, 0.9));
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

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

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
}

.features {
  padding: 90px 0;
  background: var(--bg-alt);
}

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

.feature-card {
  background: var(--glass);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(8, 14, 36, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(8, 14, 36, 0.6);
}

.demo,
.testimonials,
.pricing {
  padding: 90px 0;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0.6;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.carousel-btn:hover {
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--secondary);
}

.demo-card,
.testimonial-card {
  background: var(--glass);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.demo-visual {
  margin-top: 24px;
  height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.4), rgba(25, 212, 255, 0.2));
  position: relative;
  overflow: hidden;
}

.demo-visual::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-visual-2 {
  background: linear-gradient(135deg, rgba(25, 212, 255, 0.5), rgba(255, 255, 255, 0.1));
}

.demo-visual-3 {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.6), rgba(255, 255, 255, 0.08));
}

.testimonial-card {
  text-align: center;
}

.testimonial-card p {
  margin: 18px 0 22px;
  color: var(--muted);
}

.stars {
  color: #ffd166;
  font-size: 1.2rem;
}

.reviewer span {
  font-weight: 600;
}

.reviewer small {
  display: block;
  color: var(--muted);
}

.pricing {
  background: var(--bg-alt);
}

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

.pricing-card {
  background: var(--glass);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(7, 11, 29, 0.6);
}

.pricing-card h3 {
  margin-bottom: 12px;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.price span {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 24px;
}

.pricing-card.recommended {
  border: 1px solid rgba(108, 99, 255, 0.6);
  transform: translateY(-10px);
  animation: pulseGlow 3s infinite ease-in-out;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(108, 99, 255, 0.9);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.signup {
  padding: 90px 0;
}

.signup-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.35), rgba(25, 212, 255, 0.2));
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signup-form input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 11, 29, 0.6);
  color: var(--text);
  min-width: 220px;
}

.signup-form button {
  padding: 14px 22px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.signup-form button:hover {
  transform: translateY(-2px);
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 12px 30px rgba(7, 11, 29, 0.5);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.4);
  }
  50% {
    box-shadow: 0 25px 55px rgba(25, 212, 255, 0.6);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 68px;
    right: 4%;
    flex-direction: column;
    background: rgba(7, 11, 29, 0.95);
    padding: 18px;
    border-radius: 16px;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 70px;
  }
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .signup-inner {
    padding: 28px;
  }

  .signup-form {
    width: 100%;
  }

  .signup-form input {
    flex: 1;
    min-width: unset;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }
}
