/* Reset & base */
:root {
  --bg: #060710;
  --text: #e6eef8;
  --muted: #98a3b3;
  --glass: rgba(255, 255, 255, 0.03);
  --blue: #007BFF;
  --pink: #FF00FF;
  --radius: 14px;
  --gradient: linear-gradient(135deg, var(--blue), var(--pink));
  --transition: 300ms cubic-bezier(.2, .9, .3, 1);
}

* {
  box-sizing: border-box;
}

/* 🌙 Dark theme overrides */
body.theme-dark {
  --bg: #060710;
  --text: #e6eef8;
  --muted: #98a3b3;
  --glass: rgba(255, 255, 255, 0.03);
  /* background: radial-gradient(circle at center, #071026, #03040a); */
  background: radial-gradient(circle at center, #220742, #0a030a);
  color: var(--text);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

/* 🌞 Light theme */
body.theme-light {
  --bg: #f5f7fa;
  --text: #1b1b1f;
  --muted: #5a5a65;
  --glass: rgba(0, 0, 0, 0.05);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(0, 123, 255, 0.08), transparent),
              radial-gradient(900px 500px at 90% 90%, rgba(255, 0, 255, 0.06), transparent);
  color: var(--text);
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  transition: background var(--transition);
}

body.theme-dark .navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

body.theme-light .navbar {
  background: rgba(255, 255, 255, 0.6);
}

.nav-inner {
  /* max-width: 1200px; */
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-glow {
  font-weight: 700;
  letter-spacing: 0.6px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all var(--transition);
}

.nav-links a:hover {
  background: var(--glass);
}

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

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 12px;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn.primary {
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: white;
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.12);
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn.large {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 14px;
}

.btn.tiny {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 10px;
}

.btn.confirm {
  background: linear-gradient(90deg, #ff4dbb, #6d8bff);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: var(--glass);
  cursor: pointer;
}

.theme-toggle .sun {
  display: inline-block;
}

.theme-toggle .moon {
  display: none;
}

body.theme-dark .theme-toggle .sun {
  display: none;
}

body.theme-dark .theme-toggle .moon {
  display: inline-block;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 64px 64px;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 640px;
  z-index: 2;
}

.headline {
  font-size: 36px;
  margin: 0 0 10px;
  line-height: 1.02;
  letter-spacing: -0.6px;
}

.subhead {
  color: var(--muted);
  margin: 0 0 20px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Visuals */
.hero-visual {
  flex: 1;
  min-width: 320px;
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.device-mockup {
  width: 360px;
  height: 220px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  /* padding: 14px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-card {
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.12), rgba(255, 0, 255, 0.06));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.glowing {
  animation: float 6s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 56px 20px;
}

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

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-card {
  background: var(--glass);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  gap: 12px;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.feature-meta {
  flex: 1;
}

.feature-title {
  font-weight: 700;
  margin: 0;
}

.feature-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* free vs premium styles */
.feature-free .feature-icon {
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.12), rgba(0, 123, 255, 0.06));
  box-shadow: 0 6px 24px rgba(0, 123, 255, 0.08);
}

.feature-premium .feature-icon {
  background: linear-gradient(90deg, rgba(255, 0, 255, 0.12), rgba(109, 139, 255, 0.08));
  box-shadow: 0 8px 28px rgba(255, 0, 255, 0.08);
}

.pill {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.price-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.price-badge {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  color: var(--muted);
}

.price-actions {
  display: none;
  /* display: flex; */
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.price-card.featured {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.06), rgba(0, 123, 255, 0.04));
  border: 1px solid rgba(255, 0, 255, 0.12);
}

.price-card .ribbon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(90deg, #ff6bd4, #6d8bff);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(109, 139, 255, 0.12);
}

/* 🌙 Footer */
.footer {
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 40px;
  overflow-x: hidden; /* Prevents accidental horizontal scroll */
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer-left {
  flex: 1 1 250px;
  min-width: 250px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: flex-start;
}

.footer-links a {
  white-space: nowrap;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* 📱 Responsive (Mobile < 768px) */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* reduce gap between elements */
  }

  .socials {
    justify-content: center;
    margin-top: 5px;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 5px; /* smaller space above Terms & Privacy */
  }

  /* Specifically keep Terms + Privacy on same centered row */
  .footer-links a:nth-child(1),
  .footer-links a:nth-child(2) {
    flex: 0 1 auto;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 12, 0.6);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(880px, 92%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: 12px;
  padding: 18px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.video-placeholder {
  height: 420px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.06), rgba(255, 0, 255, 0.04));
  color: var(--muted);
}

/* Small tweaks & animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (max-width:880px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 36px 16px;
  }

  .headline {
    font-size: 28px;
  }

  .hero-visual {
    height: 240px;
  }

  .nav-actions .btn.primary {
    display: none;
  }
}

/* slightly increase readability and space for longer descriptions */
.read-more {
  margin-top: 8px;
  background: transparent;
  border: 0;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  border-radius: 8px;
  margin: 0px auto;
}

.feature-meta .read-more:focus {
  outline: 2px solid rgba(0, 123, 255, 0.12);
  outline-offset: 3px;
}

.feature-desc {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease-out;
}

.feature-desc.expanded {
  opacity: 1;
}

.theme-icon {
  display: none;
}

body.theme-light .theme-icon.light {
  display: inline-flex;
}

body.theme-dark .theme-icon.dark {
  display: inline-flex;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  /* background: radial-gradient(circle at center, #050510, #000);  */
  /* background: linear-gradient(180deg, #03040a 0%, #071026 60%); */
}
