@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --background: #030d0f;
  --bg-gradient: linear-gradient(135deg, #030d0f 0%, #06191c 50%, #0a252b 100%);
  --surface: rgba(10, 36, 40, 0.72);
  --surface-hover: rgba(15, 48, 54, 0.88);
  --gold-border: #c5a059;
  --gold-border-hover: #e5c158;
  --gold-text: #e5c158;
  --coral: #ff7f50;
  --green-glow: #2ecc71;
  --text: #eef4f6;
  --text-muted: #789c9e;
  --shadow: 0 16px 45px rgba(197, 160, 89, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  margin: 0; 
  color: var(--text); 
  background: var(--bg-gradient); 
  background-attachment: fixed;
  font-family: "Montserrat", system-ui, sans-serif; 
  line-height: 1.6; 
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

/* Sticky Luxury Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 85px;
  background: rgba(3, 13, 15, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gold-border);
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.05);
  color: var(--gold-text);
  font-size: 24px;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.2);
}
.brand strong {
  font-family: "Cinzel", serif;
  font-size: 19px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.header-nav {
  display: flex;
  gap: 30px;
}
.header-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--gold-text);
  text-shadow: 0 0 8px rgba(229, 193, 88, 0.4);
}

/* Luxury Hero Section */
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: radial-gradient(circle at 90% 10%, rgba(197, 160, 89, 0.06) 0%, transparent 45%);
}
.hero-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--gold-border);
  padding: 60px 40px;
  border-radius: 4px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(197, 160, 89, 0.15);
  pointer-events: none;
}
.hero-card .catalog {
  color: var(--gold-text);
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
}
.hero-card h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 25px;
  color: #fff;
}
.hero-card h1 em {
  font-style: normal;
  color: var(--gold-text);
}
.hero-card p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 35px;
}

.atlas-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 32px;
  border: 1.5px solid var(--gold-border);
  border-radius: 0;
  background: rgba(197, 160, 89, 0.05);
  color: var(--gold-text);
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.2s;
  letter-spacing: 0.15em;
}
.atlas-button:hover {
  background: var(--gold-text);
  color: #030d0f;
  box-shadow: 0 0 25px rgba(229, 193, 88, 0.35);
  transform: translateY(-2px);
}
.atlas-button.outline {
  border-color: var(--text-muted);
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
}
.atlas-button.outline:hover {
  border-color: var(--gold-border);
  color: var(--gold-text);
}

/* Centered Game Box Layout */
.study-section {
  padding: 95px 24px;
}
.section-heading {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}
.section-heading h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  margin: 0 0 15px;
  color: #fff;
  letter-spacing: 0.05em;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 16px;
}

.study-desk {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Objective chalkboard / luxury card */
.clue-banner {
  background: var(--surface);
  border: 1.5px solid var(--gold-border);
  padding: 20px 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  position: relative;
}
.clue-banner::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(197, 160, 89, 0.08);
  pointer-events: none;
}

/* Canvas Area */
.canvas-frame {
  position: relative;
  aspect-ratio: 45/26;
  overflow: hidden;
  border: 2px solid var(--gold-border);
  box-shadow: var(--shadow);
  background: #020b0d;
}
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay prompts */
.game-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(3, 13, 15, 0.95);
  backdrop-filter: blur(10px);
}
.game-overlay.open {
  display: grid;
}
.game-overlay h3 {
  font-family: "Cinzel", serif;
  font-size: 38px;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: 0.05em;
}
.game-overlay p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 24px;
}

/* Dials Stats Layout */
.stats-dials {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.dial-card {
  background: var(--surface);
  border: 1.5px solid var(--gold-border);
  padding: 15px 10px;
  text-align: center;
  position: relative;
}
.dial-card small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dial-card strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 20px;
  margin-top: 4px;
  color: var(--gold-text);
}

/* Live Logger Panel */
.logger-panel {
  background: var(--surface);
  border: 1.5px solid var(--gold-border);
  padding: 20px 25px;
}
.logger-panel h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  border-bottom: 1px dashed rgba(197, 160, 89, 0.25);
  padding-bottom: 6px;
  color: #fff;
}
.logger-entries {
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--green-glow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: monospace;
}
.logger-entries p {
  margin: 0;
}
.logger-entries .err {
  color: var(--coral);
}
.logger-entries .sys {
  color: var(--gold-text);
}

/* Eco Manual Steps Grid */
.method-section {
  padding: 95px 24px;
  background: rgba(3, 13, 15, 0.4);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.method-card {
  background: var(--surface);
  border: 1.5px solid var(--gold-border);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.method-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-hover);
}
.method-card span {
  font-family: "Cinzel", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-text);
  display: block;
  margin-bottom: 10px;
}
.method-card h3 {
  font-family: "Cinzel", serif;
  font-size: 18px;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: 0.05em;
}
.method-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Luxury Contact Form */
.contact-section {
  padding: 95px 24px;
}
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--gold-border);
  padding: 50px 40px;
  position: relative;
  box-shadow: var(--shadow);
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(197, 160, 89, 0.12);
  pointer-events: none;
}
.contact-card h2 {
  font-family: "Cinzel", serif;
  font-size: 30px;
  margin: 0 0 15px;
  text-align: center;
  color: #fff;
  letter-spacing: 0.05em;
}
.contact-card > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 35px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.form-group input, .form-group textarea {
  padding: 12px;
  border: 1.5px solid var(--gold-border);
  background: rgba(3, 13, 15, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
  border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-border-hover);
}
.contact-form .atlas-button {
  align-self: center;
}

/* Footer layout */
.footer {
  min-height: 150px;
  background: rgba(3, 13, 15, 0.95);
  border-top: 1px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 40px clamp(20px,5vw,80px);
}
.footer p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 5px 0 0;
}
.footer-brand strong {
  font-family: "Cinzel", serif;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.05em;
}
.footer-contacts {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.footer-contacts p {
  margin: 4px 0;
}
.footer-contacts a {
  color: var(--gold-text);
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold-text);
}

.toast {
  position: fixed; 
  z-index: 120; 
  left: 50%; 
  bottom: 24px; 
  transform: translate(-50%, 18px); 
  padding: 12px 24px; 
  border: 1.5px solid var(--gold-border); 
  background: rgba(3, 13, 15, 0.95); 
  color: var(--gold-text); 
  box-shadow: var(--shadow); 
  font-size: 13px; 
  font-weight: 600; 
  opacity: 0; 
  pointer-events: none; 
  transition: .2s;
  letter-spacing: 0.05em;
}
.toast.show { 
  opacity: 1; 
  transform: translate(-50%, 0); 
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  z-index: 110;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  background: rgba(3, 13, 15, 0.98);
  border-top: 2px solid var(--gold-border);
  box-shadow: 0 -8px 25px rgba(0,0,0,0.4);
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cookie-content p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.cookie-content .atlas-button {
  min-height: 38px;
  padding: 0 18px;
  box-shadow: none;
}

/* Pricing Page Dashboard style */
.pricing-section {
  padding: 85px 24px;
  max-width: 1050px;
  margin: 0 auto;
}
.pricing-heading {
  text-align: center;
  margin-bottom: 50px;
}
.pricing-heading h1 {
  font-family: "Cinzel", serif;
  font-size: 42px;
  margin: 0 0 15px;
  color: #fff;
  letter-spacing: 0.05em;
}
.pricing-heading p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.price-card {
  background: var(--surface);
  border: 1.5px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
  border-radius: 0;
  box-shadow: var(--shadow);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-border-hover);
}
.price-card.popular {
  border-color: var(--coral);
  transform: scale(1.03);
}
.price-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
}
.card-inner {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card h3 {
  margin: 10px 0 15px;
  font-family: "Cinzel", serif;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: #fff;
}
.price-card .price {
  font-size: 38px;
  font-family: "Cinzel", serif;
  color: var(--gold-text);
  margin: 0 0 20px;
}
.price-card .price span {
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  color: var(--text-muted);
}
.price-card .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  min-height: 40px;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding-top: 20px;
}
.features-list li {
  font-size: 13px;
  position: relative;
  padding-left: 20px;
}
.features-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold-text);
}
.price-card .atlas-button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  box-shadow: 0 0 12px rgba(255, 127, 80, 0.4);
}

/* Modal Overlay and Gold Form */
.modal-overlay {
  position: fixed;
  z-index: 150;
  inset: 0;
  background: rgba(3, 13, 15, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.checkout-modal {
  background: var(--surface);
  border: 2px solid var(--gold-border);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
}
.checkout-modal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(197, 160, 89, 0.1);
  pointer-events: none;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.modal-header h2 {
  margin: 5px 0 0;
  font-size: 26px;
  font-family: "Cinzel", serif;
  color: #fff;
}
.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.close-btn:hover {
  color: var(--coral);
}
.order-summary {
  background: rgba(197, 160, 89, 0.03);
  border: 1px solid rgba(197, 160, 89, 0.15);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.price-tag {
  color: var(--gold-text);
  font-weight: 700;
  font-size: 16px;
}
.billing-disclosure {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 15px 0;
}

/* Legal text styling */
.legal-main {
  padding: 85px 24px;
}
.legal-copy {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--gold-border);
  padding: 50px 30px;
  position: relative;
  box-shadow: var(--shadow);
}
.legal-copy::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(197, 160, 89, 0.1);
  pointer-events: none;
}
.legal-copy h1 {
  font-family: "Cinzel", serif;
  font-size: 38px;
  color: #fff;
  letter-spacing: 0.05em;
}
.legal-copy h2 {
  font-family: "Cinzel", serif;
  font-size: 24px;
  margin-top: 30px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 6px;
  color: #fff;
}
.legal-copy p {
  color: var(--text-muted);
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive adjustments */
@media(max-width: 930px) {
  .clue-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .stats-dials {
    grid-template-columns: repeat(3, 1fr);
  }
  .method-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .price-card.popular {
    transform: none;
  }
  .price-card.popular:hover {
    transform: translateY(-5px);
  }
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
@media(max-width: 650px) {
  .stats-dials {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .contact-card {
    padding: 30px 20px;
  }
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
