:root {
  --primary-color: #3B82F6;
  --primary-hover: #2563EB;
  --secondary-color: #7DD3FC;
  --bg-color-start: #0A1128;
  --bg-color-end: #0D1531;
  --bg-color: #0A1128;
  --text-color: #EAF1FF;
  --text-light: #94A3B8;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(125, 211, 252, 0.3);
  --card-border-radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--bg-color-start), var(--bg-color-end)) fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Navigation Bar */
.navbar {
  background-color: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.nav-btn:hover {
  background-color: var(--primary-hover);
}

/* Header / Hero */
header {
  text-align: center;
  padding: 100px 20px 80px;
  background-color: transparent;
  border-bottom: none;
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.2s;
  cursor: pointer;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--text-color);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background-color: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 35px 30px;
  border-radius: var(--card-border-radius); border: 1px solid var(--border-color);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s;
}

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

.card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-color);
}

.card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background-color: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: var(--card-border-radius); border: 1px solid var(--border-color);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
  text-align: center;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  font-size: 1.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 20px 0;
  color: var(--primary-color);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: var(--card-border-radius); border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.faq-item h4 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--text-color);
}

.faq-item p {
  color: var(--text-light);
}

/* Page Standard Layout (for subpages) */
.page-header {
  background-color: transparent;
  padding: 60px 20px;
  text-align: center;
  border-bottom: none;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
  margin-top: 40px;
  margin-bottom: 60px;
  border-radius: var(--card-border-radius); border: 1px solid var(--border-color);
}

.page-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}
.page-content p {
  margin-bottom: 15px;
}
.page-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: rgba(5, 10, 25, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 50px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

footer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px 0;
  }
  
  .nav-links {
    display: none;
  }

  .cards-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  section {
    padding: 50px 0;
  }
  
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 20px; /* larger tap target for touch screens */
    margin-bottom: 10px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

/* Sitemap Chips */
.sitemap-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.sitemap-chip:hover {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

/* =========================================
   Deep Space Tech Theme - Background Layer
   ========================================= */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.8;
}

/* Nebula Glow */
.nebula {
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(10, 17, 40, 0) 70%);
    border-radius: 50%;
    animation: float-nebula 30s infinite alternate ease-in-out;
}

@keyframes float-nebula {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(10%, 10%) scale(1.1); opacity: 0.8; }
}

/* Twinkling Stars */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #EAF1FF;
    border-radius: 50%;
    animation: twinkle 3.5s infinite ease-in-out;
}

.star-1 { top: 15%; left: 10%; animation-delay: 0s; }
.star-2 { top: 35%; left: 85%; animation-delay: 0.5s; }
.star-3 { top: 65%; left: 20%; animation-delay: 1s; }
.star-4 { top: 80%; left: 70%; animation-delay: 1.5s; }
.star-5 { top: 25%; left: 40%; animation-delay: 2s; }
.star-6 { top: 50%; left: 60%; animation-delay: 2.5s; }
.star-7 { top: 75%; left: 90%; animation-delay: 3s; }
.star-8 { top: 10%; left: 75%; animation-delay: 1.2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Meteor */
.meteor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.meteor {
    position: absolute;
    top: -10%;
    left: 30%;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(234, 241, 255, 0), rgba(234, 241, 255, 1));
    transform: rotate(45deg);
    animation: meteor-fall 9s infinite linear;
    opacity: 0;
}

@keyframes meteor-fall {
    0% { transform: rotate(45deg) translateX(0); opacity: 0; }
    3% { opacity: 0.9; }
    10% { transform: rotate(45deg) translateX(1000px); opacity: 0; }
    100% { transform: rotate(45deg) translateX(1000px); opacity: 0; }
}

/* Pulse Rings */
.pulse-rings {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 100px;
    height: 100px;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 3.9s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 1.3s; }
.ring-3 { animation-delay: 2.6s; }

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    70%, 100% { transform: scale(3.5); opacity: 0; }
}

/* Cloud Ladder Climb */
.ladder-container {
    position: absolute;
    top: 30%;
    right: 8%;
    width: 80px;
    height: 400px;
}

.ladder {
    position: absolute;
    right: 20px;
    width: 40px;
    height: 100%;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 38px,
        rgba(125, 211, 252, 0.15) 38px,
        rgba(125, 211, 252, 0.15) 40px
    );
}

.ladder-dot {
    position: absolute;
    bottom: 0;
    right: 35px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
    animation: ladder-climb 12s infinite steps(10, end);
}

@keyframes ladder-climb {
    0% { transform: translateY(0); opacity: 0; }
    5% { opacity: 1; }
    90% { transform: translateY(-400px); opacity: 1; }
    95%, 100% { transform: translateY(-400px); opacity: 0; }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .nebula, .star, .meteor, .ring, .ladder-dot {
        animation: none !important;
        opacity: 0.5;
    }
}

/* Accessibility & Scroll Offset */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--primary-color);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 10px;
}

section[id] {
  scroll-margin-top: 90px;
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  outline: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary h4 {
  margin-bottom: 0;
}
