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

:root {
  --bg: #0b0b10;
  --bg-alt: #0f0f18;
  --red: #d42027;
  --purple: #7c3aed;
  --text: #e8e8ec;
  --text-muted: #9a9aaa;
  --card-bg: #141420;
  --card-border: rgba(124, 58, 237, 0.15);
  --card-glow: rgba(124, 58, 237, 0.08);
  --radius: 12px;
  --nav-height: 64px;
}

.accent-red { color: var(--red); }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(11, 11, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #b81c22 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hero {
  position: relative;
  background-color: #0b0b10;
  background-image: url('/images/ghost-hero-bg.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 160px 0 100px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 11, 16, 0.95) 0%,
    rgba(11, 11, 16, 0.85) 40%,
    rgba(11, 11, 16, 0.75) 70%,
    rgba(11, 11, 16, 0.6) 100%
  );
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: #b81c22;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.trust-strip {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--red);
  flex-shrink: 0;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-top: -32px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.demo-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.demo-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 20px var(--card-glow);
}

.demo-card:hover::before {
  opacity: 1;
}

.demo-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.demo-card .demo-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.audio-play-btn:hover {
  background: #b81c22;
  transform: scale(1.05);
}

.audio-play-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.audio-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-progress-bar {
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 20px var(--card-glow);
}

.lite-youtube {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  cursor: pointer;
}

.lite-youtube img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.lite-youtube:hover img {
  opacity: 1;
}

.lite-youtube .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
}

.lite-youtube:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
}

.lite-youtube .play-overlay svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.lite-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-title {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.style-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.style-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 20px var(--card-glow);
  transform: translateY(-2px);
}

.style-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.style-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.style-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

#arabella {
  position: relative;
  overflow: hidden;
}

#arabella::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/halloween-bg-image.jpg') center center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

#arabella > .container {
  position: relative;
  z-index: 1;
}

.arabella-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.arabella-text h2 {
  text-align: left;
  margin-bottom: 16px;
}
.arabella-text h2 a {
  color: var(--purple);
  text-decoration: none;
}
.arabella-text h2 a:hover {
  text-decoration: underline;
}

.arabella-text p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.arabella-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--purple) !important;
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.credits-list h3,
.testimonials h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.credits-list ul {
  list-style: none;
  margin-bottom: 24px;
}

.credits-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}

.credits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.credits-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.credits-badges span {
  background: rgba(212, 32, 39, 0.1);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.testimonial {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.testimonial cite {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
}

.testimonial cite a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.testimonial cite a:hover {
  color: var(--text);
  text-decoration: underline;
}

.testimonial cite a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 2px;
}

.credits-badges a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.credits-badges a:hover {
  opacity: 0.8;
}

.credits-badges a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 20px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.required {
  color: var(--red);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.char-count {
  font-size: 0.78rem;
  margin-top: 6px;
  text-align: right;
  color: var(--red);
  transition: color 0.2s ease;
}

.char-count.met {
  color: var(--text-muted);
}

.form-status {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 24px;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: var(--red);
}

.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-credit {
  margin-bottom: 6px;
}

.hero-credit {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

.hero-divider {
  width: 180px;
  height: 2px;
  margin: 14px auto;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  border-radius: 2px;
}

.credits-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.subtle-link,
.hero-credit a,
.credits-intro a,
.footer-credit a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-credit a:hover,
.credits-intro a:hover,
.footer-credit a:hover {
  color: var(--text);
  text-decoration: underline;
}

.hero-credit a:focus-visible,
.credits-intro a:focus-visible,
.footer-credit a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 2px;
}

.mobile-br {
  display: none;
}

@media (max-width: 768px) {
  .mobile-br {
    display: block;
  }

  .hero {
    background-position: center top;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 11, 16, 0.98);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .arabella-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .arabella-text h2 {
    text-align: center;
  }

  .credits-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .trust-strip {
    gap: 12px;
  }

  .trust-item {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .demos-grid {
    grid-template-columns: 1fr;
  }

  .styles-grid {
    grid-template-columns: 1fr 1fr;
  }
}
