:root {
  --color-bg: #0f0f17;
  --color-primary: #ffb900;
  --color-text: #e0e0e6;
  --color-muted: #a0a0b2;
  --spacing: 1.5rem;
  --radius: 1rem;
  --transition: 0.2s ease-in-out;
  --glow-x: 50%;
  --glow-y: 50%;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

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

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(15, 15, 23, 0.9);
  backdrop-filter: blur(6px);
  padding: var(--spacing) 0;
  border-radius: 0 0 var(--radius) var(--radius); /* Rounded bottom corners */
  z-index: 1000;
}

/* Navigation Container */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo */
.nav__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
  user-select: none;
}

/* Navigation Links */
.nav__links {
  display: flex;
  gap: var(--spacing);
}

/* Link Styling */
.nav__links a {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition);
}

/* Underline animation on hover */
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a:focus {
  color: var(--color-primary);
  outline: none;
}

.nav__links a:hover::after,
.nav__links a:focus::after {
  width: 100%;
}

/* Button */
.btn {
  position: relative;
  background: transparent;
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  overflow: hidden;
  transition: color var(--transition);
}

/* Remove default button background */
.btn:hover,
.btn:focus {
  color: #fff;
  outline: none;
}

/* Underline animation for button */
.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.btn:hover::after,
.btn:focus::after {
  width: 100%;
}

section {
  padding: calc(var(--spacing) * 2) var(--spacing);
  margin-bottom: var(--spacing);
}
h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--spacing);
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  perspective: 1000px;
}
.hero__inner {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  border-radius: 20px;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}
.hero__content {
  position: relative;
  padding: 2rem;
}
.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero__subtitle {
  color: var(--color-muted);
  margin-bottom: var(--spacing);
}

/* Features */
.features__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing);
  justify-content: center;
  padding: var(--spacing);
  background: transparent; /* very dark background */
  border-radius: var(--radius);
}

.feature {
  flex: 1 1 300px;
  max-width: 300px;
  padding: calc(var(--spacing) * 1.2);
  background: #1f1f28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 8px rgba(72, 82, 255, 0.25),
    inset 0 0 10px rgba(72, 82, 255, 0.15);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cdd6f4; 
  min-height: 140px;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #4862ff; 
  box-shadow:
    0 0 20px #4862ff,
    0 10px 20px rgba(72, 98, 255, 0.4);
  background: #252538;
}

.feature svg {
  flex-shrink: 0;
  stroke: #a5b4fc;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  transition: stroke 0.3s ease;
}

.feature:hover svg {
  stroke: #cddbff;
}

.feature__title {
  font-size: 1.15rem;
  color: #82aaff; 
  margin-bottom: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.feature p {
  color: #a6adc8; /* muted light text */
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .feature {
    max-width: 100%;
  }
}


/* ---------- Pricing Section ---------- */
.pricing-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

/* Pricing Grid */
.pricing__grid {
  display: flex;
  flex-wrap: wrap; /* keep in one row */
  justify-content: center;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  align-items: stretch; /* make all cards equal height */
}

/* Optional: horizontal scroll appearance */
.pricing__grid::-webkit-scrollbar {
  height: 8px;
}
.pricing__grid::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Card Base */
.card {
  flex: 0 0 320px;
  margin-top: 10px;
  background-color: #0d0d0d;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* removed fixed height to allow natural sizing */
}

.card:hover {
  opacity: 0.9;
  transform: translateY(-5px);
}

/* Plan Title & Price */
.plan-name {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
  margin: 0.5rem 0;
}

.per-month {
  font-size: 1rem;
  color: #bbb;
  text-align: center;
}

.total-price {
  font-size: 0.9rem;
  text-align: center;
  color: #aaa;
  margin-bottom: 1rem;
}

/* Horizontal Separator */
hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 1rem 0;
}

/* Feature List */
.lists {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;             /* grow to fill vertical space */
  max-height: 220px;        /* limit height */
  overflow-y: auto;         /* add scroll if overflow */
  padding-right: 0.5rem;    /* padding to avoid scrollbar over text */
}

.list {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.list svg {
  width: 1rem;
  height: 1rem;
  fill: #fff;
}

.list span {
  margin-left: 0.5rem;
  color: #eee;
}

/* Call to Action Button */
.action {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #fff;
  color: #000;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  border: none;
}

.action:hover {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Sub-tier selector container spacing */
.subtier-selector {
  margin: 1rem 0;
}

/* Style the dropdowns */
.plan-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.plan-select:focus {
  outline: none;
  border-color: #2d79f3;
}

/* For the user count dropdown (Premium) */
.user-select {
  margin-bottom: 0.5rem;
}

/* Slightly smaller labels above each select */
.subtier-selector .auth-form__label {
  font-size: 0.9rem;
  color: #ddd;
  display: block;
  margin-bottom: 0.25rem;
}



#contact {
  max-width: 480px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
  color: #eee; /* light text for dark bg */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-title {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff; /* bright white for headings */
}

.contact-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #bbb; /* softer white for paragraph */
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 2rem;
}

.contact-link {
  font-weight: 500;
  font-size: 1rem;
  color: #66b2ff; /* bright blue for links */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
  outline: none;
  border-bottom-color: #66b2ff;
  color: #99ccff;
}


/* Footer */
footer {
  text-align: center;
  background: rgba(15,15,23,0.9);
  padding: var(--spacing);
  font-size: 0.875rem;
  color: var(--color-muted);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Backgrounds */
.mesh-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,0.03), transparent 40%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  animation: meshMove 30s linear infinite;
}
@keyframes meshMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 40px 40px, 40px 40px, 40px 40px; }
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  background: transparent;
  pointer-events: none;
}
/* Modal overlay: hidden by default */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3); /* subtle dark overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(0);
  transition: backdrop-filter 0.4s ease;
}

/* Modal visible */
.modal-overlay.active {
  display: flex;
  backdrop-filter: blur(6px);
}

/* Minimal modal content: no background or padding */
.modal-content {
  /* no background, padding, border-radius, or shadow */
  position: relative;
}

/* For Firefox */
* {
  scrollbar-width: thin; /* Slim scrollbar */
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent; /* thumb color, transparent track */
}

/* For WebKit-based browsers (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 8px; /* Set scrollbar width */
  background: transparent; /* Remove scrollbar track background */
}

*::-webkit-scrollbar-track {
  background: transparent; /* Make track transparent */
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4); /* Light semi-transparent thumb */
  border-radius: 6px;
  border: none;
}

*::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}
/* Modal overlay base (hidden by default) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

/* Shown state */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal content animation */
.modal-content {
  opacity: 0;
  transform: translateY(-20px); /* slight upward motion */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When active, animate content into view */
.modal-overlay.active .modal-content {
  opacity: 1;
  transform: translateY(0);
}
