/* ===================================================================
 * OCCULTISM UNLEASHED — Premium Light Theme v1.0
 * Author: Dominec369
 * Updated: 2026-07-30
 * ===================================================================
 * This file replaces all inline dark-theme CSS across the site.
 * Includes: homepage, tool pages, gate page, sanctum page.
 * ================================================================= */

/* ================================
   1. CSS VARIABLES — Light Theme
   ================================ */
:root {
  --ou-bg: #faf8f3;
  --ou-bg-alt: #f5f0e6;
  --ou-bg-card: #ffffff;
  --ou-bg-ghost: rgba(201, 168, 76, 0.04);
  --ou-bg-warm: #f0ebe0;
  --ou-gold: #c9a84c;
  --ou-gold-light: #dbc065;
  --ou-gold-dark: #b8922e;
  --ou-gold-glow: rgba(201, 168, 76, 0.18);
  --ou-gold-faint: rgba(201, 168, 76, 0.08);
  --ou-copper: #b87333;
  --ou-red: #8b0000;
  --ou-red-light: #cc2222;
  --ou-text: #1a1a1a;
  --ou-text-soft: #2b2b2b;
  --ou-text-muted: #6b5d4a;
  --ou-text-dim: #9a8d7a;
  --ou-text-light: #b8ab98;
  --ou-border: rgba(201, 168, 76, 0.25);
  --ou-border-light: rgba(201, 168, 76, 0.12);
  --ou-shadow: 0 2px 16px rgba(0,0,0,0.06);
  --ou-shadow-hover: 0 8px 32px rgba(201, 168, 76, 0.15);
  --ou-shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.12);
  --ou-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ou-font-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ou-radius: 16px;
  --ou-radius-sm: 8px;
  --ou-max-width: 1200px;
  --ou-header-height: 72px;
  --ou-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   2. RESET & BASE
   ================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ou-font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ou-text);
  background: var(--ou-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ou-transition); }
a:hover { color: var(--ou-gold-dark); }
ul, ol { list-style: none; }

/* ================================
   3. TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ou-font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ou-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p { margin-bottom: 1rem; }
.ou-dim { color: var(--ou-text-dim); }
.ou-muted { color: var(--ou-text-muted); }
.ou-gold { color: var(--ou-gold); }

/* Ornament SVG divider */
.ou-ornament {
  display: block;
  width: 120px;
  height: 12px;
  margin: 1rem auto;
}

/* ================================
   4. UTILITY CLASSES
   ================================ */
.ou-container {
  max-width: var(--ou-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ou-section {
  padding: 4rem 0;
}

.ou-text-center { text-align: center; }
.ou-mt-1 { margin-top: 1rem; }
.ou-mt-2 { margin-top: 2rem; }
.ou-mb-1 { margin-bottom: 1rem; }
.ou-mb-2 { margin-bottom: 2rem; }

.ou-flex { display: flex; }
.ou-flex-center { display: flex; align-items: center; justify-content: center; }
.ou-flex-between { display: flex; align-items: center; justify-content: space-between; }
.ou-flex-wrap { flex-wrap: wrap; }

.ou-gap-1 { gap: 1rem; }
.ou-gap-2 { gap: 2rem; }

.ou-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ou-gold-faint), transparent);
  margin: 2rem 0;
}

.ou-decorative-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ou-gold-faint);
  font-size: 0.7rem;
  letter-spacing: 12px;
  margin: 1.5rem 0;
}

/* ================================
   5. SCROLL REVEAL
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ================================
   6. BUTTONS
   ================================ */
.ou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--ou-font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--ou-gold) 0%, var(--ou-gold-dark) 100%);
  border: none;
  border-radius: var(--ou-radius-sm);
  cursor: pointer;
  transition: all var(--ou-transition);
  position: relative;
  overflow: hidden;
}

.ou-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ou-shadow-gold);
  color: #fff;
}

.ou-btn:active {
  transform: translateY(0);
}

.ou-btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.ou-btn-outline {
  background: transparent;
  color: var(--ou-gold-dark);
  border: 1px solid var(--ou-gold);
}

.ou-btn-outline:hover {
  background: var(--ou-gold-faint);
  box-shadow: none;
  color: var(--ou-gold-dark);
}

.ou-btn-ghost {
  background: transparent;
  color: var(--ou-text-muted);
  border: 1px solid var(--ou-border);
}

.ou-btn-ghost:hover {
  background: var(--ou-bg-alt);
  color: var(--ou-text);
  box-shadow: none;
}

/* ================================
   7. FORM ELEMENTS
   ================================ */
.ou-label {
  display: block;
  font-family: var(--ou-font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ou-text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}

.ou-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--ou-font-body);
  font-size: 1rem;
  color: var(--ou-text);
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border);
  border-radius: var(--ou-radius-sm);
  transition: border-color var(--ou-transition), box-shadow var(--ou-transition);
  outline: none;
}

.ou-input:focus {
  border-color: var(--ou-gold);
  box-shadow: 0 0 0 3px var(--ou-gold-faint);
}

.ou-input::placeholder {
  color: var(--ou-text-light);
}

/* ================================
   8. HEADER & NAVIGATION
   ================================ */
.ou-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ou-border-light);
  height: var(--ou-header-height);
}

.ou-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--ou-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.ou-logo {
  font-family: var(--ou-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ou-text);
  letter-spacing: 1px;
}

.ou-logo .ou-gold {
  color: var(--ou-gold);
}

.ou-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ou-nav-link {
  font-family: var(--ou-font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ou-text-muted);
  transition: color var(--ou-transition);
  position: relative;
}

.ou-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ou-gold);
  transition: width var(--ou-transition);
}

.ou-nav-link:hover {
  color: var(--ou-gold-dark);
}

.ou-nav-link:hover::after {
  width: 100%;
}

.ou-nav-link.active {
  color: var(--ou-gold-dark);
}

.ou-nav-link.active::after {
  width: 100%;
}

/* Mobile hamburger */
.ou-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.ou-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ou-text);
  border-radius: 1px;
  transition: all var(--ou-transition);
}

.ou-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.ou-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.ou-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   9. HERO SECTION (Homepage)
   ================================ */
.ou-hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--ou-bg) 0%, var(--ou-bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.ou-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--ou-gold-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.ou-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: 2px;
}

.ou-hero .ou-gold {
  color: var(--ou-gold);
}

.ou-hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ou-text-muted);
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.ou-hero .ou-ornament {
  position: relative;
  z-index: 1;
}

.ou-hero .subtitle {
  font-size: 0.85rem;
  color: var(--ou-text-dim);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.ou-hero .subtitle a {
  color: var(--ou-gold-dark);
}

.ou-hero .subtitle a:hover {
  text-decoration: underline;
}

/* Sigil row in hero */
.ou-sigil-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.ou-sigil-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ou-sigil-item svg {
  width: 48px;
  height: 48px;
  opacity: 0.6;
  transition: opacity var(--ou-transition), transform var(--ou-transition);
}

.ou-sigil-item:hover svg {
  opacity: 1;
  transform: translateY(-3px);
}

.ou-sigil-item span {
  font-size: 0.7rem;
  color: var(--ou-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================
   10. SOCIAL PROOF COUNTER
    ================================ */
.ou-live-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ou-gold-faint);
  border: 1px solid var(--ou-border-light);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--ou-text-muted);
  margin-top: 2rem;
}

.ou-live-count .count {
  font-family: var(--ou-font-serif);
  font-weight: 700;
  color: var(--ou-gold-dark);
  font-size: 1rem;
}

.ou-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ================================
   11. FILTER & SEARCH BAR
    ================================ */
.ou-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  margin: 2rem auto 1rem;
  max-width: 900px;
}

.ou-filter-bar .ou-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  font-family: var(--ou-font-body);
  font-size: 0.95rem;
  color: var(--ou-text);
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border);
  border-radius: 100px;
  outline: none;
  transition: all var(--ou-transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a8d7a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18px center;
  background-size: 14px;
}

.ou-filter-bar .ou-search:focus {
  border-color: var(--ou-gold);
  box-shadow: 0 0 0 3px var(--ou-gold-faint);
}

.ou-filter-btn {
  padding: 0.5rem 1rem;
  font-family: var(--ou-font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ou-text-muted);
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border-light);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--ou-transition);
}

.ou-filter-btn:hover,
.ou-filter-btn.active {
  background: var(--ou-gold);
  color: #fff;
  border-color: var(--ou-gold);
}

.ou-filter-bar .sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-family: var(--ou-font-body);
  font-size: 0.85rem;
  color: var(--ou-text-muted);
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border-light);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239a8d7a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ================================
   12. TOOL GRID & CARDS
    ================================ */
.ou-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.ou-tool-card {
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border-light);
  border-radius: var(--ou-radius);
  padding: 1.75rem;
  transition: all var(--ou-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ou-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ou-gold), transparent);
  opacity: 0;
  transition: opacity var(--ou-transition);
}

.ou-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ou-shadow-hover);
  border-color: var(--ou-gold-faint);
}

.ou-tool-card:hover::before {
  opacity: 1;
}

.ou-tool-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--ou-gold);
}

.ou-tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ou-text);
}

.ou-tool-card p {
  font-size: 0.95rem;
  color: var(--ou-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.ou-tool-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.ou-tool-card .card-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ou-gold-dark);
  background: var(--ou-gold-faint);
  border-radius: 100px;
  text-transform: uppercase;
}

.ou-tool-card .card-arrow {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ou-gold-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--ou-transition);
  color: var(--ou-gold-dark);
  font-size: 0.85rem;
}

.ou-tool-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Section heading */
.ou-section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ou-section-heading p {
  color: var(--ou-text-muted);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ================================
   13. STATS BAR
    ================================ */
.ou-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  padding: 3rem 1.5rem;
  margin: 0 auto;
  max-width: 800px;
}

.ou-stat-item {
  text-align: center;
}

.ou-stat-number {
  font-family: var(--ou-font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ou-gold);
  line-height: 1;
}

.ou-stat-label {
  font-size: 0.85rem;
  color: var(--ou-text-dim);
  margin-top: 0.3rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ================================
   14. SANCTUM CTA SECTION
    ================================ */
.ou-sanctum-cta {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--ou-bg-alt) 0%, var(--ou-bg) 100%);
  position: relative;
  overflow: hidden;
}

.ou-sanctum-cta::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ou-gold-glow) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.ou-sanctum-cta h2 {
  position: relative;
  z-index: 1;
}

.ou-sanctum-cta p {
  color: var(--ou-text-muted);
  max-width: 600px;
  margin: 1rem auto 2rem;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.ou-sanctum-cta .ou-btn {
  position: relative;
  z-index: 1;
}

/* ================================
   15. SUBSCRIBE CTA
    ================================ */
.ou-subscribe-cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--ou-bg-alt);
  border-top: 1px solid var(--ou-border-light);
  border-bottom: 1px solid var(--ou-border-light);
}

.ou-subscribe-cta h3 {
  margin-bottom: 0.75rem;
}

.ou-subscribe-cta p {
  color: var(--ou-text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.ou-subscribe-cta .ou-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================
   16. FOOTER
    ================================ */
.ou-footer {
  padding: 3rem 1.5rem 2rem;
  background: var(--ou-bg-alt);
  border-top: 1px solid var(--ou-border-light);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ou-text-dim);
}

.ou-footer-inner {
  max-width: var(--ou-max-width);
  margin: 0 auto;
}

.ou-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.ou-footer-nav a {
  font-family: var(--ou-font-serif);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ou-text-muted);
  transition: color var(--ou-transition);
}

.ou-footer-nav a:hover {
  color: var(--ou-gold-dark);
}

.ou-footer-brand {
  font-family: var(--ou-font-serif);
  color: var(--ou-gold);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ou-footer-quote {
  font-style: italic;
  color: var(--ou-text-dim);
  margin: 0 auto 1.5rem;
  max-width: 400px;
  font-size: 0.9rem;
}

.ou-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.ou-footer-links a {
  color: var(--ou-text-dim);
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: color var(--ou-transition);
}

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

.ou-footer-copy {
  border-top: 1px solid var(--ou-border-light);
  padding-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--ou-text-light);
}

.ou-footer-disclaimer {
  font-size: 0.65rem;
  margin-top: 0.5rem;
  color: var(--ou-text-light);
}

/* ================================
   17. TOOL RECOMMENDATIONS
    ================================ */
.ou-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ou-rec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border-light);
  border-radius: var(--ou-radius-sm);
  transition: all var(--ou-transition);
}

.ou-rec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ou-shadow);
  border-color: var(--ou-gold-faint);
}

.ou-rec-card .rec-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ou-gold);
}

.ou-rec-card .rec-name {
  font-family: var(--ou-font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ou-text);
  margin-bottom: 0.3rem;
}

.ou-rec-card .rec-desc {
  font-size: 0.75rem;
  color: var(--ou-text-dim);
  line-height: 1.4;
}

/* ================================
   18. PREMIUM UPSELL
    ================================ */
.ou-upsell {
  text-align: center;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  background: linear-gradient(135deg, var(--ou-bg-card) 0%, var(--ou-bg-alt) 100%);
  border: 1px solid var(--ou-border);
  border-radius: var(--ou-radius);
  position: relative;
  overflow: hidden;
}

.ou-upsell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ou-gold), transparent);
}

.ou-upsell h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--ou-gold-dark);
}

.ou-upsell p {
  color: var(--ou-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ================================
   19. TOOL PAGE LAYOUT
    ================================ */
.ou-tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: var(--ou-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.ou-tool-content {
  min-height: 60vh;
}

.ou-tool-sidebar {
  position: sticky;
  top: calc(var(--ou-header-height) + 1.5rem);
  align-self: start;
}

@media (max-width: 900px) {
  .ou-tool-layout {
    grid-template-columns: 1fr;
  }
  .ou-tool-sidebar {
    position: static;
  }
}

/* ================================
   20. LEAD CAPTURE MODAL
    ================================ */
.ou-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ou-modal-overlay.active {
  display: flex;
}

.ou-modal {
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border);
  border-radius: var(--ou-radius);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modal-in 0.3s ease;
  position: relative;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ou-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--ou-gold-dark);
}

.ou-modal .sub {
  color: var(--ou-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.ou-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--ou-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--ou-transition);
}

.ou-modal-close:hover {
  background: var(--ou-gold-faint);
  color: var(--ou-gold-dark);
}

/* ================================
   21. EXIT INTENT POPUP
    ================================ */
.ou-exit-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--ou-bg-card);
  border-top: 2px solid var(--ou-gold);
  padding: 2rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  animation: slide-up 0.4s ease;
  text-align: center;
}

.ou-exit-popup.active {
  display: block;
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.ou-exit-popup h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--ou-gold-dark);
}

.ou-exit-popup p {
  color: var(--ou-text-muted);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.ou-exit-popup .ou-btn {
  margin: 0 auto;
}

.ou-exit-dismiss {
  display: block;
  margin: 0.5rem auto 0;
  background: none;
  border: none;
  color: var(--ou-text-dim);
  cursor: pointer;
  font-family: var(--ou-font-body);
  font-size: 0.8rem;
  transition: color var(--ou-transition);
}

.ou-exit-dismiss:hover {
  color: var(--ou-text-muted);
}

/* ================================
   22. NEWS TICKER
    ================================ */
.ou-ticker-wrapper {
  overflow: hidden;
  background: var(--ou-bg-ghost);
  border-top: 1px solid var(--ou-border-light);
  border-bottom: 1px solid var(--ou-border-light);
  padding: 0.5rem 0;
  position: relative;
}

.ou-ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ou-text-muted);
  font-family: var(--ou-font-serif);
  font-style: italic;
}

.ou-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ou-ticker-track .sep {
  color: var(--ou-gold-faint);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================
   23. THREE.JS PARTICLE CANVAS
    ================================ */
#three-canvas,
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

/* Gold particles on light background */
#three-canvas canvas,
#canvas-container canvas {
  filter: sepia(0.3) saturate(0.5) brightness(1.2);
}

/* ================================
   ================================================================
   PAGE-SPECIFIC: GATE
   ================================================================
   ================================ */

/* ---------- Gate Backdrop ---------- */
.gate-page .backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, var(--ou-bg) 0%, var(--ou-bg-alt) 40%, var(--ou-bg-warm) 100%);
}

.gate-page .rune-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.gate-page .rune-layer span {
  position: absolute;
  color: var(--ou-gold-faint);
  font-size: 1.2rem;
  animation: rune-float 18s linear infinite;
  user-select: none;
  pointer-events: none;
}

@keyframes rune-float {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.3; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ---------- Ember Canvas ---------- */
.gate-page #emberCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Darkening Veil ---------- */
.gate-page .darkening-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.gate-page .darkening-veil.active {
  opacity: 0.15;
  background: radial-gradient(ellipse at center, transparent 40%, var(--ou-gold-glow) 100%);
}

/* ---------- Gate Stage ---------- */
.gate-page .gate-stage {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  z-index: 2;
}

.gate-page .hero-text h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ou-text);
  margin-bottom: 0.3rem;
}

.gate-page .hero-text h1::after {
  content: '\u25C7';
  display: block;
  font-size: 1rem;
  color: var(--ou-gold);
  margin-top: 0.5rem;
  opacity: 0.5;
}

.gate-page .tagline {
  color: var(--ou-text-muted);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.gate-page .ornament {
  display: block;
  width: 120px;
  height: 12px;
  margin: 0 auto;
}

.gate-page .ornament path,
.gate-page .ornament circle {
  stroke: var(--ou-gold);
  fill: none;
}

.gate-page .ornament circle[fill] {
  fill: var(--ou-gold);
}

/* ---------- The Gate ---------- */
.gate-page .gate {
  position: relative;
  width: 200px;
  height: 280px;
  margin: 2rem auto;
  perspective: 800px;
}

.gate-page .gate-light {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ou-gold-glow) 0%, transparent 70%);
  opacity: 0.4;
  animation: gate-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gate-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

.gate-page .gate-door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--ou-bg-card) 0%, var(--ou-bg-alt) 100%);
  border: 1px solid var(--ou-border);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}

.gate-page .gate-door.left {
  left: 0;
  border-radius: 4px 0 0 4px;
  transform-origin: left center;
}

.gate-page .gate-door.right {
  right: 0;
  border-radius: 0 4px 4px 0;
  transform-origin: right center;
}

.gate-page .gate.open .gate-door.left {
  transform: rotateY(-110deg);
}

.gate-page .gate.open .gate-door.right {
  transform: rotateY(110deg);
}

/* ---------- Sigil ---------- */
.gate-page .sigil {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  z-index: 5;
  cursor: pointer;
  transition: transform var(--ou-transition);
}

.gate-page .sigil:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.gate-page .sigil svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px var(--ou-gold-glow));
  transition: filter var(--ou-transition);
}

.gate-page .sigil:hover svg {
  filter: drop-shadow(0 0 16px var(--ou-gold-glow));
}

.gate-page .sigil circle,
.gate-page .sigil polygon,
.gate-page .sigil line {
  stroke: var(--ou-gold);
  fill: none;
}

.gate-page .sigil circle[fill] {
  fill: var(--ou-gold);
}

/* ---------- CTA ---------- */
.gate-page .cta-wrap {
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.gate-page .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2.5rem;
  font-family: var(--ou-font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--ou-gold) 0%, var(--ou-gold-dark) 100%);
  border-radius: var(--ou-radius-sm);
  transition: all var(--ou-transition);
  position: relative;
  overflow: hidden;
}

.gate-page .cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--ou-shadow-gold);
  color: #fff;
}

.gate-page .cta-echo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gate-page .cta-echo span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ou-gold);
  border-radius: inherit;
  animation: cta-echo 2s ease-out infinite;
}

.gate-page .cta-echo span:nth-child(2) { animation-delay: 0.5s; }
.gate-page .cta-echo span:nth-child(3) { animation-delay: 1s; }

@keyframes cta-echo {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.gate-page .gate-hint {
  font-size: 0.75rem;
  color: var(--ou-text-dim);
  margin-top: 0.75rem;
  font-style: italic;
  opacity: 0.6;
  animation: hint-fade 3s ease-in-out infinite;
}

@keyframes hint-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ---------- Section Divider ---------- */
.gate-page .section-divider {
  text-align: center;
  font-family: var(--ou-font-serif);
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ou-gold);
  padding: 2rem 1rem 1rem;
  position: relative;
}

.gate-page .section-divider::before,
.gate-page .section-divider::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--ou-border);
  margin: 0.5rem auto;
}

.gate-page .container {
  max-width: var(--ou-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.gate-page .container header {
  text-align: center;
  margin-bottom: 2rem;
}

.gate-page .container header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ou-text);
}

.gate-page .container header p {
  color: var(--ou-text-muted);
  font-size: 1.05rem;
}

.gate-page .container header .subtitle {
  font-size: 0.85rem;
  color: var(--ou-text-dim);
  margin-top: 0.25rem;
}

/* ---------- Gate Tool Grid ---------- */
.gate-page .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.gate-page .tool-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border-light);
  border-radius: var(--ou-radius-sm);
  transition: all var(--ou-transition);
  text-decoration: none;
  color: inherit;
}

.gate-page .tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ou-shadow-hover);
  border-color: var(--ou-gold-faint);
}

.gate-page .tool-card .tool-icon {
  font-size: 1.5rem;
  color: var(--ou-gold);
  flex-shrink: 0;
  line-height: 1;
}

.gate-page .tool-card h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--ou-text);
}

.gate-page .tool-card p {
  font-size: 0.82rem;
  color: var(--ou-text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.gate-page .tool-card .tag {
  font-size: 0.65rem;
  color: var(--ou-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Info Section ---------- */
.gate-page .info-section {
  background: linear-gradient(135deg, var(--ou-bg-warm) 0%, var(--ou-bg-alt) 100%);
  border: 1px solid var(--ou-border-light);
  border-radius: var(--ou-radius);
  padding: 2rem;
  margin: 2rem 0;
}

.gate-page .info-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--ou-gold-dark);
}

.gate-page .info-section p {
  color: var(--ou-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Gate Footer ---------- */
.gate-page .footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--ou-text-dim);
  font-size: 0.8rem;
}

.gate-page .footer a {
  color: var(--ou-gold-dark);
}

/* ---------- Gate Modal ---------- */
.gate-page .modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gate-page .modal-overlay.active {
  display: flex;
}

.gate-page .modal-content {
  background: var(--ou-bg-card);
  border-radius: var(--ou-radius);
  width: 100%;
  max-width: 900px;
  height: 80vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.gate-page .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--ou-bg-card);
  color: var(--ou-text);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all var(--ou-transition);
}

.gate-page .modal-close:hover {
  background: var(--ou-gold);
  color: #fff;
}

.gate-page .modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================
   ================================================================
   PAGE-SPECIFIC: SANCTUM (GAME HUB)
   ================================================================
   ================================ */

/* The Sanctum page - game hub container */
.sanctum-page {
  background: var(--ou-bg);
}

.sanctum-page .gh-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hub bar */
.sanctum-page .gh-hub-bar {
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border-light);
  border-radius: var(--ou-radius-sm);
  padding: 0.75rem 1.25rem;
  margin: 1rem auto;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ou-shadow);
}

.sanctum-page .gh-hub-bar .gh-stat {
  text-align: center;
}

.sanctum-page .gh-hub-bar .gh-stat .val {
  font-family: var(--ou-font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ou-gold-dark);
}

.sanctum-page .gh-hub-bar .gh-stat .lbl {
  font-size: 0.65rem;
  color: var(--ou-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom navigation */
.sanctum-page .gh-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ou-bg-card);
  border-top: 1px solid var(--ou-border-light);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  z-index: 50;
}

.sanctum-page .gh-nav .nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  font-family: var(--ou-font-serif);
  font-size: 0.65rem;
  color: var(--ou-text-dim);
  cursor: pointer;
  transition: all var(--ou-transition);
  border-radius: var(--ou-radius-sm);
}

.sanctum-page .gh-nav .nav-btn .nav-icon {
  font-size: 1.2rem;
}

.sanctum-page .gh-nav .nav-btn.active {
  color: var(--ou-gold-dark);
  background: var(--ou-gold-faint);
}

.sanctum-page .gh-nav .nav-btn:hover {
  color: var(--ou-gold-dark);
}

/* Scene cards */
.sanctum-page .gh-scene {
  animation: scene-in 0.3s ease;
}

@keyframes scene-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badges */
.sanctum-page .gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  background: var(--ou-gold-faint);
  color: var(--ou-gold-dark);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--ou-border-light);
}

/* Portal entrance */
.sanctum-page .gh-portal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ou-bg);
  transition: opacity 1s ease, transform 1s ease;
}

.sanctum-page .gh-portal.hide {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.sanctum-page .gh-portal .gh-portal-sigil {
  width: 100px;
  height: 100px;
  animation: portal-pulse 2s ease-in-out infinite;
}

.sanctum-page .gh-portal .gh-portal-sigil circle,
.sanctum-page .gh-portal .gh-portal-sigil polygon {
  stroke: var(--ou-gold);
  fill: none;
}

.sanctum-page .gh-portal .gh-portal-gate {
  position: absolute;
  width: 160px;
  height: 220px;
  border: 1px solid var(--ou-border);
  transition: transform 1.2s ease;
}

.sanctum-page .gh-portal .gh-portal-gate.left {
  right: 50%;
  margin-right: 20px;
  transform-origin: right center;
}

.sanctum-page .gh-portal .gh-portal-gate.right {
  left: 50%;
  margin-left: 20px;
  transform-origin: left center;
}

.sanctum-page .gh-portal.hide .gh-portal-gate.left {
  transform: rotateY(120deg);
}

.sanctum-page .gh-portal.hide .gh-portal-gate.right {
  transform: rotateY(-120deg);
}

@keyframes portal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Ghost dust particles */
.sanctum-page .gh-dust {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ou-gold);
  animation: dust-rise 3s ease-out forwards;
  pointer-events: none;
}

@keyframes dust-rise {
  0% { transform: translate(0, 0); opacity: 0.6; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* Swipe hint */
.sanctum-page .gh-swipe-hint {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--ou-text-dim);
  background: var(--ou-bg-card);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--ou-border-light);
  z-index: 100;
}

.sanctum-page .gh-swipe-hint.show {
  display: block;
  animation: hint-bounce 2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

/* Audio button */
.sanctum-page #ghAudioBtn {
  background: var(--ou-bg-ghost);
  border: 1px solid var(--ou-border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ou-transition);
  font-size: 1rem;
}

.sanctum-page #ghAudioBtn.on {
  background: var(--ou-gold-faint);
  border-color: var(--ou-gold);
}

/* Cards within sanctum tools */
.sanctum-page .gh-card {
  background: var(--ou-bg-card);
  border: 1px solid var(--ou-border-light);
  border-radius: var(--ou-radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--ou-shadow);
}

.sanctum-page .gh-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ================================
   24. RESPONSIVE
    ================================ */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .ou-header-inner {
    padding: 0 1rem;
  }

  .ou-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--ou-header-height);
    left: 0;
    right: 0;
    background: var(--ou-bg-card);
    border-bottom: 1px solid var(--ou-border);
    padding: 1rem;
    gap: 1rem;
    box-shadow: var(--ou-shadow);
  }

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

  .ou-hamburger {
    display: flex;
  }

  .ou-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ou-hero {
    padding: 4rem 1rem 3rem;
  }

  .ou-section {
    padding: 2.5rem 0;
  }

  .ou-stats {
    gap: 1.5rem 2rem;
  }

  .ou-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ou-filter-bar .ou-search {
    max-width: 100%;
  }

  .ou-rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ou-upsell {
    margin: 1rem;
    padding: 1.5rem;
  }

  .gate-page .gate {
    width: 160px;
    height: 224px;
  }

  .gate-page .sigil {
    width: 96px;
    height: 96px;
  }

  .gate-page .tool-grid {
    grid-template-columns: 1fr;
  }

  .gate-page .modal-content {
    height: 90vh;
    border-radius: var(--ou-radius-sm);
  }

  .gate-page .modal-overlay {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .ou-hero h1 {
    font-size: 1.8rem;
  }

  .ou-tool-card {
    padding: 1.25rem;
  }

  .ou-footer-nav {
    gap: 0.5rem 1rem;
  }

  .ou-footer-nav a {
    font-size: 0.7rem;
  }

  .ou-stat-number {
    font-size: 1.8rem;
  }

  .gate-page .gate {
    width: 130px;
    height: 182px;
  }

  .gate-page .sigil {
    width: 78px;
    height: 78px;
  }
}

/* ================================
   25. PRINT
    ================================ */
@media print {
  .ou-header,
  .ou-footer,
  .ou-upsell,
  .ou-modal-overlay,
  .ou-exit-popup,
  .ou-ticker-wrapper,
  .ou-filter-bar,
  .sanctum-page .gh-nav,
  .sanctum-page .gh-portal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .ou-tool-card {
    break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* ================================
   26. ACCESSIBILITY
    ================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ou-gold);
  outline-offset: 2px;
}

/* Skip to main content */
.ou-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ou-skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--ou-gold);
  color: #fff;
  z-index: 10000;
  font-family: var(--ou-font-serif);
}
