@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap");

/* =========================================
   VARIABLES
   ========================================= */
:root {
  --color-bg-dark: #0a0e17;
  --color-bg-alt: #121826;
  --color-surface-glass: rgba(18, 24, 38, 0.5);
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-text-main: #ffffff;
  --color-text-muted: #94a3b8;
  --color-brand-primary: #009CFF;
  --color-brand-secondary: #0056b3;
  --color-brand-orange: #FD551D;
  --gradient-main: linear-gradient(135deg, #009CFF 0%, #00e5ff 100%);
  --gradient-orange: linear-gradient(135deg, #FD551D 0%, #ff8933 100%);
  --gradient-text: linear-gradient(to right, #ffffff 0%, #94a3b8 100%);
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none; /* Custom cursor */
}

/* Restore native cursor inside form inputs */
input, textarea, select { cursor: auto; }

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

/* =========================================
   CUSTOM CURSOR
   ========================================= */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.2s ease;
  will-change: transform, left, top;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 156, 255, 0.55);
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, border-color 0.2s ease;
  will-change: left, top;
}

body.cursor-hover #cursor-dot {
  width: 14px; height: 14px;
  background: var(--color-brand-orange);
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(253, 85, 29, 0.45);
}
body.cursor-click #cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
}
body.cursor-click #cursor-ring {
  width: 26px; height: 26px;
  border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   THREE.JS CANVAS
   ========================================= */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* =========================================
   GRADIENT TEXT UTILITIES
   ========================================= */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.title-gradient-white {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 156, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 156, 255, 0.55);
}

/* The sheen shimmer — uses a real <span class="sheen-inner"> in DOM,
   absolutely positioned inside the button. JS drives it on hover. */
.sheen-inner {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  /* JS will set left: 160% on hover via transition */
  transition: left 0s; /* JS overrides this */
}

.btn-outline {
  border: 2px solid var(--color-brand-primary);
  background: transparent;
  color: var(--color-text-main);
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.btn-outline:hover {
  background: var(--color-brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 156, 255, 0.35);
}
.btn-outline-orange { border-color: var(--color-brand-orange); }
.btn-outline-orange:hover {
  background: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  box-shadow: 0 8px 24px rgba(253, 85, 29, 0.4);
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 9999;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-dark);
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.header-container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}

.logo img { height: 38px; display: block; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--color-brand-orange); }

/* Header login button — smaller than hero buttons */
.header .btn-primary {
  padding: 9px 22px;
  font-size: 14px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 6px;
  border: none;
  background: transparent;
  z-index: 10001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 130px;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
}

.hero-bg-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100vh;
  background: linear-gradient(180deg, transparent 50%, var(--color-bg-dark) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6.5vw, 86px);
  line-height: 1.08;
  margin: 0 0 24px;
  font-weight: 800;
  /* Start hidden for reveal animation */
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  /* Start hidden */
  opacity: 0;
  transform: translateY(20px);
}

.video-container {
  width: 100%;
  max-width: 980px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  /* Start hidden */
  opacity: 0;
  transform: translateY(40px) scale(0.97);
}
.video-container video {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-section {
  width: 100%;
  overflow: hidden;
  background: #020408;
  padding: 36px 0;
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
}
.marquee-wrap {
  display: flex;
  white-space: nowrap;
  width: fit-content;
}
.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  padding-right: 50px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 70px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}
.marquee-content .filled-orange {
  color: var(--color-brand-orange);
  -webkit-text-stroke: 0;
}
.marquee-content .filled-blue {
  color: var(--color-brand-primary);
  -webkit-text-stroke: 0;
}

/* =========================================
   SECTIONS & CONTAINERS
   ========================================= */
.section { padding: 120px 20px; }
.container { max-width: 1300px; margin: 0 auto; }
.text-center { text-align: center; }

/* =========================================
   REVEAL SYSTEM
   Initial hidden states for JS animations.
   JS removes these / animates in on scroll.
   ========================================= */
.reveal-on-scroll[data-reveal="fade"] {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-on-scroll[data-reveal="words"] {
  opacity: 0;
  transform: translateY(20px);
}
/* Cards start invisible and slightly shifted */
.reveal-on-scroll[data-reveal="card"] {
  opacity: 0;
  transform: translateY(44px);
}
/* After JS runs it marks revealed */
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
}

/* =========================================
   FEATURE CARDS
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr));
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-dark);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s, box-shadow 0.35s;
  min-width: 0;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(30,41,59,0.5) 0%, rgba(15,23,42,0.8) 100%);
}
.icon-box {
  width: 60px; height: 60px;
  background: rgba(0, 156, 255, 0.1);
  color: var(--color-brand-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.3;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.7;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px; height: 34px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: none;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg-alt);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 34px;
  transition: 0.3s;
}
.slider::before {
  position: absolute;
  content: "";
  height: 24px; width: 24px;
  left: 3px; bottom: 3px;
  background: var(--color-brand-orange);
  border-radius: 50%;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 10px rgba(253,85,29,0.6);
}
input:checked + .slider::before {
  transform: translateX(26px);
  background: var(--color-brand-primary);
  box-shadow: 0 0 10px rgba(0,156,255,0.6);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
  gap: 28px;
  align-items: stretch;
}
.pricing-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-dark);
  padding: 40px 32px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  overflow: visible; /* allow .tag-popular to show above card */
  min-width: 0;
}
.pricing-card:hover { border-color: rgba(255,255,255,0.18); }
.pricing-card.popular {
  border-color: var(--color-brand-primary);
  background: linear-gradient(180deg, rgba(0,156,255,0.08) 0%, rgba(18,24,38,0.95) 100%);
  transform: scale(1.04);
  z-index: 5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.pricing-card.card-orange-accent { border-color: rgba(253,85,29,0.3); }

.tag-popular {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: #fff;
  padding: 5px 22px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,156,255,0.35);
  z-index: 6;
}

.price-title {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0 10px;
}
.price {
  font-size: clamp(32px, 4.5vw, 50px);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1;
}
.price span.small {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.price-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}
.features-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  flex-grow: 1;
}
.features-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.5;
}
.features-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-brand-primary);
  font-size: 13px;
  top: 2px;
}
.pricing-card.card-orange-accent .features-list li::before { color: var(--color-brand-orange); }
.features-list li.neg { color: var(--color-text-muted); text-decoration: line-through; }
.features-list li.neg::before { content: "\f00d"; color: rgba(255,255,255,0.2); }

/* =========================================
   STATS
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
  gap: 28px;
  text-align: center;
}
.stat-glass {
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-number {
  font-size: clamp(36px, 4.5vw, 60px);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1;
}
.stat-title {
  font-size: 15px;
  color: var(--color-text-main);
  font-weight: 600;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
  gap: 28px;
  margin-top: 56px;
}
.testimonial-card {
  background: var(--color-bg-alt);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-dark);
  min-width: 0;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.testimonial-card > i {
  font-size: 36px;
  color: rgba(0,156,255,0.18);
  margin-bottom: 20px;
  display: block;
}
.testimonial-text {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.75;
}
.testimonial-author { font-weight: 800; font-size: 17px; color: #fff; }
.testimonial-role { font-size: 13px; color: var(--color-brand-primary); font-weight: 500; margin-top: 3px; }

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,156,255,0.08) 0%, rgba(253,85,29,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--color-border-dark);
  padding: 80px 20px 30px;
  background: #04060a;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr));
  gap: 48px;
  margin-bottom: 60px;
}
.footer-col h3 { margin: 0 0 20px; color: #fff; font-size: 18px; }
.footer-col p, .footer-col a {
  color: var(--color-text-muted);
  line-height: 2;
  display: block;
  font-size: 14px;
}
.footer-col a:hover { color: var(--color-brand-orange); }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-surface-glass);
  margin-right: 10px;
  transition: background 0.3s, transform 0.3s;
}
.social-links a:hover {
  background: var(--color-brand-primary);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-dark);
  color: var(--color-text-muted);
  font-size: 13px;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
}

@media (max-width: 990px) {
  .pricing-card.popular { transform: none; }
  .pricing-grid { max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  /* Mobile nav dropdown */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-dark);
    z-index: 9998;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a {
    padding: 15px 32px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .hamburger { display: flex; }
  .header .btn-primary { padding: 8px 16px; font-size: 13px; }

  /* Hero */
  .hero { padding-top: 100px; padding-left: 16px; padding-right: 16px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons a { width: 100%; max-width: 340px; }

  /* Sections */
  .section { padding: 80px 16px; }
  .marquee-content { font-size: 32px; }
  .cta-banner { padding: 50px 20px; }
  .cta-banner h2 { font-size: 28px !important; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .pricing-card { padding: 36px 24px 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-glass { padding: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:last-child { text-align: left !important; }
}
