/* ============================================================
   ADMIN AI INSIGHTS — Design System & Stylesheet
   Brand: Indigo-Navy #181D47 | Gold #DFC683 | Off-White #F8F8F8
          Slate #6A6A6A | Teal Glow #4DE6C4
   Style: Restrained Glassmorphism — Premium, Calm, Futuristic
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colours */
  --navy:        #181D47;
  --navy-light:  #232A61;
  --navy-mid:    #1E2450;
  --navy-dark:   #0E1230;
  --gold:        #DFC683;
  --gold-light:  #EDD89A;
  --gold-dark:   #C9AE5F;
  --off-white:   #F8F8F8;
  --slate:       #6A6A6A;
  --slate-light: #9A9A9A;
  --teal:        #4DE6C4;
  --teal-dim:    rgba(77, 230, 196, 0.15);
  --teal-glow:   rgba(77, 230, 196, 0.4);

  /* Glass System */
  --glass-bg:        rgba(255, 255, 255, 0.04);
  --glass-bg-hover:  rgba(255, 255, 255, 0.08);
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-border-gold: rgba(223, 198, 131, 0.25);
  --glass-shadow:    0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container:   1200px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--navy);
  color: var(--off-white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

body.light-page {
  background-color: var(--off-white);
  color: #1a1a1a;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { font-size: 1rem; color: rgba(248, 248, 248, 0.82); }

.text-gold    { color: var(--gold); }
.text-teal    { color: var(--teal); }
.text-white   { color: var(--off-white); }
.text-slate   { color: var(--slate-light); }
.text-center  { text-align: center; }
.text-muted   { color: rgba(248, 248, 248, 0.55); }

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

.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* --- Sections --- */
.section { padding: var(--section-pad); }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* --- Glass Cards --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  padding: 32px;
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-gold);
  box-shadow: var(--glass-shadow-lg);
  transform: translateY(-4px);
}

.glass-card-gold {
  background: linear-gradient(135deg, rgba(223, 198, 131, 0.08), rgba(223, 198, 131, 0.03));
  border: 1px solid var(--glass-border-gold);
}

.glass-card-teal {
  background: linear-gradient(135deg, rgba(77, 230, 196, 0.08), rgba(77, 230, 196, 0.02));
  border: 1px solid rgba(77, 230, 196, 0.2);
}

.glass-panel {
  background: rgba(24, 29, 71, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(223, 198, 131, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 28px rgba(223, 198, 131, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border: 1.5px solid var(--glass-border-gold);
}

.btn-secondary:hover {
  background: rgba(223, 198, 131, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal), #2fd4ae);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(77, 230, 196, 0.25);
}

.btn-teal:hover {
  box-shadow: 0 6px 28px rgba(77, 230, 196, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid rgba(77, 230, 196, 0.35);
}

.btn-ghost:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(14, 18, 48, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(14, 18, 48, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

.nav-logo img {
  height: 80px;
  width: auto;
  mix-blend-mode: screen;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(248, 248, 248, 0.8);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(223, 198, 131, 0.08);
}

.nav-cta { margin-left: 8px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(14, 18, 48, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
  z-index: 999;
  flex-direction: column;
  gap: 8px;
}

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

.nav-mobile a {
  display: block;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(248, 248, 248, 0.85);
  transition: var(--transition);
  font-size: 1rem;
}

.nav-mobile a:hover { color: var(--gold); background: rgba(223, 198, 131, 0.08); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  padding: 140px 24px 100px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Semi-transparent so the circuit board animation shows through */
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(77, 230, 196, 0.07) 0%, transparent 60%),
              radial-gradient(ellipse 60% 70% at 10% 80%, rgba(223, 198, 131, 0.07) 0%, transparent 60%),
              linear-gradient(180deg, rgba(14, 18, 48, 0.82) 0%, rgba(24, 29, 71, 0.82) 100%);
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(77, 230, 196, 0.3);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-content h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 40px;
  color: rgba(248, 248, 248, 0.78);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.stat-item { text-align: left; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-top: 4px;
}

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

.hero-alistair-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-alistair-img {
  max-height: 520px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(77, 230, 196, 0.15));
  animation: float 6s ease-in-out infinite;
}

.hero-card-float {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  box-shadow: var(--glass-shadow);
  animation: floatCard 5s ease-in-out infinite;
}

.hero-card-float.card-1 {
  top: 15%;
  left: -20px;
  animation-delay: -1.5s;
}

.hero-card-float.card-2 {
  bottom: 20%;
  right: -10px;
  animation-delay: -3s;
}

.hero-card-float .card-icon {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* --- Alistair Intro Section --- */
.alistair-section {
  background: linear-gradient(135deg, rgba(77, 230, 196, 0.04) 0%, rgba(223, 198, 131, 0.04) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.alistair-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
}

.alistair-img-wrap {
  position: relative;
  width: 280px;
}

.alistair-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 12px 30px rgba(77, 230, 196, 0.12));
}

.alistair-label {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.alistair-content h2 { margin-bottom: 16px; }
.alistair-content p  { margin-bottom: 24px; font-size: 1.05rem; }

/* ═══════════════════════════════════════════════════════════
   ALISTAIR CHARACTER — Shared animation system
   Wrap any Alistair image in .alistair-char for:
   • one-time entrance (fade + rise on load)
   • continuous subtle idle (breathe + micro-tilt)
   ═══════════════════════════════════════════════════════════ */

.alistair-char {
  position: relative;
  display: inline-block;
}

/* Shared rule applied to img inside any .alistair-char wrapper */
.alistair-char img:not(.alistair-blink) {
  animation:
    aliEntrance 0.85s cubic-bezier(0.22, 1, 0.36, 1) both,
    aliIdle     7s   ease-in-out            infinite 0.9s;
  transform-origin: bottom center;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.45));
}

/* Soft radial glow behind character on dark backgrounds */
.alistair-char::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(77,230,196,0.13) 0%, transparent 70%);
  filter: blur(22px);
  pointer-events: none;
  z-index: -1;
}

@keyframes aliEntrance {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);     }
}

@keyframes aliIdle {
  0%   { transform: translateY(0)    rotate(0deg)    scale(1);     }
  20%  { transform: translateY(-2px) rotate(0.6deg)  scale(1.007); }
  50%  { transform: translateY(-3px) rotate(0deg)    scale(1.012); }
  75%  { transform: translateY(-2px) rotate(-0.5deg) scale(1.007); }
  100% { transform: translateY(0)    rotate(0deg)    scale(1);     }
}

@keyframes aliBreath {
  0%, 100% { transform: translateY(0)    scale(1);     }
  50%       { transform: translateY(-2px) scale(1.010); }
}

/* ══ ALISTAIR BLINK SYSTEM ══════════════════════════════════
   .alistair-character[data-blink] wraps each Alistair image.
   Two children: .alistair-open (open eyes, animated) and
   .alistair-blink (closed eyes overlay). JS toggles opacity.
   ═══════════════════════════════════════════════════════════ */
.alistair-character {
  position: relative;
  display: inline-block;
}

/* Prevent inline baseline gap under open image */
.alistair-character .alistair-open {
  display: block;
}

/* Closed-eye image: absolute overlay, invisible by default */
.alistair-character > .alistair-blink {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  pointer-events: none;
  animation: none !important;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.45));
}

/* Bot trigger / panel header: fill the fixed circular container */
.bot-trigger-avatar .alistair-character,
.bot-avatar .alistair-character {
  display: block;
  width: 100%;
  height: 100%;
}

.bot-trigger-avatar .alistair-character > .alistair-blink,
.bot-avatar .alistair-character > .alistair-blink {
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}

/* Reduced motion — keep entrance, remove all loops */
@media (prefers-reduced-motion: reduce) {
  .alistair-char img:not(.alistair-blink) {
    animation: aliEntrance 0.85s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }
  .alistair-blink              { display: none !important; }
  .bot-trigger-avatar img:not(.alistair-blink) { animation: none !important; }
  .bot-badge                   { animation: none !important; }
  .alistair-bot-trigger        { animation: none !important; }
}

/* --- Feature Cards Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  text-align: center;
}

.feature-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  background: var(--teal-dim);
  border: 1px solid rgba(77, 230, 196, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.glass-card:hover .feature-icon {
  background: rgba(77, 230, 196, 0.2);
  transform: scale(1.08);
}

.feature-card h4 {
  color: var(--gold);
  margin-bottom: 12px;
}

.feature-card p { font-size: 0.92rem; }

/* --- Course Cards --- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-dim);
  border: 1px solid rgba(77, 230, 196, 0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.course-tag.tag-gold {
  background: rgba(223, 198, 131, 0.1);
  border-color: rgba(223, 198, 131, 0.25);
  color: var(--gold);
}

.course-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--slate-light);
}

.course-card h4 { color: var(--off-white); margin-bottom: 10px; }
.course-card p  { font-size: 0.9rem; flex: 1; }

.course-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.score-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #2fd4ae);
  border-radius: 4px;
  transition: width 1s ease;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
}

/* --- Scenario Section --- */
.scenarios-section {
  background: linear-gradient(180deg, rgba(77, 230, 196, 0.03) 0%, transparent 100%);
}

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

.scenario-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.scenario-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--teal-dim);
  border: 1px solid rgba(77, 230, 196, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.scenario-item h5 { color: var(--off-white); margin-bottom: 6px; }
.scenario-item p  { font-size: 0.88rem; }

/* --- Differentiators --- */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.diff-list { margin-top: 28px; }

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.diff-item:last-child { border-bottom: none; }

.diff-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid var(--teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

.diff-item h5 { color: var(--gold); margin-bottom: 4px; }
.diff-item p  { font-size: 0.9rem; }

.diff-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.diff-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.3));
}

/* --- About Teaser --- */
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}

.about-img img {
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 300px;
}

/* --- Resource Cards --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.resource-card {
  text-align: center;
  padding: 36px 24px;
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.resource-card h4 { color: var(--gold); margin-bottom: 10px; }
.resource-card p  { font-size: 0.88rem; margin-bottom: 20px; }

/* --- Newsletter Strip --- */
.newsletter-strip {
  background: linear-gradient(135deg, rgba(223, 198, 131, 0.08), rgba(77, 230, 196, 0.05));
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 28px auto 0;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 14px 22px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

.newsletter-form input::placeholder { color: rgba(248,248,248,0.4); }

/* --- Footer --- */
footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--glass-border);
  padding: 72px 24px 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-brand .footer-logo { height: 70px; width: auto; margin-bottom: 4px; mix-blend-mode: screen; }

.footer-col h5 {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(248,248,248,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 0.85rem; color: rgba(248,248,248,0.4); }

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  color: rgba(248,248,248,0.6);
}

.social-link:hover {
  background: rgba(223,198,131,0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* --- Alistair Bot Trigger — premium pill launcher --- */
.alistair-bot-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 60px;
  background: rgba(14, 18, 48, 0.94);
  border: 1px solid rgba(223,198,131,0.40);
  box-shadow: 0 8px 32px rgba(0,0,0,0.50), 0 0 0 0 rgba(223,198,131,0.0);
  cursor: pointer;
  z-index: 2000;
  transition: all 0.30s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.alistair-bot-trigger:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 22px rgba(223,198,131,0.22);
  border-color: rgba(223,198,131,0.65);
}

.alistair-bot-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Circular headshot inside the trigger */
.bot-trigger-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  background: var(--navy-mid);
}

.bot-trigger-avatar img:not(.alistair-blink) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: aliBreath 5.5s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Label column */
.bot-trigger-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.bot-trigger-label strong {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  white-space: nowrap;
}

.bot-trigger-label span {
  font-size: 0.72rem;
  color: rgba(248,248,248,0.52);
  line-height: 1.2;
  white-space: nowrap;
}

/* Online indicator dot */
.bot-badge {
  position: absolute;
  top: 8px;
  left: 50px;
  width: 13px;
  height: 13px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid rgba(14,18,48,0.94);
  animation: pulse 2.5s ease-in-out infinite;
}

.alistair-bot-panel {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 380px;
  max-height: 580px;
  background: rgba(14, 18, 48, 0.96);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.alistair-bot-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.bot-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(223,198,131,0.1), rgba(77,230,196,0.06));
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bot-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bot-info h5 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.bot-info span {
  font-size: 0.75rem;
  color: var(--teal);
}

.bot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(248,248,248,0.5);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: var(--transition);
  border-radius: 4px;
}

.bot-close:hover { color: var(--off-white); background: rgba(255,255,255,0.08); }

.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.bot-messages::-webkit-scrollbar { width: 4px; }
.bot-messages::-webkit-scrollbar-track { background: transparent; }
.bot-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.bot-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeInUp 0.3s ease;
}

.bot-msg.user-msg { flex-direction: row-reverse; }

.bot-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: var(--navy-light);
  flex-shrink: 0;
  overflow: hidden;
}

.bot-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bot-msg-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.bot-msg .bot-msg-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-top-left-radius: 4px;
  color: rgba(248,248,248,0.9);
}

.user-msg .bot-msg-bubble {
  background: linear-gradient(135deg, rgba(223,198,131,0.15), rgba(223,198,131,0.08));
  border: 1px solid rgba(223,198,131,0.2);
  border-top-right-radius: 4px;
  color: var(--off-white);
}

.bot-suggestions {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--glass-border);
}

.bot-suggestion-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: rgba(248,248,248,0.7);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.bot-suggestion-chip:hover {
  background: rgba(77,230,196,0.1);
  border-color: rgba(77,230,196,0.3);
  color: var(--teal);
}

.bot-input-wrap {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--glass-border);
}

.bot-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 18px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.bot-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.bot-input::placeholder { color: rgba(248,248,248,0.35); }

.bot-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--navy);
  font-size: 1rem;
  flex-shrink: 0;
}

.bot-send:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(223,198,131,0.4); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(77,230,196,0.06) 0%, transparent 60%),
              linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  z-index: 0;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero .hero-badge { margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p  { max-width: 640px; margin: 0 auto; font-size: 1.15rem; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--slate-light);
  justify-content: center;
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--teal); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(248,248,248,0.4); }

/* --- Filter Bar (Courses) --- */
.filter-bar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
}

.filter-search {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-light);
  font-size: 0.95rem;
}

.search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 13px 20px 13px 44px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.08);
}

.search-input::placeholder { color: rgba(248,248,248,0.4); }

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248,248,248,0.65);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--teal-dim);
  border-color: rgba(77,230,196,0.35);
  color: var(--teal);
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(248,248,248,0.6);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
}

/* --- Training Cards --- */
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.training-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.training-card .card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  border-radius: 4px 0 0 4px;
}

.training-card h3 { color: var(--gold); margin-bottom: 12px; }
.training-card .price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--off-white);
  margin: 20px 0;
}

.training-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--slate-light); }

.training-features { margin: 20px 0; }

.training-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(248,248,248,0.8);
}

.training-feature .check { color: var(--teal); font-size: 0.85rem; }

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  padding: 0;
  overflow: hidden;
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(24,29,71,0.8));
}

.blog-card-body { padding: 24px; }

.blog-category {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.blog-card h4 { margin-bottom: 10px; }
.blog-card p  { font-size: 0.88rem; margin-bottom: 16px; }
.blog-date    { font-size: 0.78rem; color: var(--slate-light); }

/* --- Accordion FAQ --- */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 4px 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--off-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid rgba(77,230,196,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--teal);
  font-size: 0.8rem;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(77,230,196,0.2); }

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

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: rgba(248,248,248,0.75);
  line-height: 1.75;
}

/* --- Contact Form --- */
.contact-form { max-width: 680px; margin: 0 auto; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 13px 18px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(223,198,131,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(248,248,248,0.35); }

.form-textarea { resize: vertical; min-height: 130px; }

.form-select option { background: var(--navy); color: var(--off-white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- Community Cards --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.community-card { padding: 36px; }
.community-card h4 { color: var(--gold); margin-bottom: 12px; font-size: 1.1rem; }

/* --- About Story --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-content h2 { margin-bottom: 28px; }
.story-content p  { margin-bottom: 20px; font-size: 1.02rem; line-height: 1.8; }

.story-values { margin-top: 40px; }

.value-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--glass-border);
}

.value-item:last-child { border-bottom: none; }

.value-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.value-item h5 { color: var(--gold); margin-bottom: 4px; }
.value-item p  { font-size: 0.9rem; }

.story-aside { position: sticky; top: 100px; }

.story-card { margin-bottom: 24px; }

/* --- Highlight Strip --- */
.highlight-strip {
  background: linear-gradient(135deg, rgba(223,198,131,0.08), rgba(77,230,196,0.04));
  border-top: 1px solid var(--glass-border-gold);
  border-bottom: 1px solid var(--glass-border-gold);
  padding: 24px 0;
}

.highlight-items {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(248,248,248,0.75);
}

.highlight-item .icon { font-size: 1.2rem; }

/* --- Badges / Tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-gold  { background: rgba(223,198,131,0.12); border: 1px solid rgba(223,198,131,0.25); color: var(--gold); }
.badge-teal  { background: var(--teal-dim); border: 1px solid rgba(77,230,196,0.25); color: var(--teal); }
.badge-slate { background: rgba(106,106,106,0.2); border: 1px solid rgba(106,106,106,0.3); color: var(--slate-light); }

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.9); }
}

@keyframes botPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(223,198,131,0.3), 0 0 0 0 rgba(223,198,131,0.3); }
  50%       { box-shadow: 0 4px 24px rgba(223,198,131,0.4), 0 0 0 10px rgba(223,198,131,0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 48px 0;
}

.glow-text {
  text-shadow: 0 0 30px rgba(77,230,196,0.3);
}

.gold-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   CIRCUIT BOARD GLOBAL BACKGROUND SYSTEM
   Branded PCB image (ghosted) + animated gold dots
   on teal traces — sits behind all page content
   ===================================================== */

.circuit-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Navy base so no flash if image is slow to load */
  background-color: var(--navy-dark);
}

/* Pure navy — no image, circuit animation only */

/* Animated canvas sits above the image layer */
#circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* ---- Stacking: lift ALL page content above z-index:0 ---- */
/* navbar is already position:fixed z-index:1000 — no change needed */
.hero,
.page-hero,
.highlight-strip,
.section,
.section-sm,
.section-lg,
footer {
  position: relative;
  z-index: 1;
}

/* Bot elements stay above everything */
.alistair-bot-trigger { z-index: 1100; }
.alistair-bot-panel   { z-index: 1099; }

/* ---- Nav logo — screen blend removes navy box, keeps gold/teal ---- */
.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .resources-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner       { grid-template-columns: 1fr; text-align: center; }
  .hero-visual      { display: none; }
  .hero-content     { max-width: 100%; }
  .hero-stats       { justify-content: center; }
  .btn-group        { justify-content: center; }
  .alistair-inner   { grid-template-columns: 1fr; text-align: center; }
  .alistair-img-wrap{ margin: 0 auto; }
  .courses-grid     { grid-template-columns: 1fr 1fr; }
  .scenarios-grid   { grid-template-columns: 1fr 1fr; }
  .diff-grid        { grid-template-columns: 1fr; }
  .diff-visual      { display: none; }
  .about-teaser-grid{ grid-template-columns: 1fr; }
  .training-grid    { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: 1fr 1fr; }
  .story-grid       { grid-template-columns: 1fr; }
  .story-aside      { position: static; }
  .community-grid   { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger        { display: flex; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }

  .section { padding: 70px 0; }

  .courses-grid   { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }

  .glass-panel { padding: 28px 20px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .alistair-bot-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 100px;
  }

  .hero { padding: 120px 16px 80px; }
  .page-hero { padding: 130px 16px 60px; }
}

@media (max-width: 480px) {
  .resources-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; flex-direction: column; border-radius: var(--radius); }
  .tab-btn { border-radius: var(--radius-sm); }
  .highlight-items { gap: 28px; }
  .hero-stats { flex-direction: column; gap: 20px; }
}

/* ============================================================
   MOBILE & TOUCH — Android / iPhone comprehensive fixes
   Covers: inline grid overrides, iOS zoom, safe areas,
           touch targets, notch/home-bar, layout collapses
   ============================================================ */

/* Prevent iOS text-size adjustment after orientation change */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Remove tap highlight flash on Android/iOS */
* { -webkit-tap-highlight-color: transparent; }

/* ── iOS auto-zoom fix ──────────────────────────────────────
   iOS zooms in whenever a focused input is < 16px.
   This only fires on touch devices (phones/tablets).       */
@media (hover: none) and (pointer: coarse) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ── Minimum 44px touch targets (Apple & Google standard) ── */
.btn, button, a.btn,
.bot-suggestion-chip,
.social-link,
.tab-btn,
.nav-hamburger,
.bot-send,
.bot-close {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ── Tablet — 4-col → 2-col ─────────────────────────────── */
@media (max-width: 1024px) {
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* ── Phone portrait ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Container side padding */
  .container,
  .container-sm,
  .container-lg { padding: 0 16px; }

  /* ── Override ALL inline grid columns → single column ── */
  [style*="grid-template-columns:repeat(2"]  { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(3"]  { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4"]  { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(4"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr"]   { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 1fr"]  { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:auto 1fr"]  { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: auto 1fr"] { grid-template-columns: 1fr !important; }

  /* Section spacing */
  .section    { padding: 60px 0; }
  .section-sm { padding: 36px 0; }
  .section-lg { padding: 80px 0; }

  /* Typography clamp on phones */
  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); }
  h3 { font-size: clamp(1.2rem, 4.5vw, 1.4rem); }

  /* Cards always full-width */
  .glass-card,
  .feature-card,
  .course-card,
  .resource-card,
  .scenario-item { width: 100%; min-width: 0; }

  /* Hero form stacks */
  .hero-form-wrap { margin-top: 24px; }

  /* Highlight strip wraps neatly */
  .highlight-items  { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .highlight-item   { font-size: 0.82rem; }

  /* Scenario cards: icon + text stack */
  .scenario-item { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Newsletter form stacks */
  .newsletter-form              { flex-direction: column; gap: 12px; }
  .newsletter-form input        { width: 100%; }
  .newsletter-form button       { width: 100%; justify-content: center; }

  /* Filter chips wrap */
  .filter-bar    { flex-wrap: wrap; gap: 8px; }
  .filter-select { width: 100%; }

  /* Course meta wraps */
  .course-meta { flex-wrap: wrap; gap: 6px; }

  /* Glass panel padding */
  .glass-panel { padding: 24px 18px; }

  /* Page hero */
  .page-hero { padding: 110px 16px 50px; }

  /* Footer bottom stacks */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Bot panel: full width */
  .alistair-bot-panel {
    width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    bottom: 86px;
    max-height: 75vh;
  }

  /* Bot trigger: collapse to icon-only on small screens */
  .alistair-bot-trigger {
    padding: 7px;
    gap: 0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
}

/* ── Small phones (iPhone SE, Galaxy A-series etc.) ──────── */
@media (max-width: 480px) {

  .container,
  .container-sm,
  .container-lg { padding: 0 12px; }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.38rem; }
  h4 { font-size: 1.05rem; }

  /* Hero */
  .hero         { padding: 95px 12px 56px; }
  .hero-badge   { font-size: 0.74rem; padding: 6px 12px; }
  .stat-number  { font-size: 1.55rem; }
  .btn-lg       { padding: 13px 20px; font-size: 0.88rem; }

  /* Bot panel */
  .alistair-bot-panel {
    width: calc(100vw - 16px);
    right: 8px;
    left: 8px;
    bottom: 80px;
    max-height: 80vh;
  }

  /* Tabs */
  .tabs     { flex-direction: column; width: 100%; }
  .tab-btn  { justify-content: center; font-size: 0.82rem; padding: 10px 8px; }
}

/* ── iPhone X / 11 / 12 / 13 / 14 / 15 safe areas ─────────
   Handles notch, Dynamic Island, and home indicator bar.  */
@supports (padding: max(0px)) {

  .navbar {
    padding-left:  max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  }

  .alistair-bot-trigger {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    right:  max(14px, env(safe-area-inset-right));
  }
  .bot-trigger-label { display: none; }
  .bot-badge { top: 4px; left: 38px; }

  .alistair-bot-panel {
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 80px));
  }
}

/* ── Landscape orientation (phone on its side) ───────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero         { padding: 80px 24px 40px; }
  .page-hero    { padding: 90px 24px 36px; }
  .section      { padding: 40px 0; }

  .alistair-bot-panel {
    max-height: 90vh;
    bottom: 70px;
  }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(14, 18, 48, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(223, 198, 131, 0.25);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  /* Slide up on appear */
  animation: cookieBannerIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Slide away on dismiss */
#cookie-banner.cookie-hiding {
  animation: cookieBannerOut 0.3s ease-in forwards;
}

@keyframes cookieBannerOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

#cookie-banner p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(248, 248, 248, 0.72);
  line-height: 1.5;
  max-width: 640px;
}

#cookie-banner p a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#cookie-banner p a:hover {
  color: #fff;
}

#cookie-accept {
  flex-shrink: 0;
  padding: 8px 22px;
  border-radius: 40px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

#cookie-accept:hover  { background: #e8d49a; transform: translateY(-1px); }
#cookie-accept:active { transform: translateY(0); }

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }
  #cookie-accept { align-self: flex-end; }
}
