:root {
  --primary: #1b4332;
  --secondary: #b87333;
  --accent: #2d6a4f;
  --background: #f8f9fa;
  --surface: #e9ecef;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --base-size: 16px;
  --line-height: 1.6;
  --shadow-heavy: 0 12px 30px rgba(0, 0, 0, 0.25);
  --shadow-copper: 0 8px 24px rgba(184, 115, 51, 0.2);
  --copper-gradient: linear-gradient(135deg, #b87333 0%, #d4a373 50%, #b87333 100%);
  --dark-slate: #212529;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.25rem; }

a { color: var(--secondary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary); }

.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;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img { max-width: 100%; height: auto; display: block; }

/* Typography Staggering & Motion */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger-text { opacity: 0; animation: slideUpFade 0.8s ease forwards; }
.stagger-text:nth-child(1) { animation-delay: 0.1s; }
.stagger-text:nth-child(2) { animation-delay: 0.3s; }
.stagger-text:nth-child(3) { animation-delay: 0.5s; }

/* Header */
.site-header {
  background-color: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-heavy);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media screen and (max-width: 516px) {
  .header-container{
    flex-direction: column;
    gap: 20px;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-logo img {
  width: 40px;
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: white;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.auth-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  position: absolute;
  transition: all 0.3s ease;
}

.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 9px; }
.burger-menu span:nth-child(3) { top: 18px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--copper-gradient);
  color: white;
  box-shadow: var(--shadow-copper);
}

.btn-primary:hover {
  filter: brightness(1.1);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-text {
  background: none;
  color: white;
}

.btn-text:hover {
  color: var(--secondary);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full { width: 100%; }

/* Layout Classes */
.section-header {
  margin-bottom: 3rem;
}

.text-center { text-align: center; }
.light-text { color: white; }
.light-text p { color: rgba(255, 255, 255, 0.8); }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Sections */
section { padding: 5rem 0; }

.surface-bg { background-color: var(--surface); }

.malachite-texture {
  background-color: var(--primary);
  background-image: url('assets_2/images/malachite-texture-bg.webp');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: white;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

/* Hero - Editorial Stack */
.hero-section {
  padding: 0;
  background-color: var(--dark-slate);
  color: white;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}

.hero-content-stack {
  display: flex;
  flex: 1;
  padding: 4rem 1.5rem;
  gap: 4rem;
  align-items: center;
}

.hero-text-block { flex: 1; }

.hero-text-block h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #adb5bd;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-visual-framed {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-frame-copper {
  position: relative;
  padding: 10px;
  background: var(--copper-gradient);
  box-shadow: var(--shadow-heavy);
}

.image-frame-copper img {
  border: 4px solid var(--dark-slate);
}

.hero-ticker-row {
  background-color: var(--primary);
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  border-top: 1px solid var(--secondary);
}

.ticker-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ticker-label {
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  font-size: 0.875rem;
}

.ticker-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Internal Hero */
.internal-hero {
  padding: 6rem 0 4rem;
}

/* Trust Frameworks / FAQ */
.faq-top-section {
  background-color: var(--background);
  border-bottom: 1px solid var(--surface);
}

.faq-accordion { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--surface);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  color: var(--secondary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p { padding-bottom: 1.5rem; color: var(--text-secondary); }

/* Image Frames */
.framed-image-copper {
  border-left: 8px solid var(--secondary);
  border-bottom: 8px solid var(--primary);
  box-shadow: var(--shadow-heavy);
}

/* Insights & Stats */
.stat-counters {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: white;
  padding: 2rem;
  border-top: 4px solid var(--secondary);
  box-shadow: var(--shadow-heavy);
  flex: 1;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-prefix, .stat-suffix {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Calendar Cards */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.calendar-card {
  background-color: var(--dark-slate);
  padding: 2.5rem 2rem;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.calendar-card h3 {
  color: white;
}

.calendar-card p {
  color: #adb5bd;
  font-size: 0.95rem;
}

.calendar-date {
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.active-promo {
  background: white;
  border-top: 6px solid var(--secondary);
}

.active-promo h3 { color: var(--primary); }
.active-promo p { color: var(--text-secondary); }
.active-promo .calendar-date { color: var(--primary); border-bottom-color: var(--surface); }

.badge {
  position: absolute;
  top: 1rem;
  right: -1rem;
  background: var(--copper-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  box-shadow: var(--shadow-copper);
}

/* Lists & Tables */
.copper-bullet-list {
  list-style: none;
  margin-bottom: 2rem;
}

.copper-bullet-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.copper-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: var(--secondary);
  transform: rotate(45deg);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.copper-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow-heavy);
}

.copper-table th, .copper-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--surface);
}

.copper-table th {
  background-color: var(--primary);
  color: white;
  font-family: var(--font-heading);
}

.copper-table .highlight {
  background-color: rgba(184, 115, 51, 0.05);
  font-weight: 600;
  color: var(--primary);
  border-left: 2px solid var(--secondary);
}

/* About Cards */
.card-panel {
  background: white;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-heavy);
  border-bottom: 4px solid var(--primary);
  text-align: center;
}

.card-icon-copper {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--copper-gradient);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.roster-card {
  padding: 1.5rem;
  background: var(--surface);
  border-left: 4px solid var(--secondary);
}

/* Contact Form */
.form-container-brass {
  background-color: white;
  padding: 3rem;
  border: 1px solid var(--secondary);
  box-shadow: var(--shadow-heavy);
  position: relative;
}

.form-container-brass::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid var(--secondary);
  z-index: -1;
  opacity: 0.3;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  font-family: var(--font-body);
  background-color: var(--background);
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.contact-sidebar .info-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.margin-bottom { margin-bottom: 2rem; }

/* Ticket Interface (Progressive Stepper) */
.ticket-page-bg {
  background-color: var(--dark-slate);
  color: white;
  min-height: 80vh;
}

.draw-countdown-header {
  background-color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  padding: 2rem 0;
}

.countdown-gauge {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gauge-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--secondary);
}

.gauge-time {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.gauge-jackpot {
  font-size: 1.25rem;
  font-weight: 600;
}

@media screen and (max-width: 758px) {
  .gauge-time{
    font-size: 2rem;
  }

  .gauge-jackpot{
    font-size: 1rem;
  }

  .gauge-label{
    font-size: 0.575rem;
  }
}

@media screen and (max-width: 648px) {
  .countdown-gauge{
    flex-direction: column;
    gap: 10px;
  }
}

.stepper-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.step-panel {
  background-color: #2b3035;
  padding: 3rem;
  border-radius: 4px;
  box-shadow: var(--shadow-heavy);
}

.step-panel.hidden {
  display: none;
}

.step-header h2 {
  color: white;
}

.step-header p {
  color: #adb5bd;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.crystal-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.crystal-node {
  aspect-ratio: 1;
  background-color: rgba(255,255,255,0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid rgba(184, 115, 51, 0.3);
}

.crystal-node:hover {
  background-color: rgba(184, 115, 51, 0.2);
}

.crystal-node.selected {
  background: var(--copper-gradient);
  color: var(--primary);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.multiplier-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.multi-option {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.multi-option input {
  display: none;
}

.multi-box {
  display: block;
  width: 100%;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
}

.multi-option input:checked + .multi-box {
  border-color: var(--secondary);
  background: rgba(184, 115, 51, 0.1);
  color: var(--secondary);
}

.price-add { font-size: 0.875rem; color: #adb5bd; }

.checkout-summary-box {
  background: rgba(0,0,0,0.2);
  padding: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.copper-text { color: var(--secondary); font-weight: 700; letter-spacing: 2px; }

.total-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
}

.engraved-ledger {
  background-color: var(--primary);
  padding: 2rem;
  border: 4px solid var(--secondary);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  position: sticky;
  top: 100px;
}

.engraved-ledger h3 {
  color: var(--secondary);
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ledger-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #e9ecef;
}

.ledger-divider {
  height: 1px;
  background-color: rgba(184, 115, 51, 0.3);
  margin: 1.5rem 0;
}

.ledger-line.total {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.ledger-note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #adb5bd;
  text-align: center;
}

/* Policy Pages */
.policy-header {
  padding: 4rem 0 2rem;
}

.legal-document {
  background-color: white;
}

.document-body {
  max-width: 800px;
  margin: 0 auto;
}

.document-body h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface);
  color: var(--primary);
}

.document-body p {
  color: var(--text-secondary);
  text-align: justify;
}

.document-body ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.document-body li {
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background-color: var(--dark-slate);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 700;
}

.footer-brand img {
  width: 50px;
  height: 50px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #adb5bd;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-compliance {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.compliance-text h4 {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.compliance-text p {
  font-size: 0.875rem;
  color: #6c757d;
  max-width: 800px;
}

.license-block {
  margin-top: 1rem;
  font-weight: 600;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.compliance-badges img {
  height: 40px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.compliance-badges a:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  background-color: white;
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  border-top: 4px solid var(--secondary);
  box-shadow: var(--shadow-heavy);
  z-index: 2001;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-close::before {
  content: '×';
}

.modal-content h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-content-stack {
    flex-direction: column;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  .hero-ticker-row {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .grid-3-col, .calendar-grid, .roster-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stepper-layout {
    grid-template-columns: 1fr;
  }
  .engraved-ledger {
    position: static;
  }
}

@media (max-width: 768px) {
  .main-nav, .auth-controls .btn-text {
    display: none;
  }
  .burger-menu {
    display: block;
  }
  .main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
  }
  .main-nav.mobile-active ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .grid-3-col, .calendar-grid, .roster-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stat-counters {
    flex-direction: column;
  }
  .crystal-matrix {
    grid-template-columns: repeat(5, 1fr);
  }
  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 360px) {
  .crystal-matrix {
    grid-template-columns: repeat(4, 1fr);
  }
  .step-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .step-actions button {
    width: 100%;
  }
  .countdown-gauge {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .gauge-time {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-text {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .crystal-node, .btn, .multi-box, a {
    transition: none;
  }
}