/* ==================== VARIABLES & RESET ==================== */
:root {
  --primary: #6D3CF2;
  --primary-light: #C084FC;
  --primary-dark: #4C1D95;
  --secondary: #F5F3FF;
  --dark: #0F0A1F;
  --dark-light: #1A1525;
  --text: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --shadow: 0 10px 40px rgba(109, 60, 242, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, Space Grotesk, 'Space Grotesk', Space Grotesk, Space Grotesk;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==================== UTILITIES ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(109, 60, 242, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 60, 242, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 10, 31, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.logo--footer {
  font-size: 24px;
  margin-bottom: 8px;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(109, 60, 242, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.dashboard-card__dots {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.dashboard-card__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-card__icon {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.dashboard-card__icon svg {
  width: 100%;
  height: 100%;
  max-width: 260px;
}

.dashboard-card__bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-card__bars span {
  height: 8px;
  background: rgba(109, 60, 242, 0.3);
  border-radius: 4px;
  transition: width 1s ease;
}

.stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gradient);
  padding: 24px 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(109, 60, 242, 0.3);
  animation: float 3s ease-in-out infinite;
}

.stat-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.stat-card__number {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ==================== TRUSTED SECTION ==================== */
.trusted {
  background: var(--white);
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trusted__label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 32px;
}

.trusted__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trusted__logo {
  padding: 16px 32px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-light);
  font-size: 15px;
  transition: var(--transition);
}

.trusted__logo:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==================== FEATURES SECTION ==================== */
.features {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--white) 100%);
  padding: 100px 0;
}

.features h2 {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--dark);
  letter-spacing: -1px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 60px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(109, 60, 242, 0.15);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.feature-card__icon--idea {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card__icon--bolt {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-card__icon--circuit {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 15px;
}

/* ==================== STATS SECTION ==================== */
.stats {
  background: var(--dark);
  padding: 80px 0;
}

.stats__grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat__number {
  font-size: 56px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat__label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat__divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -1px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand {
  max-width: 300px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  transition: var(--transition);
}

.footer__col a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

.footer__copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 992px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .dashboard-card {
    max-width: 380px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .stats__grid {
    flex-direction: column;
    gap: 40px;
  }

  .stat__divider {
    width: 60px;
    height: 1px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .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(7px, -6px);
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero__desc {
    font-size: 16px;
  }

  .dashboard-card {
    padding: 24px;
  }

  .stat-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 24px;
    animation: none;
  }

  .features h2,
  .cta-banner h2 {
    font-size: 28px;
  }

  .section-sub {
    font-size: 15px;
  }

  .stat__number {
    font-size: 42px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    max-width: 100%;
  }

  .trusted__logos {
    gap: 12px;
  }

  .trusted__logo {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .hero__cta {
    flex-direction: column;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .stat-card {
    padding: 20px 24px;
  }

  .stat-card__number {
    font-size: 28px;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy,
.feature-card,
.stat,
.trusted__logo {
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==================== LOGO ANIMATIONS ==================== */

/* Container animation - subtle floating */
.dashboard-card__icon {
  animation: logoFloat 6s ease-in-out infinite;
}

/* Main G circle - pulse glow */
.dashboard-card__icon svg path:first-child {
  animation: logoPulse 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(109, 60, 242, 0.5));
}

/* Lightning bolt - energy animation */
.dashboard-card__icon svg path:last-child {
  animation: lightningStrike 3s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Floating animation */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* Pulse glow effect */
@keyframes logoPulse {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(109, 60, 242, 0.5)) 
            drop-shadow(0 0 40px rgba(109, 60, 242, 0.3));
  }
  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 30px rgba(109, 60, 242, 0.7)) 
            drop-shadow(0 0 60px rgba(192, 132, 252, 0.5));
  }
}

/* Lightning strike effect */
@keyframes lightningStrike {
  0%, 100% {
    opacity: 1;
    transform: scale(1) skewX(0deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }
  10% {
    opacity: 0.8;
    transform: scale(0.98) skewX(-2deg);
  }
  20% {
    opacity: 1;
    transform: scale(1.02) skewX(2deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 45px rgba(109, 60, 242, 0.8));
  }
  30% {
    opacity: 1;
    transform: scale(1) skewX(0deg);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.01) skewX(-1deg);
  }
  70% {
    opacity: 1;
    transform: scale(0.99) skewX(1deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 25px rgba(192, 132, 252, 0.5));
  }
}

/* Enhanced glow on hover */
.hero__visual:hover .dashboard-card__icon svg path:first-child {
  animation: logoPulseHover 2s ease-in-out infinite;
}

.hero__visual:hover .dashboard-card__icon svg path:last-child {
  animation: lightningStrikeHover 1.5s ease-in-out infinite;
}

@keyframes logoPulseHover {
  0%, 100% {
    filter: drop-shadow(0 0 25px rgba(109, 60, 242, 0.7)) 
            drop-shadow(0 0 50px rgba(109, 60, 242, 0.5))
            drop-shadow(0 0 75px rgba(192, 132, 252, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(109, 60, 242, 0.9)) 
            drop-shadow(0 0 70px rgba(192, 132, 252, 0.7))
            drop-shadow(0 0 105px rgba(192, 132, 252, 0.5));
  }
}

@keyframes lightningStrikeHover {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 60px rgba(109, 60, 242, 1));
  }
}

/* Add subtle rotation to the entire card on load */
.dashboard-card {
  animation: cardEntrance 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

@keyframes cardEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stagger the stat card entrance */
.stat-card {
  animation: statCardEntrance 1s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes statCardEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: reduce motion for mobile */
@media (max-width: 768px) {
  .dashboard-card__icon {
    animation: logoFloat 8s ease-in-out infinite;
  }
  
  .dashboard-card__icon svg path:first-child {
    animation: logoPulse 5s ease-in-out infinite;
  }
  
  .dashboard-card__icon svg path:last-child {
    animation: lightningStrike 4s ease-in-out infinite;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .dashboard-card__icon,
  .dashboard-card__icon svg path,
  .dashboard-card,
  .stat-card {
    animation: none;
  }
  
  .dashboard-card__icon svg path:first-child {
    filter: drop-shadow(0 0 15px rgba(109, 60, 242, 0.4));
  }
  
  .dashboard-card__icon svg path:last-child {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  }
}