/* ==========================================================================
   Dogma Engine Branding & Aesthetic Theme
   Premium Dark Mode with Gold/Bronze accents & Glassmorphism
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0a0808;
  --bg-secondary: #12100f;
  --bg-darker: #070605;
  --text-primary: #f5f2eb;
  --text-secondary: #b5af9f;
  --accent-gold: #e5a93c;
  --accent-gold-dark: #c5851c;
  --accent-gold-light: #ffd584;
  --accent-orange: #d86824;
  --card-bg: rgba(26, 22, 20, 0.45);
  --card-border: rgba(229, 169, 60, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Fonts */
  --font-display: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-size-adjust: cap-height from-font;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 24px;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
}

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

/* Glassmorphism Utility */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.5);
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #a0400b 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(216, 104, 36, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 104, 36, 0.5);
}

/* Orbs Background */
.glow-orb {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

.orb-1 {
  top: 10%;
  left: -10%;
  background: var(--accent-gold);
}

.orb-2 {
  top: 60%;
  right: -10%;
  background: var(--accent-orange);
}

/* Header & Nav styling */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(10, 8, 8, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 769px) {
  .logo-link {
    width: 250px;
    flex-shrink: 0;
  }
}

.logo-icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.nav-logo {
  width: 34px;
  height: 34px;
  background-color: var(--accent-gold);
  -webkit-mask-image: url('assets/logo_bw.png');
  mask-image: url('assets/logo_bw.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.6s ease;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1.5px;
}

.logo-text-sub {
  color: var(--accent-gold);
  font-weight: 500;
}

#main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

#main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

#main-nav a:hover {
  color: var(--accent-gold);
}

.nav-waitlist-item {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
#hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  position: relative;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

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

.badge {
  display: inline-block;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: var(--accent-gold-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 50%, var(--accent-orange) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-wrapper {
  padding: 30px;
  border-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
}

.visual-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 169, 60, 0.3);
}

.hero-showcase-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
}

.visual-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(229, 169, 60, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(229, 169, 60, 0); }
}

/* About Section */
.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-header p {
  font-size: 1.2rem;
  margin-top: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  padding: 40px 32px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 169, 60, 0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--accent-gold-light);
}

/* Feature Showcase */
.features-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-detail-row.reverse {
  direction: rtl;
}

.feature-detail-row.reverse .feature-text {
  direction: ltr;
}

.feature-text {
  padding: 20px 0;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-gold);
  opacity: 0.3;
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.feature-text h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-text p {
  margin-bottom: 24px;
}

.feature-list-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.feature-list-bullets li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.feature-image {
  padding: 40px;
  border-radius: 20px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feature Image Mockups */
.mock-qr-ui {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.qr-scanner-overlay {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-target-box {
  width: 130px;
  height: 130px;
  border: 4px solid var(--accent-gold);
  border-radius: 8px;
}

.qr-scan-line {
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: var(--accent-gold-light);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: calc(100% - 4px); }
  100% { top: 0%; }
}

.qr-mock-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mock-riddle-ui {
  width: 100%;
  max-width: 380px;
}

.riddle-box-header {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.riddle-q {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 20px;
}

.riddle-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mock-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.input-badge.success {
  background: rgba(46, 117, 89, 0.2);
  border: 1px solid #2e7559;
  color: #55c192;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.mock-branch-ui {
  width: 100%;
  display: flex;
  justify-content: center;
}

.branch-nodes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.branch-nodes .node {
  background: rgba(229, 169, 60, 0.05);
  border: 1px solid var(--card-border);
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
}

.branch-nodes .node.active {
  background: rgba(229, 169, 60, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.15);
}

.branch-connector {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, var(--accent-gold) 0%, rgba(229, 169, 60, 0.2) 100%);
}

.branches {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

.branches .sub-node {
  font-size: 0.9rem;
  padding: 10px 18px;
  flex: 1;
  max-width: 200px;
}

.branches .sub-node:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  cursor: pointer;
}

/* Interactive Simulator Section */
.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.simulator-client-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
  border-radius: 20px;
}

.phone-frame {
  width: 320px;
  height: 600px;
  background-color: #0d0d0e;
  border: 8px solid #282729;
  border-radius: 36px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

/* Speaker Camera Notch */
.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  background: #282729;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: #0b0807;
  position: relative;
  user-select: none;
}

.sim-screen-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  z-index: 1;
}

.sim-screen-content.active {
  display: flex;
}

/* Start Screen */
.sim-game-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.sim-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 8, 7, 0.4) 0%, rgba(11, 8, 7, 0.95) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.sim-game-meta {
  text-align: center;
}

.sim-game-meta h3 {
  font-size: 1.5rem;
  color: var(--accent-gold-light);
  margin-bottom: 4px;
}

.sim-game-meta h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  opacity: 0.8;
}

.sim-game-meta p {
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.sim-game-meta button {
  width: 100%;
}

/* Dialogue Screen */
.sim-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: background-image 0.5s ease-in-out;
}

.sim-character-sprite {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 280px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  z-index: -1;
  transition: background-image 0.3s ease-in-out;
}

.sim-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(18px + 10px) 14px 10px 14px;
  background: linear-gradient(to bottom, rgba(11, 8, 7, 0.8) 0%, rgba(11, 8, 7, 0) 100%);
  color: var(--text-primary);
}

.hud-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-step-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  letter-spacing: 0.5px;
}

.dialogue-container {
  margin-top: auto;
  margin-bottom: 20px;
  margin-left: 10px;
  margin-right: 10px;
  padding: 14px;
  background: rgba(18, 14, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 169, 60, 0.25);
  border-radius: 12px;
  cursor: pointer;
}

.speaker-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.dialogue-text-box {
  min-height: 48px;
}

.dialogue-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.4;
}

.dialogue-click-prompt {
  font-size: 0.7rem;
  text-align: right;
  margin-top: 6px;
  color: var(--accent-gold);
  opacity: 0.7;
}

/* Riddle Overlay UI */
.riddle-overlay, .navigation-overlay, .choice-overlay, .finished-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 8, 7, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.riddle-container, .nav-container, .choice-container, .finished-container {
  width: 100%;
  padding: 20px 16px;
  border-radius: 16px;
  text-align: center;
}

.riddle-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.riddle-prompt {
  font-size: 0.9rem;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.4;
}

.riddle-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.riddle-form input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  padding: 10px;
  border-radius: 6px;
  color: var(--text-primary);
  text-align: center;
  font-size: 0.9rem;
}

.riddle-form input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.riddle-feedback {
  font-size: 0.8rem;
  margin-top: 8px;
  font-weight: 500;
  min-height: 18px;
}

.riddle-feedback.success { color: #55c192; }
.riddle-feedback.error { color: #d86824; }

/* Navigation Overlay UI */
.nav-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.nav-container h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.nav-container p {
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.nav-location-target {
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: var(--accent-gold-light);
  padding: 8px;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.nav-scan-simulator button {
  width: 100%;
}

/* Choices Branching Overlay UI */
.choice-container h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.choice-container p {
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.choice-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-buttons-list button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  text-align: left;
}

.choice-buttons-list button:hover {
  background: rgba(229, 169, 60, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

/* Finished Screen UI */
.finished-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.finished-container h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--accent-gold-light);
}

.finished-container p {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.finished-container button {
  width: 100%;
}

/* Developer Console Panel */
.simulator-log-wrapper {
  border-radius: 12px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
  background: rgba(14, 12, 11, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-header {
  background-color: rgba(26, 22, 20, 0.8);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.log-dot.red { background-color: #d9534f; }
.log-dot.yellow { background-color: #f0ad4e; }
.log-dot.green { background-color: #5cb85c; }

.log-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 8px;
}

.log-console {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  word-break: break-all;
}

.log-line.system {
  color: #7b7873;
}

.log-line.action {
  color: var(--accent-gold-light);
}

.log-line.success {
  color: #55c192;
}

.log-line.event {
  color: #5cb85c;
}

.log-line.warning {
  color: var(--accent-orange);
}

/* Technical Architecture & Schema */
.architecture-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.spec-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-list li {
  font-size: 1rem;
}

.spec-list code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-gold-light);
}

.architecture-code-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-header {
  background: rgba(26, 22, 20, 0.6);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.architecture-code-wrapper pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.architecture-code-wrapper code {
  color: #cfc9bb;
}

/* Getting Started Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.step-card {
  padding: 40px 30px;
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 169, 60, 0.35);
}

.step-num-badge {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(229, 169, 60, 0.3);
}

.step-card h3 {
  margin-top: 10px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* FAQ Accordion Section */
.faq-accordion-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 24px;
  border-radius: 12px;
  text-align: left;
}

.faq-question {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin-bottom: 10px;
  text-align: left;
}

.faq-answer {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

/* Footer Section */
footer {
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px 0;
  color: var(--text-secondary);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-link {
  margin-bottom: 16px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  background-color: var(--accent-gold);
  -webkit-mask-image: url('assets/logo_bw.png');
  mask-image: url('assets/logo_bw.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.6s ease;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 380px;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  gap: 40px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

.footer-bottom p {
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-detail-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .feature-detail-row.reverse {
    direction: ltr;
  }
  
  .feature-list-bullets {
    align-items: center;
  }
  
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  
  .simulator-log-wrapper {
    height: 350px;
  }
  
  .architecture-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
  }
  
  #main-nav.active {
    display: block;
  }
  
  #main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .btn-header {
    display: none;
  }
  
  .header-actions {
    margin-left: auto;
    margin-right: 16px;
  }
  
  .nav-waitlist-item {
    display: block;
    margin-top: 15px;
    width: 80%;
    max-width: 280px;
    text-align: center;
  }
  
  .nav-waitlist-item .btn {
    width: 100%;
    padding: 10px 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .branches {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .branches .sub-node {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 360px) {
  .phone-frame {
    width: 280px;
    height: 525px;
  }
}

/* ==========================================================================
   Theme Switcher & Futuristic Neon Styles
   ========================================================================== */

/* Theme Switcher Button */
.theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(229, 169, 60, 0.4);
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.2);
  transform: translateY(-1px);
}

.theme-btn.icon-only-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Language Switcher Button */
.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  min-width: 42px;
  height: 40px;
  margin-right: 12px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--card-border);
  transform: translateY(-1px);
}

body.theme-futuristic .lang-btn:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* Header action spacing */
.header-actions {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.btn-header {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 12px;
}

/* Futuristic Neon Theme Variables Override */
body.theme-futuristic {
  --bg-primary: #030308;
  --bg-secondary: #080812;
  --bg-darker: #010103;
  --text-primary: #e6f9ff;
  --text-secondary: #90afc5;
  --accent-gold: #00f0ff;       /* Cyan neon */
  --accent-gold-dark: #0072ff;  /* Blue neon */
  --accent-gold-light: #c2f9ff; /* Light cyan glow */
  --accent-orange: #ff007f;     /* Hot Pink neon */
  --card-bg: rgba(8, 8, 20, 0.55);
  --card-border: rgba(0, 240, 255, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.1);
  
  --font-display: 'Outfit', sans-serif;
}

/* Apply uppercase and letter spacing in futuristic theme to align text dimensions and prevent layout shifts */
body.theme-futuristic h1,
body.theme-futuristic h2,
body.theme-futuristic h3,
body.theme-futuristic h4,
body.theme-futuristic h5,
body.theme-futuristic h6 {
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Futuristic Specific Overrides */
body.theme-futuristic .orb-1 {
  background: var(--accent-gold);
  opacity: 0.18;
}

body.theme-futuristic .orb-2 {
  background: var(--accent-orange);
  opacity: 0.18;
}

body.theme-futuristic .theme-btn:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

body.theme-futuristic .badge {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-gold-light);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
  letter-spacing: 2px;
}

body.theme-futuristic h1 span {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 50%, var(--accent-orange) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

/* Hue-rotate the background image in Futuristic mode to make the bronze shield look cyan/pink! */
body.theme-futuristic .hero-showcase-img {
  filter: hue-rotate(190deg) saturate(1.8) brightness(1.1) drop-shadow(0 0 25px rgba(0, 240, 255, 0.3));
}

body.theme-futuristic .btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #030308;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

body.theme-futuristic .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}

body.theme-futuristic .btn-accent {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #b00055 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

body.theme-futuristic .btn-accent:hover {
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6);
}

body.theme-futuristic .btn-secondary {
  background: rgba(0, 240, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

body.theme-futuristic .btn-secondary:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-gold);
}

body.theme-futuristic .about-card h3,
body.theme-futuristic .step-card h3 {
  color: var(--accent-gold-light);
}

body.theme-futuristic .step-num-badge {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #030308;
  box-shadow: 0 4px 10px rgba(0, 240, 255, 0.3);
}

body.theme-futuristic .about-card:hover,
body.theme-futuristic .step-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

body.theme-futuristic .faq-question {
  color: var(--accent-gold-light);
}

body.theme-futuristic .logo-text-sub {
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

body.theme-futuristic .dialogue-container {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

body.theme-futuristic .speaker-name,
body.theme-futuristic .dialogue-click-prompt {
  color: var(--accent-gold);
}

body.theme-futuristic .qr-target-box {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

body.theme-futuristic .qr-scan-line {
  background-color: var(--accent-gold-light);
  box-shadow: 0 0 12px var(--accent-gold);
}

body.theme-futuristic .sim-hud-title,
body.theme-futuristic .riddle-title,
body.theme-futuristic .finished-container h3 {
  color: var(--accent-gold-light);
}

body.theme-futuristic .branch-nodes .node.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

body.theme-futuristic .branch-connector {
  background: linear-gradient(to bottom, var(--accent-gold) 0%, rgba(0, 240, 255, 0.15) 100%);
}

body.theme-futuristic .branches .sub-node:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

/* Hide theme text on small screens to save space */
@media (max-width: 576px) {
  .theme-btn .theme-text {
    display: none;
  }
  .theme-btn {
    padding: 8px 10px;
  }
}

/* Global Smooth Theme Transition */
body, header, nav, section, footer, .glass, h1, h2, h3, p, .badge, .btn, .hero-showcase-img, .logo-text, .logo-text-sub, .orb-1, .orb-2, .style-sample-card, .btn-theme-select {
  transition: background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.4s ease,
              border-color 0.6s ease,
              box-shadow 0.6s ease,
              filter 0.6s ease,
              opacity 0.6s ease,
              transform 0.4s ease;
}

/* Customization Layout */
.customization-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.customization-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.customization-text h2 {
  text-align: left;
}

.customization-switcher-box {
  padding: 24px;
  border-radius: 16px;
  margin-top: 16px;
}

.customization-switcher-box h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.switcher-box-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.switcher-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-theme-select {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}

.btn-theme-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-theme-select.active {
  background: rgba(229, 169, 60, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.15);
}

body.theme-futuristic .btn-theme-select[data-theme="fantasy"].active {
  background: rgba(229, 169, 60, 0.1);
  border-color: #e5a93c;
  color: #ffd584;
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.15);
}

body.theme-futuristic .btn-theme-select[data-theme="futuristic"].active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-theme-icon {
  font-size: 1.5rem;
}

.btn-theme-text-wrapper {
  display: flex;
  flex-direction: column;
}

.btn-theme-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-theme-subtitle {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Customization Previews */
.customization-preview {
  display: flex;
  justify-content: center;
}

.style-cards-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 380px;
}

.style-sample-card {
  padding: 24px;
  border-radius: 14px;
  position: relative;
}

.sample-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.style-sample-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.style-sample-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.sample-accent-line {
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

/* Fantasy Card styles */
.style-sample-card.style-fantasy {
  font-family: 'Outfit', sans-serif;
}

.style-sample-card.style-fantasy h3 {
  font-family: 'Cinzel', serif;
  color: #ffd584;
}

.style-sample-card.style-fantasy .sample-badge {
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: #ffd584;
}

.style-sample-card.style-fantasy .sample-accent-line {
  background: linear-gradient(to right, #e5a93c, #915a05);
}

/* Futuristic Card styles */
.style-sample-card.style-futuristic {
  font-family: 'Outfit', sans-serif;
  border-color: rgba(0, 240, 255, 0.15);
}

.style-sample-card.style-futuristic h3 {
  color: #c2f9ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.style-sample-card.style-futuristic .sample-badge {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #c2f9ff;
}

.style-sample-card.style-futuristic .sample-accent-line {
  background: linear-gradient(to right, #00f0ff, #ff007f);
}

/* Highlighting Active Card based on theme class on body */
/* Fantasy Theme Active */
body:not(.theme-futuristic) .style-sample-card.style-fantasy {
  transform: scale(1.03);
  border-color: rgba(229, 169, 60, 0.4);
  box-shadow: 0 8px 25px rgba(229, 169, 60, 0.1);
  opacity: 1;
}

body:not(.theme-futuristic) .style-sample-card.style-futuristic {
  opacity: 0.35;
  filter: blur(0.5px);
}

/* Futuristic Theme Active */
body.theme-futuristic .style-sample-card.style-futuristic {
  transform: scale(1.03);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
  opacity: 1;
}

body.theme-futuristic .style-sample-card.style-fantasy {
  opacity: 0.35;
  filter: blur(0.5px);
}

/* Theme SVG Animation */
.theme-icon-svg {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-btn:hover .theme-icon-svg {
  transform: rotate(15deg);
}

/* Responsive grid overrides */
@media (max-width: 992px) {
  .customization-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .customization-text h2 {
    text-align: center;
  }
  .switcher-buttons {
    justify-content: center;
  }
  .customization-preview {
    width: 100%;
  }
  .style-cards-container {
    max-width: 100%;
  }
}

