/**
 * Huyền Cơ Theme – main.css
 * Dark premium theme with amber/gold accent
 * @version 1.0.0
 */

/* ============================================================
   CSS VARIABLES (Design Tokens)
============================================================ */
:root {
  --bg-base:       #070401;
  --bg-card:       #0d0a07;
  --bg-card-2:     #120e09;
  --bg-elevated:   #1a1208;
  --accent:        #D97706;
  --accent-hover:  #F59E0B;
  --accent-200:    #FDE68A;
  --accent-dim:    rgba(120,53,15,0.5);
  --accent-glow:   rgba(217,119,6,0.15);
  --accent-border: rgba(120,53,15,0.35);
  --text-1:        #F5F5F4;
  --text-2:        #E7E5E4;
  --text-3:        #D6D3D1;
  --text-4:        #A8A29E;
  --text-5:        #78716C;
  --border:        #292524;
  --border-warm:   rgba(120,53,15,0.35);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   9999px;
  --container:     1280px;
  --transition:    all 0.25s ease;
  --shadow-card:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-hover:  0 12px 32px rgba(120,53,15,0.15);
  --header-h:      76px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-4);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
strong { color: var(--text-2); font-weight: 600; }
em { font-style: italic; }

/* WordPress alignment classes */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { margin: 0 auto 1rem; display: block; }
.alignwide  { width: 100%; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-5); text-align: center; margin-top: 0.5rem; }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: fixed; top: -100px; left: 0; z-index: 9999;
  background: var(--accent); color: #000;
  padding: 0.75rem 1.5rem; border-radius: 0 0 8px 0;
  font-weight: 700; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section, .single-page-wrapper, .page-wrapper { position: relative; z-index: 1; }

/* ============================================================
   CONSTELLATION BACKGROUND
============================================================ */
.constellation {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background-color: var(--bg-base);
  /* CRITICAL: clip constellation background to NOT cover areas below main content */
  /* footer uses z-index:2 to always appear above this layer */
}
.constellation::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%,  rgba(217,119,6,0.22) 0%, transparent 100%),
    radial-gradient(1px 1px   at 15% 35%, rgba(217,119,6,0.16) 0%, transparent 100%),
    radial-gradient(2px 2px   at 22% 68%, rgba(217,119,6,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px   at 31% 22%, rgba(217,119,6,0.14) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 55%, rgba(217,119,6,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px   at 52% 8%,  rgba(217,119,6,0.10) 0%, transparent 100%),
    radial-gradient(2px 2px   at 63% 42%, rgba(217,119,6,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px   at 71% 78%, rgba(217,119,6,0.16) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 25%, rgba(217,119,6,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px   at 88% 60%, rgba(217,119,6,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px   at 94% 15%, rgba(217,119,6,0.14) 0%, transparent 100%),
    radial-gradient(2px 2px   at  5% 88%, rgba(217,119,6,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px   at 36% 90%, rgba(217,119,6,0.10) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 95%, rgba(217,119,6,0.06) 0%, transparent 100%),
    radial-gradient(1px 1px   at 75% 92%, rgba(217,119,6,0.13) 0%, transparent 100%);
}

/* ============================================================
   HEADER
============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(7,4,1,0.72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(41,37,36,0.4);
  transition: background 0.3s ease, border-color 0.3s ease;
}
#site-header.scrolled {
  background: rgba(7,4,1,0.96);
  border-bottom-color: var(--border-warm);
}
.nav-inner {
  display: flex; align-items: center;
  height: var(--header-h); gap: 2rem;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 0.625rem;
  flex-shrink: 0;
}
.logo-icon { width: 34px; height: 34px; display: flex; align-items: center; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--text-1); letter-spacing: 0.01em;
}
/* WP custom logo */
.logo .custom-logo-link img { height: 36px; width: auto; }

/* Desktop nav */
.nav-links {
  display: flex; align-items: center;
  gap: 0.125rem; list-style: none;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-4); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li.current-menu-item > a { color: var(--text-1); background: rgba(255,255,255,0.04); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '▾'; font-size: 0.6rem;
  color: var(--text-5); margin-left: 0.1rem;
}
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 560px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.375rem;
  opacity: 0; visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.75), 0 0 0 1px rgba(120,53,15,0.08);
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text-3);
  transition: var(--transition);
}
.dropdown a span:first-child { font-size: 1.1rem; }
.dropdown a span:last-child  { font-size: 0.75rem; color: var(--text-5); }
.dropdown a:hover { background: rgba(255,255,255,0.04); color: var(--text-1); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.btn-ghost {
  padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-4); border-radius: var(--radius-pill);
  transition: var(--transition);
}
.btn-ghost:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem; font-weight: 700;
  background: var(--accent); color: #0c0a09;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 20px rgba(217,119,6,0.28);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px rgba(217,119,6,0.5);
  transform: translateY(-1px);
  color: #0c0a09;
}
.btn-cta-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.mobile-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  padding: 0.5rem; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.05); }

/* ============================================================
   MOBILE MENU
============================================================ */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 190;
  background: rgba(7,4,1,0.99);
  padding: 5.5rem 1.5rem 2rem;
  overflow-y: auto;
  flex-direction: column; gap: 0.125rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem; color: var(--text-3);
  border: 1px solid transparent;
  transition: var(--transition);
  display: block;
}
.mobile-menu a:hover {
  border-color: var(--border);
  background: var(--bg-card);
  color: var(--text-1);
}
.mobile-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.675rem;
  color: var(--text-4); cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  transition: var(--transition);
}
.mobile-close:hover { border-color: var(--border-warm); color: var(--text-1); }
.mobile-cta {
  margin-top: 1rem !important;
  background: var(--accent) !important;
  color: #0c0a09 !important;
  text-align: center; font-weight: 700;
  border-radius: var(--radius-pill) !important;
  border-color: transparent !important;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100dvh;
  padding-top: var(--header-h);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 5%; right: -5%;
  width: 65%; height: 90%;
  background: radial-gradient(ellipse at 55% 45%,
    rgba(120,53,15,0.24) 0%,
    rgba(120,53,15,0.10) 35%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  padding: 5rem 0;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center;
  padding: 0.375rem 1rem;
  background: rgba(120,53,15,0.12);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem; color: #FBBF24; font-weight: 500;
  letter-spacing: 0.02em; margin-bottom: 1.5rem;
}
.hero-badge span { color: rgba(251,191,36,0.4); margin: 0 0.2rem; }
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.hero-h1 .line-white { color: var(--text-1); display: block; }
.hero-h1 .line-amber {
  display: block;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 45%, #d97706 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.125rem; font-weight: 500;
  color: var(--text-2); margin-bottom: 0.75rem; line-height: 1.55;
}
.hero-features { font-size: 0.875rem; color: var(--text-5); margin-bottom: 2rem; }
.hero-ctas {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 0.875rem; margin-bottom: 3rem;
}
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.875rem 1.875rem;
  font-size: 1rem; font-weight: 700;
  background: var(--accent); color: #0c0a09;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 32px rgba(217,119,6,0.32);
  transition: var(--transition);
}
.btn-primary-lg:hover {
  background: var(--accent-hover); color: #0c0a09;
  box-shadow: 0 0 48px rgba(217,119,6,0.52);
  transform: translateY(-2px);
}
.btn-secondary-lg {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.btn-secondary-lg:hover {
  border-color: var(--border-warm);
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}
.play-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; flex-shrink: 0;
}
.hero-metrics {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(41,37,36,0.5);
}
.metric-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--accent-hover);
  display: block; line-height: 1;
}
.metric-label { font-size: 0.8rem; color: var(--text-5); display: block; margin-top: 0.2rem; }

/* ---- Phone Mockup ---- */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-wrapper { position: relative; animation: hcFloat 6s ease-in-out infinite; }
@keyframes hcFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.phone-frame {
  width: 288px; aspect-ratio: 9/19.5;
  background: #0a0a0a;
  border-radius: 42px;
  border: 2px solid rgba(120,53,15,0.4);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 40px 100px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden; position: relative;
}
.phone-frame::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #0a0a0a;
  border-radius: 0 0 18px 18px; z-index: 10;
}
.phone-screen { width: 100%; height: 100%; background: #080503; display: flex; flex-direction: column; overflow: hidden; }
.app-topbar {
  background: #0d0a06; padding: 2rem 0.875rem 0.625rem;
  border-bottom: 1px solid rgba(120,53,15,0.12);
  display: flex; align-items: center; justify-content: space-between;
}
.app-logo-sm {
  font-family: 'Playfair Display', serif; font-size: 0.8rem;
  color: var(--text-1); display: flex; align-items: center; gap: 0.25rem;
}
.app-topbar-icons { display: flex; gap: 0.4rem; }
.app-topbar-icons div {
  width: 20px; height: 20px;
  background: rgba(120,53,15,0.18);
  border-radius: 50%; border: 1px solid rgba(120,53,15,0.28);
}
.app-tabs { display: flex; background: #0d0a06; border-bottom: 1px solid rgba(41,37,36,0.4); }
.app-tab { flex: 1; padding: 0.45rem 0.15rem; font-size: 0.55rem; text-align: center; color: var(--text-5); }
.app-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.app-content { flex: 1; overflow: hidden; padding: 0.625rem; display: flex; flex-direction: column; gap: 0.5rem; }
.app-user-card {
  background: rgba(120,53,15,0.07);
  border: 1px solid rgba(120,53,15,0.18);
  border-radius: 8px; padding: 0.5rem 0.625rem;
}
.app-user-name { font-size: 0.65rem; color: var(--text-1); font-weight: 600; }
.app-user-info { font-size: 0.5rem; color: var(--text-5); margin-top: 0.1rem; }
.app-user-tags { display: flex; gap: 0.25rem; margin-top: 0.4rem; flex-wrap: wrap; }
.app-tag {
  font-size: 0.45rem; padding: 0.1rem 0.35rem;
  background: rgba(120,53,15,0.18); border: 1px solid rgba(120,53,15,0.28);
  border-radius: 3px; color: #FBBF24;
}
.app-chart {
  flex: 1; border-radius: 6px;
  background: radial-gradient(ellipse at center, rgba(120,53,15,0.12), transparent 70%);
  border: 1px solid rgba(120,53,15,0.18);
  position: relative; overflow: hidden; min-height: 80px;
}
.chart-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(120,53,15,0.18);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.chart-ring:nth-child(1) { width: 88%; height: 88%; }
.chart-ring:nth-child(2) { width: 60%; height: 60%; border-color: rgba(120,53,15,0.28); }
.chart-ring:nth-child(3) { width: 30%; height: 30%; border-color: rgba(120,53,15,0.38); }
.chart-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px rgba(217,119,6,0.6);
}
.chart-lines { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.chart-lines::before { content: ''; position: absolute; width: 1px; height: 80%; top: 10%; left: 50%; background: rgba(120,53,15,0.22); }
.chart-lines::after  { content: ''; position: absolute; width: 80%; height: 1px; left: 10%; top: 50%; background: rgba(120,53,15,0.22); }
.chart-node {
  position: absolute; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 5px rgba(217,119,6,0.5);
  transform: translate(-50%,-50%);
}
.app-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.app-mini-card {
  background: rgba(120,53,15,0.06);
  border: 1px solid rgba(120,53,15,0.14);
  border-radius: 5px; padding: 0.4rem;
}
.app-mc-title { font-size: 0.5rem; color: var(--accent); font-weight: 600; margin-bottom: 0.15rem; }
.app-mc-text  { font-size: 0.45rem; color: var(--text-5); line-height: 1.3; }
.app-mc-stars { color: var(--accent); font-size: 0.4rem; margin-bottom: 0.1rem; }
.app-bottombar {
  background: #0d0a06; border-top: 1px solid rgba(41,37,36,0.4);
  display: flex; padding: 0.4rem 0;
}
.app-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  font-size: 0.4rem; color: var(--text-5);
}
.app-nav-item.active { color: var(--accent); }
.app-nav-icon { font-size: 0.75rem; }
.phone-glow {
  position: absolute; width: 280px; height: 380px;
  background: radial-gradient(ellipse, rgba(120,53,15,0.3) 0%, transparent 70%);
  filter: blur(40px); z-index: -1;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.side-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  min-width: 134px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: hcFloat 6s ease-in-out infinite;
}
.side-card--left { right: calc(100% + 0.75rem); top: 18%; animation-delay: -2s; }
.side-card--bottom { right: calc(100% + 0.5rem); bottom: 18%; animation-delay: -4s; }
.side-card-title { font-size: 0.7rem; color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }
.side-card-text  { font-size: 0.65rem; color: var(--text-5); line-height: 1.4; }
.side-card-stars { color: var(--accent); font-size: 0.6rem; margin-top: 0.25rem; }

/* ============================================================
   SECTION COMMON
============================================================ */
.section-label {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-bottom: 0.875rem;
}
.section-label::before, .section-label::after {
  content: ''; flex: 1; max-width: 60px; height: 1px;
}
.section-label::before { background: linear-gradient(to right, transparent, rgba(217,119,6,0.4)); }
.section-label::after  { background: linear-gradient(to left,  transparent, rgba(217,119,6,0.4)); }
.section-label span {
  color: var(--accent); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
}
.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-1); text-align: center;
  line-height: 1.25; margin-bottom: 0.875rem;
}
.section-sub {
  text-align: center; color: var(--text-4);
  font-size: 1rem; max-width: 560px; margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   STEPS
============================================================ */
.steps { padding: 6rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  border-color: rgba(120,53,15,0.55);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  color: rgba(120,53,15,0.28);
  position: absolute; top: 1.25rem; left: 1.5rem; line-height: 1;
}
.step-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(120,53,15,0.1);
  border: 1px solid rgba(120,53,15,0.22);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.6rem;
}
.step-title { font-family: 'Playfair Display', serif; font-size: 1.125rem; color: var(--text-1); margin-bottom: 0.625rem; }
.step-desc  { font-size: 0.875rem; color: var(--text-5); line-height: 1.65; }

/* ============================================================
   DISCIPLINES
============================================================ */
.disciplines { padding: 6rem 0; background: rgba(0,0,0,0.25); }
.disciplines-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 3rem; }
.disc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.5rem;
  cursor: pointer;
}
.disc-card:hover {
  border-color: var(--border-warm);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.disc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(120,53,15,0.08);
  border: 1px solid rgba(120,53,15,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
}
.disc-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text-1); font-weight: 500; }
.disc-desc { font-size: 0.8rem; color: var(--text-5); line-height: 1.55; flex: 1; }
.disc-link {
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 0.25rem;
  margin-top: 0.25rem;
  opacity: 0; transition: opacity 0.2s ease;
}
.disc-card:hover .disc-link { opacity: 1; }

/* ============================================================
   FEATURES / WHY
============================================================ */
.why { padding: 6rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 3rem; }
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
}
.feat-card:hover { border-color: var(--border-warm); box-shadow: var(--shadow-hover); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(120,53,15,0.1);
  border: 1px solid rgba(120,53,15,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 1rem;
}
.feat-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text-1); margin-bottom: 0.5rem; }
.feat-desc  { font-size: 0.875rem; color: var(--text-5); line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials { padding: 6rem 0; background: rgba(0,0,0,0.25); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 3rem; }
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}
.testi-card:hover { border-color: var(--border-warm); }
.testi-quote-icon {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; color: rgba(217,119,6,0.14);
  display: block; line-height: 0.6; margin-bottom: 1rem;
}
.testi-stars { color: var(--accent-hover); font-size: 0.875rem; margin-bottom: 0.875rem; }
.testi-text { font-size: 0.9rem; color: var(--text-3); line-height: 1.75; font-style: italic; margin-bottom: 1.25rem; }
.testi-author { font-size: 0.8rem; color: var(--text-5); font-weight: 500; }

/* ============================================================
   EMAIL CAPTURE
============================================================ */
.email-section { padding: 5rem 0; }
.email-card {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(120,53,15,0.28);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.email-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.email-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.email-card h2, .email-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--text-1);
  margin-bottom: 0.625rem;
}
.email-card p { font-size: 0.9rem; color: var(--text-5); margin-bottom: 1.5rem; line-height: 1.65; }
.email-form { display: flex; gap: 0.75rem; }
.email-input {
  flex: 1; height: 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 1.25rem;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem; color: var(--text-1);
  outline: none; transition: var(--transition); min-width: 0;
}
.email-input::placeholder { color: var(--text-5); }
.email-input:focus { border-color: rgba(245,158,11,0.5); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }
.email-btn {
  height: 48px; padding: 0 1.5rem;
  background: var(--accent); color: #0c0a09;
  border: none; border-radius: var(--radius-pill);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.email-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.email-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.email-note { font-size: 0.75rem; color: var(--text-5); margin-top: 0.875rem; margin-bottom: 0 !important; }

/* ============================================================
   FINAL CTA
============================================================ */
.final-cta {
  padding: 5rem 0 4rem; /* Reduced from 8rem to 5rem top, 4rem bottom */
  text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(120,53,15,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-1); margin-bottom: 1rem;
}
.final-cta > .container > p {
  font-size: 1rem; color: var(--text-4);
  max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.final-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-row { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-5);
}
.trust-item span:first-child { color: var(--accent); }

/* ============================================================
   FOOTER
============================================================ */
footer[role="contentinfo"] {
  display: block !important; /* Ensure never collapsed */
  background: #1C1814; /* Clearly lighter than page bg #070401 */
  border-top: 3px solid #D97706; /* Solid amber border - always visible */
  padding: 4rem 0 8rem; /* Generous bottom pad = avoids sticky bar overlap */
  margin-top: 0;
  position: relative;
  z-index: 2; /* Must be > .constellation (z-index:0) and > section (z-index:1) */
  isolation: isolate; /* Create new stacking context */
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: #F5F5F4; }
.footer-tagline { font-size: 0.875rem; color: #D6D3D1; line-height: 1.65; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.4);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: #D6D3D1;
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--border-warm); color: var(--accent); }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700;
  color: #FBBF24; /* Amber gold - clearly visible */
  text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a   { font-size: 0.875rem; color: #D6D3D1; transition: color 0.2s ease; } /* Bright enough to read */
.footer-col a:hover { color: #FBBF24; }
.footer-bottom {
  border-top: 1px solid rgba(217,119,6,0.25); padding-top: 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem; color: #D6D3D1;
}
.footer-bottom a { color: #D6D3D1; }
.footer-bottom a:hover { color: #FBBF24; }

/* Payment & Trust Badge Rows */
.footer-payments-row,
.footer-trust-badges {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-payments-row > div,
.footer-trust-badges > div {
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.footer-payments-row > div:hover,
.footer-trust-badges > div:hover {
  transform: translateY(-1px);
}

/* ============================================================
   STICKY BAR
============================================================ */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: rgba(7,4,1,0.97);
  border-top: 1px solid rgba(120,53,15,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.875rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar p { font-size: 0.875rem; color: var(--text-4); }
.sticky-close {
  background: none; border: none;
  color: var(--text-5); cursor: pointer;
  padding: 0.35rem 0.5rem; font-size: 1.1rem; line-height: 1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sticky-close:hover { color: var(--text-2); background: rgba(255,255,255,0.05); }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes hcFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: hcFadeInUp 0.6s ease forwards; animation-play-state: paused; }

/* Fallback: if JS doesn't add .animate within 2s, show content anyway */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; animation: none !important; }
}
/* Graceful degradation: show all after 3s even without JS */
@keyframes hcFallback { to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: hcFadeInUp 0.6s ease forwards paused, hcFallback 0s 3s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.fade-up.animate { animation-play-state: running; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero::before { display: none; }
  .hero-badge, .hero-ctas, .hero-metrics { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-visual { display: none; }
  .disciplines-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .steps-grid { grid-template-columns: 1fr; }
  .disciplines-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-brand { margin-bottom: 1rem; }
  .footer-logo, .footer-social { justify-content: center; }
  .hero-metrics { gap: 1.25rem; }
  .nav-actions .btn-ghost { display: none; }
  .final-cta-btns { flex-direction: column; align-items: center; }
  .hidden-sm { display: none; }
  .email-card { padding: 2rem 1.5rem; }
}
@media (max-width: 380px) {
  .disciplines-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WORDPRESS SPECIFIC
============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.entry-content p { margin-bottom: 1.25rem; color: var(--text-4); }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-1); margin: 2rem 0 0.875rem;
}
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--text-4);
}
.entry-content li { margin-bottom: 0.375rem; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { color: var(--accent-hover); }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: rgba(120,53,15,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-3);
}

/* Footer visibility & gap fix */
footer { opacity: 1 !important; visibility: visible !important; display: block !important; }
.footer-grid, .footer-bottom, .footer-brand, .footer-col { opacity: 1 !important; visibility: visible !important; }
/* Remove phantom margins/padding from page sections that cause footer to appear 'missing' */
.final-cta { margin-bottom: 0 !important; padding-bottom: 4rem !important; }
.email-section { margin-bottom: 0 !important; }
main { overflow: visible !important; }

