/* ============================================
   REWIRE ACADEMY — Complete Stylesheet
   Atmospheric Hero + Dark Business Sections
   ============================================ */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

body {
  font-family: var(--sans);
  background: var(--obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 80px; /* space for sticky CTA bar */
}
body.reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  border: 3px solid var(--obsidian);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

::selection { background: var(--accent); color: #000000; }

/* Accessibility Focus Rings */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Skip-to-main link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--accent);
  color: #000;
  padding: 12px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

.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;
}

/* ============================================
   DESIGN TOKENS & UTILITIES
   ============================================ */
:root {
  --accent: #0088FF;
  --accent-glow: rgba(0, 136, 255, 0.15);
  --obsidian: #0A0A0C;
  --bg: #0A0A0C;
  --surface: #121214;
  --surface-hover: #161619;
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --text-muted: #6e6e73;
  --success: #30d158;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-lg: 16px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 1024px) { .container { padding: 0 48px; } }
@media (max-width: 640px) { .container { padding: 0 24px; } }

.section-padding { padding: 100px 0; }
@media (max-width: 768px) { .section-padding { padding: 60px 0; } }

.section-label {
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subheadline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}
.text-center .section-subheadline {
  margin-left: auto;
  margin-right: auto;
}

.pricing-amount {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  margin: 16px 0 8px;
}

.outcome-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 8px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px rgba(8,146,208,0.35); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes sheikah-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes leaf-blow {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.5); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translate(30px, -50px) rotate(360deg) scale(1.5); opacity: 0; }
}
@keyframes pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 136, 255, 0.7); }
  70% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 136, 255, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 136, 255, 0); }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
  margin-right: 6px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: transform, opacity;
}
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(40px);
}
.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS fallback: ensure content is never hidden if JS fails */
.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%), var(--accent);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 24px rgba(0, 136, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-pill {
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 13px;
}

/* ============================================
   NAVIGATION (dark, scrolled version)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
}

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

.nav-links a,
.nav-links button {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav-links a:hover,
.nav-links button:hover { color: #ffffff; }

/* Mega Menu Dropdown */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 780px;
  background: #0A0A0C;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.nav-item-dropdown.open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mega-menu-footer-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.mega-menu-footer-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.3s;
}

.mega-menu-footer-link:hover {
  color: #fff;
}

.nav-ghost-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  margin-right: 12px;
}

.nav-ghost-link:hover {
  color: #fff;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mega-menu:has(.mega-menu-inner > :only-child) {
  width: 420px;
}

.mega-menu-inner:has(> :only-child) {
  grid-template-columns: 1fr;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s;
  text-align: left;
  background: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.mega-menu-column:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.mega-menu-column.featured {
  background: rgba(8, 146, 208, 0.05);
  border-color: rgba(8, 146, 208, 0.2);
}
.mega-menu-column.featured:hover {
  background: rgba(8, 146, 208, 0.08);
}

.mega-menu-tier-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.mega-menu-column h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.mega-menu-column p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.mega-menu-link {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
  margin-top: auto;
}
.mega-menu-link:hover {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta-secondary { display: none; }
}

.mobile-menu {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: all 0.3s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}
.mobile-menu .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 32px;
  color: #ffffff;
}

/* ============================================
   HERO — ATMOSPHERIC (from Rewire.html)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: var(--obsidian);
}

/* Premium Ambient Hero Gradient Mesh */
.hero-mesh-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.hero-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: float-orb 20s infinite alternate ease-in-out;
}
.orb-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
  top: -10vw;
  right: -10vw;
  animation-duration: 25s;
}
.orb-2 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 80%);
  bottom: -10vw;
  right: 15vw;
  animation-duration: 18s;
  animation-delay: -5s;
}
.orb-3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #00f0ff 0%, transparent 80%);
  top: 15vw;
  right: -5vw;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 5%) scale(1.1); }
  100% { transform: translate(5%, -5%) scale(0.9); }
}



/* Hero left content overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(104px, 17vh, 156px) clamp(28px, 5vw, 84px) clamp(28px, 5vh, 64px);
  pointer-events: none;
}
.hero-content {
  max-width: min(42%, 560px);
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text-primary);
}
.hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subline {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 32em;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

/* Hero CTA Button — sleek Vercel style */
.hero-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: all 0.3s var(--ease);
}
.hero-cta-primary:hover {
  background: #0077ff;
  border-color: #0077ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 136, 255, 0.3);
}
.hero-cta-primary .arrow { transition: transform 0.3s var(--ease); }
.hero-cta-primary:hover .arrow { transform: translateX(4px); }

.hero-cta-secondary {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.3s;
}
.hero-cta-secondary:hover { color: #fff; }

/* Hero floating card (bottom right) */
.hero-card {
  position: absolute;
  bottom: clamp(40px, 8vh, 80px);
  right: clamp(28px, 5vw, 84px);
  z-index: 5;
  width: 320px;
  background: rgba(20,20,20,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  animation: float 6s ease-in-out infinite;
  pointer-events: auto;
  will-change: transform;
}

.most-popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--surface-hover);
  color: var(--text-primary);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid rgba(0, 136, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.3), inset 0 0 8px rgba(0, 136, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(8,146,208,0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #33c3ff);
  border-radius: 3px;
  transition: width 1.2s var(--ease);
}
.hero-progress-text {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .hero-content { max-width: 60%; }
  .hero-card { display: none; }
}
@media (max-width: 640px) {
  .hero-content { max-width: 90%; }
  .hero-headline { font-size: clamp(36px, 10vw, 56px); }
}

/* Transition from hero fog into dark sections */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--obsidian));
  z-index: 3;
  pointer-events: none;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

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

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

.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#countdownDisplay {
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============================================
   TRUSTED BY MARQUEE
   ============================================ */
.marquee {
  padding: 80px 0;
  overflow: hidden;
  background: var(--bg);
}

.marquee-label {
  text-align: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 64px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.marquee-label em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  padding-right: 4px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 48px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s ease;
}
.marquee-item:hover {
  filter: grayscale(0%) opacity(1);
}

/* ============================================
   THE PILLARS
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease);
}
.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--accent-glow);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(8,146,208,0.1);
  color: var(--accent);
  margin-bottom: 24px;
}

.pillar-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PROGRAMS
   ============================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.program-card {
  position: relative;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.program-card.starter {
  background: linear-gradient(180deg, #2b1f1a 0%, #110d0b 100%);
}
.program-card.professional {
  background: linear-gradient(180deg, #1a1f2b 0%, #0b0d11 100%);
}
.program-card.specialist {
  background: linear-gradient(180deg, #1a2b24 0%, #0b110d 100%);
}

.program-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #0a0a0c;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 3;
}

.program-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.program-card-text h3 {
  font-family: var(--serif);
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}
.program-card-text h3 em {
  font-style: italic;
}
.program-card-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.program-highlights {
  margin-top: auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.program-highlights li {
  position: relative;
  padding-left: 20px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.45;
}
.program-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.program-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.program-know-more {
  margin-top: auto;
  width: 100%;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 3;
  text-align: center;
}
.program-know-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c;
}

@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: 1fr; max-width: 540px; margin: 48px auto 0; }
  .program-card { height: auto; min-height: 520px; }
}

/* ============================================
   COURSE MODAL
   ============================================ */
.course-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.course-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}
.course-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.course-modal-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  transform: scale(0.85) translateY(40px);
  transform-origin: center center;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
}
.course-modal.active .course-modal-card {
  transform: scale(1) translateY(0);
}

.course-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.course-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.course-modal-header {
  margin-bottom: 32px;
}
.course-modal-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.course-modal-title {
  font-family: var(--serif);
  font-size: 40px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.course-modal-title em {
  font-style: italic;
}
.course-modal-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.course-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.course-modal-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.course-modal-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-modal-features li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.course-modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.course-modal-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  .course-modal-card { padding: 32px 24px; }
  .course-modal-title { font-size: 32px; }
  .course-modal-body { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   THE JOURNEY (ORIGIN GRID)
   ============================================ */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.origin-card {
  position: relative;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #2b1f1a 0%, #110d0b 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.origin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.origin-glass-inset {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  height: 260px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.origin-card-text {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
}
.origin-card-text h3 {
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.origin-card-text p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   FREE SESSIONS
   ============================================ */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s var(--ease);
}
.session-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.session-date {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(8,146,208,0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.session-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.session-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.session-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.3s;
}
.session-cta:hover { opacity: 0.8; }

@media (max-width: 1024px) {
  .sessions-grid { grid-template-columns: 1fr; max-width: 500px; margin: 48px auto 0; }
}

/* ============================================
   WHO IS THIS FOR
   ============================================ */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.4s var(--ease);
  position: relative;
}
.who-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.who-card-connector {
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 2px;
  background: var(--border);
  z-index: -1;
}
.who-card:last-child .who-card-connector { display: none; }

.who-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(8,146,208,0.1);
  color: var(--accent);
  margin-bottom: 20px;
}

.who-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.who-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-card-connector { display: none; }
}

/* ============================================
   TOOLS
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
  margin-top: 48px;
}

.bento-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.4s var(--ease);
  overflow: hidden;
  position: relative;
}
.bento-item:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--accent-glow);
}
.tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.bento-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text-primary);
}
.bento-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bento-item.span-2 { grid-column: span 2; }
.bento-item.span-row-2 { grid-row: span 2; }

.tool-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(8,146,208,0.1);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(8,146,208,0.2);
}

/* Premium Bento Graphics */
.premium-code-card {
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: clamp(11px, 0.9vw, 13px);
  color: #a1a1aa;
  text-align: left;
  line-height: 1.7;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.code-keyword { color: var(--accent); }
.code-string { color: #30d158; }
.code-comment { color: #52525b; }

.premium-chain-layout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.premium-node {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #f4f4f5;
  transition: all 0.3s var(--ease);
}
.premium-node.active {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.15);
}
.premium-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
}

.premium-crew-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.premium-agent {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
}
.premium-agent.planner { border-color: rgba(167, 139, 250, 0.3); color: #c4b5fd; }
.premium-agent.coder { border-color: rgba(52, 211, 153, 0.3); color: #6ee7b7; }
.premium-agent.writer { border-color: rgba(251, 146, 60, 0.3); color: #fdba74; }

.premium-make-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.premium-make-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #a1a1aa;
}
.premium-make-node.active {
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.15);
}

.premium-n8n-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.premium-flow-step {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  color: #e4e4e7;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.premium-flow-badge {
  font-size: 9px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  margin-top: 24px;
}
.premium-wave-bar {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  transition: all 0.3s;
}
.premium-wave-bar.active {
  background: var(--accent);
  height: 28px;
}

.premium-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 60px;
  margin-top: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.premium-chart-bar {
  width: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
}
.premium-chart-bar.active {
  background: var(--accent);
}

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.span-row-2 { grid-row: span 1; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.span-2 { grid-column: span 1; }
}

/* ============================================
   DUNA VIDEO CAROUSEL & MODAL
   ============================================ */
.duna-carousel-wrapper {
  margin-top: 48px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 32px;
  /* Hide scrollbar for a cleaner look */
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.duna-carousel-wrapper::-webkit-scrollbar {
  display: none;
}
.duna-carousel {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 5%;
  scroll-snap-type: x mandatory;
}
.duna-card {
  width: 280px;
  height: 380px;
  border-radius: 12px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  flex-shrink: 0;
  scroll-snap-align: center;
}
.duna-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.duna-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 6s linear;
}
.duna-card:hover .duna-card-bg {
  opacity: 0.8;
  transform: scale(1.05);
}
.duna-card-content {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
  z-index: 2;
}
.duna-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.duna-card-author {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.duna-card-role {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.duna-card-logo {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.duna-card-logo svg {
  width: 16px;
  height: 16px;
}
.duna-card-quote {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.duna-card-plus {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s ease;
}
.duna-card:hover .duna-card-plus {
  background: rgba(255,255,255,0.3);
}

/* Modal */
.duna-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.duna-modal.active {
  display: flex;
  opacity: 1;
}
.duna-modal-content {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  display: flex;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease);
}
.duna-modal.active .duna-modal-content {
  transform: scale(1);
}
.duna-modal-video {
  flex: 0 0 40%;
  background: #111;
  position: relative;
}
.duna-modal-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duna-modal-text {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.duna-modal-quote {
  font-family: var(--serif);
  font-size: 28px;
  color: #111;
  line-height: 1.4;
  margin-bottom: 32px;
}
.duna-modal-author {
  font-size: 15px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.duna-modal-logo {
  font-weight: 700;
  color: #111;
  font-size: 18px;
}
.duna-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: background 0.3s ease;
}
.duna-modal-close:hover {
  background: rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .duna-modal-content { flex-direction: column; }
  .duna-modal-video { flex: 0 0 250px; }
  .duna-modal-text { padding: 32px; }
  .duna-modal-quote { font-size: 20px; }
}

/* ============================================
   TEAM MEMBERS (ORIGIN)
   ============================================ */
.team-headline {
  font-size: 56px !important;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-photo {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 10px;
}
.team-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(1.15);
}

.team-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

.team-social {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.team-social:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-headline { font-size: 40px !important; }
}

/* ============================================
   TESTIMONIALS (ORIGIN VIDEO CARDS)
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Video placeholder area */
.testimonial-video-area {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #141418, #0c0c0e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.testimonial-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.testimonial-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.testimonial-play-btn svg {
  margin-left: 3px;
}
.testimonial-card:hover .testimonial-play-btn {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}

/* Text below video */
.testimonial-card-body {
  padding: 24px;
}

.testimonial-quote {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.testimonial-title {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ============================================
   QUIZ
   ============================================ */
.quiz-banner {
  padding: 48px 0;
  background: linear-gradient(to right, rgba(10,10,10,0.8), rgba(8,146,208,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quiz-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 48px;
}

.quiz-banner-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.quiz-banner-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .quiz-banner-inner { flex-direction: column; text-align: center; padding: 24px; }
}

/* Quiz Modal */
.quiz-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.quiz-modal.active { display: flex; }

.quiz-modal-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  padding: 40px;
  position: relative;
  animation: fadeInUp 0.4s var(--ease);
}

.quiz-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--text-secondary);
  font-size: 20px;
  transition: all 0.3s;
}
.quiz-close:hover { background: var(--border); color: #ffffff; }

.quiz-progress {
  height: 4px;
  background: var(--surface-hover);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.quiz-question {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 16px 20px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s;
  cursor: pointer;
}
.quiz-option:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(8,146,208,0.05);
}

.quiz-result-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-result-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ============================================
   FOR BUSINESS (FORECAST ORIGIN)
   ============================================ */
.business-forecast {
  background: linear-gradient(180deg, #0d1a2d 0%, #153c6a 100%);
  position: relative;
  overflow: hidden;
}

.forecast-headline {
  font-size: 64px !important;
  margin-bottom: 16px;
  color: #fff;
}
.forecast-sub {
  color: rgba(255,255,255,0.7) !important;
  margin-bottom: 32px !important;
}

.forecast-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 64px;
  transition: all 0.3s ease;
}
.forecast-pill:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.forecast-glass-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.forecast-data-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.forecast-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.forecast-value {
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.forecast-delta {
  font-size: 13px;
  color: #a8e6cf;
  margin-top: 4px;
}

.mock-chart-container {
  position: relative;
  width: 100%;
  height: 240px;
}
.forecast-svg {
  width: 100%;
  height: 200px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .forecast-headline { font-size: 40px !important; }
  .forecast-data-row { flex-direction: column; gap: 24px; }
  .forecast-glass-card { padding: 24px; }
}

/* ============================================
   FAQ SPLIT LAYOUT (ORIGIN INSPIRED)
   ============================================ */
.faq-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .faq-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.faq-icon::before { width: 2px; height: 14px; top: 3px; left: 9px; }
.faq-icon::after { width: 14px; height: 2px; top: 9px; left: 3px; }

.faq-item.open .faq-icon::before { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-tertiary); }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 280px;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer-links a:hover { color: #ffffff; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--text-secondary);
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--accent);
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-bottom a { color: var(--text-tertiary); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .section-headline { font-size: 2.5rem; }
  .hero-headline { font-size: 3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   STICKY BOTTOM CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(20,20,20,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  display: none;
}
@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}
.sticky-cta.visible { transform: translateY(0); }

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sticky-cta-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-cta-batch {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.sticky-cta-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.sticky-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .sticky-cta-inner { flex-direction: column; text-align: center; }
  .sticky-cta-info { flex-direction: column; gap: 4px; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }



/* Curtain Reveal Loader — REMOVED */

/* Curtain Reveal Loader styles kept for reference (HTML element removed) */
.curtain-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* Note: fallback-hide animation removed — HTML element no longer in page */
}
.curtain-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #070708;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
}
.left-panel {
  left: 0;
  transform-origin: left;
}
.right-panel {
  right: 0;
  transform-origin: right;
}
.loader-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #fff;
  z-index: 10001;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.curtain-loader.loaded .left-panel { transform: scaleX(0); }
.curtain-loader.loaded .right-panel { transform: scaleX(0); }
.curtain-loader.loaded .loader-logo { opacity: 0; transform: scale(0.9); }


/* HTML scroll alignment with Lenis */
html.lenis {
  height: auto;
}
.lenis-clean [data-lenis-prevent] {
  touch-action: none;
}
.lenis-clean-scroll {
  overscroll-behavior: contain;
}

/* ==========================================
   STICKY BOTTOM CTA
   ========================================== */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticky-cta-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.sticky-cta-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sticky-cta-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.sticky-cta-price-info {
  display: flex;
  flex-direction: column;
}

.sticky-cta-price {
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sticky-cta-timer {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .sticky-cta-title { display: none; }
  .sticky-cta-inner { justify-content: center; width: 100%; }
}

/* MASTERMIND BENTO GRID STYLES */
.mm-bento-section {
  padding: 100px 0;
  background: var(--obsidian);
}
.mm-bento-header {
  text-align: left;
  margin-bottom: 60px;
}
.mm-bento-header h2 {
  font-size: clamp(32px, 4vw, 42px);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
  font-weight: 700;
}
.mm-bento-header p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  max-width: 800px;
  line-height: 1.7;
}
.mm-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.mm-bento-card {
  position: relative;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.mm-bento-card-wide-left { grid-column: span 7; min-height: 420px; }
.mm-bento-card-wide-right { grid-column: span 5; min-height: 420px; }
.mm-bento-card-third { grid-column: span 4; min-height: 340px; }

/* Background image layer */
.mm-bento-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.mm-bento-card:hover .mm-bento-bg {
  filter: grayscale(0%) brightness(0.7);
}

/* Text content */
.mm-bento-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  pointer-events: none;
}
.mm-bento-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.mm-bento-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

/* "✨ Prompt" label at bottom-left */
.mm-bento-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ---- Database UI mockup inside "Build AI Applications" card ---- */
.mm-db-ui {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin: 0 20px 20px;
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a1a;
}
.mm-db-sidebar {
  width: 160px;
  background: #111;
  padding: 12px 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mm-db-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  cursor: default;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.mm-db-sidebar-item.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.mm-db-sidebar-item:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
.mm-db-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.mm-db-panel {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mm-db-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.mm-db-panel-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.mm-db-tag {
  display: inline-block;
  background: rgba(196, 240, 51, 0.12);
  color: var(--lime, #c4f033);
  border: 1px solid rgba(196, 240, 51, 0.2);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .mm-bento-card-wide-left,
  .mm-bento-card-wide-right { grid-column: span 6; min-height: 360px; }
  .mm-bento-card-third { grid-column: span 4; min-height: 300px; }
}
@media (max-width: 768px) {
  .mm-bento-card-wide-left,
  .mm-bento-card-wide-right,
  .mm-bento-card-third { grid-column: span 12; min-height: 280px; }
  .mm-db-ui { flex-direction: column; }
  .mm-db-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; }
  .mm-db-sidebar-item { white-space: nowrap; padding: 8px 12px; font-size: 12px; border-radius: 6px; }
}
