:root {
  --primary-color: #FF7A00; /* Dawn Orange */
  --secondary-color: #5D26C1; /* Dawn Purple */
  --text-dark: #ffffff; /* Inverted for dark theme */
  --text-light: #b3b3b3;
  --bg-white: rgba(255, 255, 255, 0.04); /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #080310;
  overflow-x: hidden;
  position: relative;
}

/* Global Background Effects: Dark space to dawn gradient */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 0%, rgba(93, 38, 193, 0.25), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 122, 0, 0.15), transparent 50%);
  z-index: -3;
}

/* God Rays Filter Effect */
body::after {
  content: "";
  position: fixed;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0%,
    rgba(255, 122, 0, 0.015) 2%,
    transparent 4%
  );
  transform: rotate(45deg);
  z-index: -2;
  pointer-events: none;
  animation: rays 60s linear infinite;
}

@keyframes rays {
  0% { transform: rotate(45deg) translateY(0); }
  100% { transform: rotate(45deg) translateY(200px); }
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
}

/* Header - Glassmorphism */
header {
  background: rgba(8, 3, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(90deg, #FF7A00, #5D26C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  gap: 25px;
}

.desktop-nav a {
  font-weight: 500;
  color: #fff;
  transition: color 0.3s, text-shadow 0.3s;
}

.desktop-nav a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 122, 0, 0.6);
}

.header-btn {
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  border-radius: 25px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: transparent;
  position: relative;
}

/* 3D Paper Plane / Sail right side (Pseudo-element to preserve HTML grid) */
.hero::after {
  content: "";
  position: absolute;
  top: 10%; right: 5%;
  width: 300px; height: 300px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="none" stroke="%23FF7A00" stroke-width="2" d="M10,190 L190,10 L140,190 Z" style="filter: drop-shadow(0 0 10px %23FF7A00);"/><path fill="none" stroke="%235D26C1" stroke-width="2" d="M10,190 L190,10 L80,130 Z" style="filter: drop-shadow(0 0 10px %235D26C1);"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.8;
  z-index: -1;
  animation: floatPlane 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatPlane {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 25px rgba(93, 38, 193, 0.8);
}

.hero-subtitle {
  font-size: 30px;
  font-weight: normal;
  display: block;
  margin-top: 15px;
  background: linear-gradient(90deg, #fff, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  margin-bottom: 50px;
  color: #ccc;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.4);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.8);
}

/* Grids - Preserving fixed layout */
.features-grid, .pricing-grid, .reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.media-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Glassmorphism Cards */
.feature-card, .media-card, .price-card, .faq-item, .review-card, .page-content {
  background: var(--bg-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover, .media-card:hover, .faq-item:hover, .review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(93, 38, 193, 0.5);
  box-shadow: 0 10px 40px rgba(93, 38, 193, 0.2);
}

.feature-card h3, .media-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255,122,0,0.3);
}

/* Price Section - 3D Card Look with Glowing Borders */
.pricing-grid {
  perspective: 1000px; /* Preps for 3D */
}

.price-card {
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Animated Flowing Border Gradient */
.price-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent, transparent, transparent, var(--secondary-color), var(--primary-color));
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.price-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: rgba(12, 6, 24, 0.95); /* Inner background to obscure gradient center */
  border-radius: 14px;
  z-index: 0;
}

.price-card:hover::before, .price-card.popular::before {
  opacity: 1;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-card.popular {
  transform: scale(1.05) translateZ(20px);
  box-shadow: 0 15px 50px rgba(93, 38, 193, 0.4);
}

.popular-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  padding: 6px 20px;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: bold;
}

.price-card h3 {
  font-size: 24px;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.price {
  font-size: 40px;
  font-weight: bold;
  background: linear-gradient(90deg, #FF7A00, #5D26C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.price span {
  font-size: 16px;
  color: var(--text-light);
  font-weight: normal;
  -webkit-text-fill-color: var(--text-light);
}

.price-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
  text-align: left;
}

.price-features li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  color: #ccc;
}

.price-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 14px;
}

.price-btn {
  padding: 14px 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 25px;
  font-weight: bold;
  display: block;
  width: 100%;
  transition: all 0.3s;
}

.price-btn:hover {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.4);
}

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

.faq-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

/* Reviews */
.review-card {
  font-style: italic;
  position: relative;
}

.review-card::before {
  content: '"';
  font-size: 60px;
  color: rgba(93, 38, 193, 0.4);
  position: absolute;
  top: 10px; left: 10px;
  font-family: serif; line-height: 1;
}

.review-author {
  margin-top: 20px;
  font-weight: bold;
  font-style: normal;
  text-align: right;
  color: var(--primary-color);
}

/* Footer - PBN SEO friendly */
footer {
  background: rgba(5, 2, 10, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: 50px 0 30px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

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

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

.footer-links a:hover {
  color: #fff;
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.copyright {
  color: #555;
  font-size: 14px;
}

/* Sub-page Specific Styles */
.page-content {
  margin-top: 40px;
  margin-bottom: 40px;
  min-height: 50vh;
}
.page-content h1 {
  background: linear-gradient(90deg, #FF7A00, #5D26C1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}
.page-content h2 {
  color: #fff;
  margin: 25px 0 15px;
}

/* Typography Overrides */
h2 {
  font-size: 36px;
  background: linear-gradient(90deg, #fff, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Responsive Media Query */
@media (max-width: 768px) {
  header .container { flex-wrap: wrap; }
  .desktop-nav { order: 3; width: 100%; margin-top: 15px; justify-content: center; gap: 15px; font-size: 14px; }
  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 22px; }
  .hero p { font-size: 16px; }
  .features-grid, .media-ai-grid, .pricing-grid, .reviews-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; margin: 20px 0; }
  .hero::after { display: none; } /* Hide paper plane on mobile to avoid overlap */
  .cta-button, .header-btn, .price-btn { padding: 15px 20px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  section { padding: 60px 0; }
}

/* Cloud Animation Base at Bottom of Page */
.clouds-container {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 300px;
  overflow: hidden; z-index: -1; pointer-events: none;
}
.clouds-bg {
  position: absolute; bottom: 0; left: 0;
  width: 200%; height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%235D26C1" fill-opacity="0.15" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
  background-size: 50% 100%;
  animation: moveClouds 30s linear infinite;
}
.clouds-bg.layer2 {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FF7A00" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
  background-size: 50% 100%;
  animation: moveClouds 20s linear infinite reverse;
}
@keyframes moveClouds {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Phase 2 Accessibility & UI Updates */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #FF7A00;
    color: white;
    padding: 10px 20px;
    z-index: 10000;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}
#features, #pricing, #faq, h2, h3, #main-content {
    scroll-margin-top: 80px;
}
.footer-links a, .desktop-nav a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
details.faq-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    color: #ccc;
    transition: all 0.3s ease;
}
details.faq-item summary {
    cursor: pointer;
    font-size: 18px;
    color: #FF7A00;
    font-weight: bold;
    outline: none;
    list-style: none; /* Hide default triangle in some browsers */
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item p {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;
}
