/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --bg-primary: #121212;
  --bg-elevated: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-red: #ff0000;
  --accent-red-hover: #ff3333;
  --accent-green: #00CC00;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
}

/* ===========================
   Global Reset
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
   Body Styling
   =========================== */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ===========================
   Animated Background
   =========================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 0, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 0, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  animation: ambientShift 12s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(255, 0, 0, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(255, 0, 0, 0.04) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  }
  50% {
    background:
      radial-gradient(ellipse at 40% 30%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 60%, rgba(255, 0, 0, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  }
  100% {
    background:
      radial-gradient(ellipse at 60% 40%, rgba(255, 0, 0, 0.04) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 70%, rgba(255, 0, 0, 0.07) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* ===========================
   Header
   =========================== */
header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--accent-red);
  background-color: var(--bg-elevated);
}

header .logo {
  max-height: 70px;
  width: auto;
}

header .tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--accent-red);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Responsive header - tablet */
@media (min-width: 768px) {
  header {
    padding: 20px 40px;
  }

  header .logo {
    max-height: 80px;
  }
}

/* Responsive header - desktop */
@media (min-width: 1024px) {
  header {
    padding: 20px 60px;
  }
}

/* ===========================
   CTA Button (shared component)
   =========================== */
.cta-primary {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.cta-primary:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
}

/* ===========================
   Utility Classes
   =========================== */
.scarcity {
  font-size: 14px;
  font-style: italic;
  color: var(--accent-green);
  font-weight: 600;
}

/* ===========================
   Focus States
   =========================== */
a:focus,
button:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  gap: 40px;
}

.hero-content {
  max-width: 600px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subheadline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero .cta-primary {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.hero-video {
  max-width: 800px;
  width: 100%;
  position: relative;
  background-color: var(--bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.hero-video video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .hero {
    padding: 60px 40px;
    gap: 60px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-subheadline {
    font-size: 20px;
  }

  .hero .cta-primary {
    display: inline-block;
    width: auto;
    font-size: 20px;
    padding: 18px 50px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    padding: 80px 60px;
    gap: 80px;
  }

  .hero-content {
    flex: 1;
    text-align: left;
    max-width: 500px;
  }

  .hero-video {
    flex: 1;
    max-width: 600px;
  }

  .hero h1 {
    font-size: 56px;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .hero {
    max-width: 1400px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 64px;
  }
}

/* ===========================
   Transformation Gallery Section
   =========================== */
.transformations {
  padding: 60px 20px;
  background-color: var(--bg-primary);
}

.transformations h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.transformations-intro {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.transformations-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.transformation-item {
  width: 100%;
  background-color: var(--bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transformation-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.transformation-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100%;
}

.transformation-photo {
  position: relative;
  overflow: hidden;
}

.transformation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 4;
}

.transformation-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.transformation-label--after {
  color: var(--accent-green);
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .transformations {
    padding: 80px 40px;
  }

  .transformations h2 {
    font-size: 48px;
  }

  .transformations-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .transformation-label {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .transformations {
    padding: 100px 60px;
  }

  .transformations h2 {
    font-size: 56px;
  }

  .transformations-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .transformation-label {
    font-size: 14px;
  }
}

/* ===========================
   Credentials Section
   =========================== */
.credentials {
  padding: 80px 20px;
  background-color: var(--bg-elevated);
}

.credentials h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.credentials-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.credentials-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.credentials-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.credentials-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.credentials-text p {
  margin-bottom: 16px;
}

.credentials-text p:last-child {
  margin-bottom: 0;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .credentials {
    padding: 100px 40px;
  }

  .credentials h2 {
    font-size: 48px;
  }

  .credentials-content {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .credentials {
    padding: 120px 60px;
  }

  .credentials h2 {
    font-size: 56px;
  }
}

/* ===========================
   System Preview Section
   =========================== */
.system-preview {
  padding: 80px 20px;
  background-color: var(--bg-primary);
}

.system-preview h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.system-intro {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.system-card {
  background-color: var(--bg-elevated);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.system-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--accent-red);
}

.system-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.system-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
}

/* Small tablet (600px+) */
@media (min-width: 600px) {
  .system-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .system-preview {
    padding: 100px 40px;
  }

  .system-preview h2 {
    font-size: 48px;
  }

  .system-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .system-preview {
    padding: 120px 60px;
  }

  .system-preview h2 {
    font-size: 56px;
  }
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
  padding: 80px 20px;
  background-color: var(--bg-elevated);
}

.faq h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.faq > details {
  max-width: 800px;
  margin: 0 auto 16px;
}

.faq-item {
  background-color: var(--bg-primary);
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #2a2a2a;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

/* Remove WebKit default marker (Safari) */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Custom marker using ::before pseudo-element */
.faq-item summary::before {
  content: '+';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: var(--accent-red);
  font-size: 24px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item summary:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
}

/* Content styling */
.faq-item p {
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .faq {
    padding: 100px 40px;
  }

  .faq h2 {
    font-size: 48px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .faq {
    padding: 120px 60px;
  }

  .faq h2 {
    font-size: 56px;
  }
}

/* ===========================
   Scroll Animations
   =========================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered child animations */
.animate-on-scroll.visible .system-card,
.animate-on-scroll.visible .transformation-item,
.animate-on-scroll.visible .faq-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-on-scroll.visible .system-card:nth-child(1),
.animate-on-scroll.visible .transformation-item:nth-child(1),
.animate-on-scroll.visible .faq-item:nth-child(1) { animation-delay: 0ms; }
.animate-on-scroll.visible .system-card:nth-child(2),
.animate-on-scroll.visible .transformation-item:nth-child(2),
.animate-on-scroll.visible .faq-item:nth-child(2) { animation-delay: 100ms; }
.animate-on-scroll.visible .system-card:nth-child(3),
.animate-on-scroll.visible .transformation-item:nth-child(3),
.animate-on-scroll.visible .faq-item:nth-child(3) { animation-delay: 200ms; }
.animate-on-scroll.visible .system-card:nth-child(4),
.animate-on-scroll.visible .transformation-item:nth-child(4),
.animate-on-scroll.visible .faq-item:nth-child(4) { animation-delay: 300ms; }
.animate-on-scroll.visible .system-card:nth-child(5),
.animate-on-scroll.visible .transformation-item:nth-child(5),
.animate-on-scroll.visible .faq-item:nth-child(5) { animation-delay: 400ms; }
.animate-on-scroll.visible .system-card:nth-child(6),
.animate-on-scroll.visible .transformation-item:nth-child(6) { animation-delay: 500ms; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility: disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   Mid-Page CTA Section
   =========================== */
.cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--bg-primary);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .cta-section {
    padding: 100px 40px;
  }

  .cta-section h2 {
    font-size: 48px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .cta-section {
    padding: 120px 60px;
  }

  .cta-section h2 {
    font-size: 56px;
  }
}

/* ===========================
   Footer CTA
   =========================== */
.footer-cta {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2a;
}

.footer-cta h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-cta p {
  font-size: 16px;
  color: var(--accent-green);
  font-style: italic;
  margin-bottom: 24px;
}

/* ===========================
   Footer
   =========================== */
footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid #2a2a2a;
}
