/* ============================================
   SAADI SOFTWARES — Global Stylesheet
   Theme: Futuristic SaaS / Neon-Glass
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Core palette */
  --neon:        #00e676;
  --neon-dim:    #00c853;
  --blue:        #2979ff;
  --blue-light:  #82b1ff;
  --accent:      #ffd740;
  --danger:      #ff5252;

  /* Dark theme (default) */
  --bg-primary:     #0a0e17;
  --bg-secondary:   #111827;
  --bg-card:        rgba(17, 24, 39, .72);
  --bg-glass:       rgba(255,255,255,.04);
  --border-glass:   rgba(255,255,255,.08);
  --text-primary:   #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --shadow-card:    0 8px 32px rgba(0,0,0,.45);
  --shadow-glow:    0 0 40px rgba(0,230,118,.12);
  --hero-gradient:  radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,230,118,.13) 0%, transparent 60%),
                    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(41,121,255,.10) 0%, transparent 50%),
                    linear-gradient(180deg, #0a0e17 0%, #111827 100%);
  --nav-bg:         rgba(10, 14, 23, .82);
  --badge-available-bg:   rgba(0,230,118,.14);
  --badge-available-text: #00e676;
  --badge-soon-bg:        rgba(255,215,64,.12);
  --badge-soon-text:      #ffd740;
  --divider:        rgba(255,255,255,.06);
  --footer-bg:      #080c14;
  --input-bg:       rgba(255,255,255,.05);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-primary:     #f8fafc;
  --bg-secondary:   #ffffff;
  --bg-card:        rgba(255,255,255,.85);
  --bg-glass:       rgba(255,255,255,.7);
  --border-glass:   rgba(0,0,0,.07);
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --shadow-card:    0 8px 32px rgba(0,0,0,.08);
  --shadow-glow:    0 0 40px rgba(0,200,83,.08);
  --hero-gradient:  radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,200,83,.10) 0%, transparent 60%),
                    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(41,121,255,.07) 0%, transparent 50%),
                    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  --nav-bg:         rgba(248, 250, 252, .88);
  --badge-available-bg:   rgba(0,200,83,.10);
  --badge-available-text: #00913e;
  --badge-soon-bg:        rgba(255,193,7,.12);
  --badge-soon-text:      #b28600;
  --divider:        rgba(0,0,0,.06);
  --footer-bg:      #0f172a;
  --input-bg:       rgba(0,0,0,.04);
  --neon:           #00c853;
  --blue:           #1565c0;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Animated BG Mesh ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--hero-gradient);
  transition: background .5s ease;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(0,230,118,.07) 0%, transparent 70%);
  animation: meshFloat 18s ease-in-out infinite alternate;
}
.bg-mesh::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(41,121,255,.07) 0%, transparent 70%);
  animation: meshFloat 22s ease-in-out infinite alternate-reverse;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* All page content sits above the mesh */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border-glass);
  transition: background .4s ease;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.nav-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--neon), var(--blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--neon);
  border-radius: 2px;
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--neon); }
.nav-links a:hover::after { width: 100%; }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: var(--bg-glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: background .3s, border-color .3s, transform .2s;
}
.theme-toggle:hover {
  background: var(--neon);
  color: #0a0e17;
  border-color: var(--neon);
  transform: scale(1.08);
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-content { max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--neon);
  background: rgba(0,230,118,.08);
  border: 1px solid rgba(0,230,118,.18);
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeSlideUp .8s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--neon);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  animation: fadeSlideUp .8s .1s ease both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--neon) 0%, var(--blue) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  animation: fadeSlideUp .8s .2s ease both;
}
.hero-desc {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  animation: fadeSlideUp .8s .3s ease both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp .8s .4s ease both;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .3s, background .3s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--neon), #00b060);
  color: #0a0e17;
  box-shadow: 0 4px 24px rgba(0,230,118,.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(0,230,118,.4);
}
.btn-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--neon);
  box-shadow: 0 4px 20px rgba(0,230,118,.12);
}

.btn-cta {
  background: linear-gradient(135deg, var(--neon), var(--blue));
  color: #fff;
  font-size: 1rem;
  padding: 16px 40px;
  box-shadow: 0 6px 30px rgba(0,230,118,.3);
}
.btn-cta:hover {
  box-shadow: 0 10px 50px rgba(0,230,118,.45);
}

/* ---------- SECTION ---------- */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--neon);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- PRODUCT CARDS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,230,118,.0), rgba(41,121,255,.0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background .4s;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0,230,118,.18);
}
.product-card:hover::before {
  background: linear-gradient(135deg, rgba(0,230,118,.25), rgba(41,121,255,.18));
}

.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.product-thumb .placeholder-icon {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.product-body {
  padding: 20px;
}
.product-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-body p {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: .02em;
}
.badge-available {
  background: var(--badge-available-bg);
  color: var(--badge-available-text);
}
.badge-soon {
  background: var(--badge-soon-bg);
  color: var(--badge-soon-text);
}

.product-price {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- ABOUT ---------- */
.about-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.about-tag {
  padding: 8px 20px;
  font-size: .82rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: border-color .3s, color .3s;
}
.about-tag:hover {
  border-color: var(--neon);
  color: var(--neon);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--footer-bg);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f4f8;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: .88rem;
  color: #94a3b8;
  line-height: 1.7;
}
.footer h4 {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: .88rem;
  color: #94a3b8;
  transition: color .25s;
}
.footer-links a:hover { color: var(--neon); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: .8rem;
  color: #64748b;
}

/* ---------- VIDEO HERO (Product Page) ---------- */
.video-hero {
  padding: 120px 24px 60px;
  text-align: center;
}
.video-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.video-hero .hero-tagline {
  margin-bottom: 40px;
}

.video-container {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,.4), 0 0 60px rgba(0,230,118,.08);
  border: 1px solid var(--border-glass);
  background: #000;
  position: relative;
  aspect-ratio: 16/9;
}
[data-theme="light"] .video-container {
  box-shadow: 0 12px 60px rgba(0,0,0,.15), 0 0 40px rgba(0,200,83,.06);
}
.video-container iframe {
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- FEATURE SECTIONS ---------- */
.feature-section {
  padding: 80px 0;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
}
.feature-row.reverse { flex-direction: row-reverse; }

.feature-image {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  background: var(--bg-secondary);
}
.feature-image img {
  width: 100%;
  display: block;
  transition: transform .5s ease;
}
.feature-image:hover img { transform: scale(1.03); }

.feature-text {
  flex: 1;
}
.feature-text h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.feature-text p {
  font-size: .98rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- PRICING ---------- */
.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s, box-shadow .35s;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--blue), var(--accent));
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--neon);
  margin-bottom: 8px;
}
.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.pricing-amount {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-period {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 36px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: .9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check {
  width: 22px; height: 22px;
  background: rgba(0,230,118,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: var(--neon);
  flex-shrink: 0;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-glass);
    animation: fadeSlideUp .3s ease;
  }
  .nav-hamburger { display: flex; }

  .hero { min-height: auto; padding: 130px 20px 60px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .pricing-card { padding: 36px 24px; }
  .pricing-amount { font-size: 2.6rem; }

  .section { padding: 60px 0; }
  .video-hero { padding: 100px 16px 40px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}
