/* ===== FONT DECLARATIONS ===== */
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #1e162b 0%, #2e2142 50%, #3f2d5e 100%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Default: non-scrollable for home and newsletter */
html:not(.scrollable), body:not(.scrollable-page) {
  overflow: hidden;
  height: 100vh;
}

/* Scrollable pages override - VERY specific */
html body.scrollable-page {
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  position: relative !important;
}

html body.scrollable-page {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.page-section::-webkit-scrollbar {
  display: none;
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== ANIMATED BACKGROUND ELEMENTS ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #d6bfff;
  border-radius: 50%;
  animation: float 6s infinite linear;
  opacity: 0.7;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.glow-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(188, 152, 255, 0.4) 0%, rgba(130, 90, 190, 0.2) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 15s infinite ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.glow-orb:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.glow-orb:nth-child(2) { top: 60%; right: 15%; animation-delay: 5s; }
.glow-orb:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 10s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(50px, -30px) rotate(120deg); }
  66% { transform: translate(-30px, 40px) rotate(240deg); }
}

/* ===== LAYOUT CONTAINERS ===== */
.main-container {
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(30, 22, 43, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 1rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
  height: auto;
  min-height: 40px;
  box-sizing: border-box;
  flex-wrap: nowrap;
  align-content: center;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 36px;
  box-sizing: border-box;
  margin: 0;
  line-height: 1;
}

.nav-link:hover, .nav-link.active {
  background: #6d28d9;
  color: white;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  border-color: #6d28d9;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
  padding-top: 100px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
  width: 100%;
  overflow-x: hidden;
}

/* Non-scrollable pages (home, newsletter) - default behavior */
body.home-page .page-section,
body.newsletter-page .page-section {
  height: calc(100vh - 80px);
  overflow: hidden;
}

/* Scrollable pages - simple override */
body.scrollable-page .page-section {
  min-height: auto;
  height: auto;
  padding-bottom: 60px;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  width: 100%;
}

/* ===== TYPOGRAPHY ===== */
.page-heading {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #9f7aea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: #8b5cf6;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
  padding-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #9f7aea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center;
  width: 100%;
  display: block;
}

/* ===== CONTENT BOXES ===== */
.content-box {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 0 auto 2rem auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: rgba(139, 92, 246, 0.1);
  color: white !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px) scale(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.05);
}

/* ===== HOME PAGE ===== */
.home-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  overflow: hidden;
  height: 100vh;
  min-height: 100vh;
}

body.home-page {
  overflow: hidden !important;
}

.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 800px;
  padding: 0 1rem;
}

#typewriter {
  display: inline-block;
  text-align: center;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== NEWSLETTER PAGE ===== */
.newsletter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  height: 100vh;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}

body.newsletter-page {
  overflow: hidden !important;
}

.newsletter-wrapper {
  max-width: 600px;
  width: 100%;
  z-index: 20;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.newsletter-heading {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #9f7aea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.newsletter-description {
  font-size: 1.25rem;
  font-family: 'Orbitron', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form-container {
  max-width: 400px;
  margin: 0 auto;
}

/* ===== GUMROAD FORM ===== */
.gumroad-form {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
}

.gumroad-form form {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.gumroad-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.gumroad-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.gumroad-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.gumroad-button {
  width: 100%;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white !important;
  border: 2px solid #8b5cf6;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.gumroad-button:hover {
  background: linear-gradient(135deg, #a87eff 0%, #8b6dd8 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.gumroad-button:active {
  transform: translateY(0);
}

.gumroad-note {
  font-size: 0.875rem;
  font-family: 'Orbitron', sans-serif;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  text-align: center;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.use-case {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.use-case:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.use-case-heading {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  color: #8b5cf6;
  margin-bottom: 0.75rem;
}

.use-case p {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Orbitron', sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateX(5px);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  color: #8b5cf6;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.faq-answer {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Orbitron', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(139, 92, 246, 0.3);
}

.email-link {
  color: #d6bfff;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  background: rgba(139, 92, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.email-link:hover {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.2);
  border-bottom-color: #d6bfff;
  transform: translateY(-1px);
}

/* ===== CATALOG GRID ===== */
.grid-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(188, 152, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== ANIMATION SYSTEM ===== */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content > *:nth-child(1) { transition-delay: 0.1s; }
.hero-content > *:nth-child(2) { transition-delay: 0.3s; }
.hero-content > *:nth-child(3) { transition-delay: 0.5s; }

.page-ready .hero-content > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Override hero-content animation for buttons */
.hero-content .btn-secondary {
  transform: scale(0.95);
}

.page-ready .hero-content .btn-secondary {
  transform: scale(1);
}

.page-ready .hero-content .btn-secondary:hover {
  transform: translateY(-2px) scale(1.05);
}

.glow-orb, .particles {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-orb:nth-child(1) { transition-delay: 0.2s; }
.glow-orb:nth-child(2) { transition-delay: 0.4s; }
.glow-orb:nth-child(3) { transition-delay: 0.6s; }
.particles { transition-delay: 0.8s; }

.page-ready .glow-orb,
.page-ready .particles {
  opacity: 1;
}

body {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-ready {
  opacity: 1;
}

header {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

.page-ready header {
  opacity: 1;
  transform: translateY(0);
}

.page-ready #typewriter {
  transform: scale(1);
}

/* Button animations consolidated with gumroad-button */
.btn-primary,
.btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.95);
}

.page-ready .btn-primary,
.page-ready .btn-secondary {
  transform: scale(1);
}

.page-ready .btn-primary:hover,
.page-ready .btn-secondary:hover {
  transform: translateY(-2px) scale(1.05);
}

.nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.95);
}

.page-ready .nav-link {
  transform: scale(1);
}

.nav-link:hover, .nav-link.active {
  transform: scale(1.05);
}

.newsletter-wrapper > * {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-ready .newsletter-wrapper > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.newsletter-wrapper > *:nth-child(1) { transition-delay: 0.1s; }
.newsletter-wrapper > *:nth-child(2) { transition-delay: 0.3s; }
.newsletter-wrapper > *:nth-child(3) { transition-delay: 0.5s; }
.newsletter-wrapper > *:nth-child(4) { transition-delay: 0.7s; }
.newsletter-wrapper > *:nth-child(5) { transition-delay: 0.9s; }

.gumroad-button {
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-ready .gumroad-button {
  transform: scale(1);
}

.gumroad-button:hover {
  transform: scale(1.05);
}

/* ===== CONSENT MANAGEMENT ===== */
.consent-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 22, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  z-index: 1000;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.consent-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.consent-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: 'Orbitron', sans-serif;
}

.consent-actions {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.consent-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

#accept-consent {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

#accept-consent:hover {
  background: linear-gradient(135deg, #a87eff 0%, #8b6dd8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

#reject-consent {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#reject-consent:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .consent-box {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: translateY(100px);
    width: auto;
    max-width: none;
  }
  
  .consent-box.show {
    transform: translateY(0);
  }
  
  .consent-text {
    font-size: 0.8rem;
  }
  
  .consent-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .conssent-btn {
    width: 100%;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .page-section {
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  /* Header */
  header {
    height: 60px;
    padding: 0.5rem 0;
  }
  
  .nav-container {
    padding: 0.25rem 0.5rem;
    min-height: 32px;
    gap: 0.15rem;
  }
  
  .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    border-radius: 0.375rem;
  }

  /* Typography */
  .newsletter-heading {
    font-size: 2rem;
  }
  
  .newsletter-description {
    font-size: 1.1rem;
  }
  
  .page-heading {
    font-size: 2rem;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }

  /* Layout */
  .section-content {
    padding: 20px 15px 0 15px;
  }
  
  .content-box {
    padding: 1.5rem;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Home page */
  .hero-content h1 { 
    font-size: 2.5rem !important; 
    line-height: 1.2 !important; 
  }
  
  .hero-content p { 
    font-size: 1rem !important; 
  }
  
  .hero-content .flex-wrap { 
    flex-direction: column; 
    gap: 1rem; 
  }
  
  .hero-content button { 
    width: 100%; 
    max-width: 300px; 
    margin: 0 auto; 
  }
  
  /* Hide particles on mobile for performance */
  .particles { 
    display: none; 
  }
  
  /* Reduce animation complexity on mobile */
  .glow-orb {
    animation: drift 20s infinite ease-in-out;
  }
  
  /* Disable backdrop filters on mobile for performance */
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .content-box {
    backdrop-filter: none;
  }
  
  .btn-primary,
  .btn-secondary {
    backdrop-filter: none;
  }
}
