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

:root {
  --bg-dark: #0a0101;
  --bg-deep: #1a0505;
  --red-dark: #5a0e0e;
  --red-deep: #2e0808;
  --red-text: #8b1a1a;   /* kept for backwards compatibility */
  --gold: #c6a64b;
  --gold-light: #e8c767;
  --gold-gradient: linear-gradient(135deg, #F4E5A1 0%, #E8C767 20%, #BF953F 45%, #8a6a22 60%, #E8C767 80%, #F4E5A1 100%);
  --text-light: #e0d6c8;
  --text-muted: #a08a7a;
  --sidebar-width: 300px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cinzel', serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(90, 14, 14, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(46, 8, 8, 0.4) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  background-size: cover, cover, 300px 300px;
  background-blend-mode: overlay, overlay, normal;
  color: var(--text-light);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
}

/* ===== NOISE OVERLAY ===== */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== SHARED GOLD GRADIENT TEXT ===== */
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

/* ===== SIDEBAR =====
   Collapses by shrinking its flex-basis to 0 so the main content
   reclaims the freed horizontal space. */
.sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  background: rgba(10, 1, 1, 0.95);
  border-right: 1px solid rgba(139, 26, 26, 0.3);
  backdrop-filter: blur(10px);
  transition: flex-basis 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.7);
}

.sidebar.collapsed {
  flex-basis: 0;
  width: 0;
  border-right-color: transparent;
  box-shadow: none;
}

.sidebar-inner {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 4rem 1.5rem 1.5rem; /* right padding leaves room for the fixed toggle */
  border-bottom: 1px solid rgba(139, 26, 26, 0.2);
}

/* Small home icon beside the logo */
.home-icon-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 166, 75, 0.35);
  background: rgba(10, 1, 1, 0.6);
  color: var(--gold);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-icon-btn:hover {
  background: rgba(139, 26, 26, 0.25);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.logo {
  font-family: 'Cormorant', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== TOGGLE BUTTON ===== */
.toggle-btn {
  position: fixed;
  top: 20px;
  left: calc(var(--sidebar-width) - 52px);
  z-index: 200;
  width: 40px;
  height: 40px;
  background: rgba(10, 1, 1, 0.9);
  border: 1px solid rgba(198, 166, 75, 0.35);
  color: var(--gold);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}

.toggle-btn:hover {
  background: rgba(139, 26, 26, 0.3);
  border-color: var(--gold);
  color: var(--gold-light);
}

body.sidebar-collapsed .toggle-btn {
  left: 20px;
}

/* ===== MODULE LIST ===== */
.module-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.module-list ul {
  list-style: none;
}

.module-list li {
  margin: 0.25rem 0.75rem;
}

/* Group heads */
.module-group {
  margin: 0.4rem 0.75rem !important;
}

.group-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}

.group-head:hover {
  color: var(--gold-light);
  background: rgba(139, 26, 26, 0.15);
  border-left-color: var(--gold);
  padding-left: 1.25rem;
}

.module-group.open .group-head {
  color: var(--gold);
  background: rgba(139, 26, 26, 0.12);
  border-left-color: var(--gold);
}

.group-label {
  flex: 1;
  text-align: left;
}

.group-head .chev {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.module-group.open .group-head .chev {
  transform: rotate(180deg);
}

/* Animated accordion children (grid-template-rows 0fr → 1fr) */
.group-children {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-group.open .group-children {
  grid-template-rows: 1fr;
}

.group-children-inner {
  overflow: hidden;
  min-height: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual module buttons */
.module-btn {
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem 0.65rem 1.5rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.15rem 0;
  opacity: 0;
  transform: translateY(-6px);
}

.module-group.open .module-btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s, background 0.2s, border-color 0.2s;
}

.module-group.open .group-children-inner > li:nth-child(1) .module-btn { transition-delay: 0.04s; }
.module-group.open .group-children-inner > li:nth-child(2) .module-btn { transition-delay: 0.08s; }
.module-group.open .group-children-inner > li:nth-child(3) .module-btn { transition-delay: 0.12s; }
.module-group.open .group-children-inner > li:nth-child(4) .module-btn { transition-delay: 0.16s; }
.module-group.open .group-children-inner > li:nth-child(5) .module-btn { transition-delay: 0.20s; }
.module-group.open .group-children-inner > li:nth-child(6) .module-btn { transition-delay: 0.24s; }

.module-btn:hover {
  color: var(--gold-light);
  background: rgba(139, 26, 26, 0.15);
  border-left-color: var(--gold);
  padding-left: 1.75rem;
}

.module-btn.active {
  color: var(--gold);
  background: rgba(139, 26, 26, 0.25);
  border-left-color: var(--gold);
}

.module-btn .icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ===== SIDEBAR FOOTER ===== */
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(139, 26, 26, 0.2);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  min-width: 0;
  padding: 2rem 3rem;
  overflow-y: auto;
  min-height: 100vh;
  transition: padding 0.4s;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  max-width: 900px;
  animation: fadeUp 1.2s ease both;
}

.hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(198, 166, 75, 0.25));
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 2rem;
}

.cta {
  background: linear-gradient(135deg, var(--gold), #8a6a22);
  color: #0a0101;
  border: none;
  padding: 1rem 3rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(198, 166, 75, 0.2);
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(198, 166, 75, 0.4);
}

/* ===== HERO SUB-LINES (both identical gold) ===== */
.sarcasm {
  margin-top: 3rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
  animation: fadeUp 1.5s ease both;
  animation-delay: 0.3s;
  max-width: 700px;
}

.sarcasm-line {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

.sarcasm-line:last-child {
  margin-bottom: 0;
}

/* ===== MODULE DETAIL ===== */
.module-detail {
  max-width: 800px;
  animation: fadeUp 0.8s ease both;
}

.module-title {
  font-family: 'Cormorant', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.module-desc {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.module-sales {
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-light);
  padding: 1.5rem;
  border: 1px solid rgba(198, 166, 75, 0.2);
  border-radius: 8px;
  background: rgba(198, 166, 75, 0.05);
  animation: fadeUp 1s ease both;
  animation-delay: 0.2s;
  margin-bottom: 2rem;
}

/* View Pricing button under every module */
.module-pricing-btn {
  display: inline-block;
  animation: fadeUp 1s ease both;
  animation-delay: 0.35s;
}

/* ===== PRICING ===== */
.pricing {
  max-width: 1100px;
  animation: fadeUp 0.8s ease both;
  padding-top: 2rem;
}

.pricing-title {
  font-family: 'Cormorant', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: rgba(20, 5, 5, 0.8);
  border: 1px solid rgba(139, 26, 26, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.35s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.pricing-card.highlight {
  border-color: var(--gold);
  background: rgba(30, 10, 10, 0.9);
  box-shadow: 0 0 40px rgba(198, 166, 75, 0.15);
}

.pricing-card h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-family: 'Cormorant', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.pricing-card .per-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.pricing-card .users {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 26, 26, 0.2);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0a0101;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  font-style: italic;
}

.addon {
  background: rgba(20, 5, 5, 0.8);
  border: 1px solid rgba(139, 26, 26, 0.3);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.addon h4 {
  font-family: 'Cormorant', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.addon p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 500px;
}

.addon-price {
  font-family: 'Cormorant', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
}

.addon-price span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-weight: 400;
}

.contact {
  border-top: 1px solid rgba(139, 26, 26, 0.3);
  padding-top: 2rem;
  margin-bottom: 4rem;
}

.contact h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact > p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* "Wanna bet?" — same body-text tone as the sentence above it. */
.wanna-bet {
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-info strong {
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: var(--sidebar-width);
    flex-basis: var(--sidebar-width);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: var(--sidebar-width);
    flex-basis: var(--sidebar-width);
    border-right-color: rgba(139, 26, 26, 0.3);
  }

  .toggle-btn {
    left: 20px;
    z-index: 200;
  }

  body:not(.sidebar-collapsed) .toggle-btn {
    left: calc(var(--sidebar-width) - 52px);
  }

  .main {
    padding: 4.5rem 1.5rem 1.5rem 1.5rem;
  }

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

  .addon {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
