/* ═══════════════════════════════════════════════════════════════
   INNOVATORS4U — THEME.CSS
   CSS Variables, Base Reset, Typography, Utilities
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DARK THEME (DEFAULT) ── */
:root {
  --bg: #0A0A0C;
  --surface-1: #111116;
  --surface-2: #18181F;
  --surface-3: #22222C;
  --border: rgba(124, 58, 237, .4);
  --border-subtle: rgba(255, 255, 255, 0.08); /* Clean neutral border */
  --border-dim: #353542;
  --text-muted: #787890;
  --text-sec: #B4B4CC;
  --text-pri: #F8F8FF;
  --heading: #FFFFFF;
  --accent: #7C3AED;
  --accent-h: #9F5FFF;
  --accent-blue: #3B82F6;
  --accent-blue-h: #60A5FA;
  --green: #10B981;
  --green-h: #34D399;
  --nav-bg: rgba(10, 10, 12, 0.88);
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  --shadow-h: 0 32px 80px rgba(0, 0, 0, .6);
  --logo-filter: brightness(1.8);
  --logo-brightness: 1.4;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #FFFFFF;
  --surface-1: #F5F5FA;
  --surface-2: #EEEEF6;
  --surface-3: #E4E4EF;
  --border: rgba(109, 40, 217, .3);
  --border-subtle: rgba(0, 0, 0, 0.08); /* Clean neutral border for light mode */
  --border-dim: #BDBDE0;
  --text-muted: #6B6B88;
  --text-sec: #3D3D5C;
  --text-pri: #0D0D1A;
  --heading: #0D0D1A;
  --accent: #6D28D9;
  --accent-h: #7C3AED;
  --accent-rgb: 109, 40, 217;
  --accent-blue: #2563EB;
  --accent-blue-h: #3B82F6;
  --green: #10B981;
  --green-h: #059669;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --shadow: 0 4px 20px rgba(13, 13, 26, .07), 0 1px 4px rgba(13, 13, 26, .05);
  --shadow-h: 0 12px 40px rgba(var(--accent-rgb), 0.15);
  --logo-filter: brightness(0);
  --logo-brightness: 0.6;
}

/* Pillar Theme Overrides */
html.theme-saas {
  --accent: #10B981;
  --accent-h: #059669;
  --accent-rgb: 16, 185, 129;
}

html.theme-ai {
  --accent: #3B82F6;
  --accent-h: #2563EB;
  --accent-rgb: 59, 130, 246;
}

html.theme-marketing {
  --accent: #7C3AED;
  --accent-h: #6D28D9;
  --accent-rgb: 124, 58, 237;
}

/* Mixed-Page Scope Overrides (e.g. Homepage Grids) */
#products {
  --accent: #10B981;
  --accent-h: #059669;
  --accent-rgb: 16, 185, 129;
}

#ai {
  --accent: #3B82F6;
  --accent-h: #2563EB;
  --accent-rgb: 59, 130, 246;
}

#services {
  --accent: #7C3AED;
  --accent-h: #6D28D9;
  --accent-rgb: 124, 58, 237;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

body {
  background: var(--bg);
  color: var(--text-pri);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  text-transform: capitalize;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

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

/* ── LAYOUT ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Ensure content is above ambient background layers */
section,
nav,
footer,
header {
  position: relative;
  z-index: 2;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
}

h2.section-title {
  font-size: clamp(30px, 3.5vw, 46px);
  color: var(--heading);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  max-width: 850px;
}

/* Ensure centered section titles stay centered when hitting max-width */
[style*="text-align:center"],
[style*="text-align: center"],
.text-center,
.faq-intro-header,
.why-left {
  &.section-title, &.section-sub, &.hero-title, &.hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* Also handle children of centered elements */
[style*="text-align:center"] h2.section-title,
[style*="text-align: center"] h2.section-title,
.text-center h2.section-title,
.faq-intro-header h2.section-title {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-inner h1,
h1.hero-title {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure Home Page hero stays left-aligned */
.hero-left .hero-title {
  text-align: left;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 820px;
}

.section-sub {
  color: var(--text-sec);
  font-size: 20px;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 52px;
}

/* Sub-heading centering */
[style*="text-align:center"] .section-sub,
[style*="text-align: center"] .section-sub,
.text-center .section-sub,
.faq-intro-header .section-sub,
.hero-inner .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: .15s
}

.d2 {
  transition-delay: .45s
}

.d3 {
  transition-delay: .45s
}

.d4 {
  transition-delay: .6s
}

.d5 {
  transition-delay: .75s
}

.d6 {
  transition-delay: .6s
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: .06em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, .28);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text-pri);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 34px;
  font-size: 16px;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}

.badge-purple {
  background: rgba(124, 58, 237, .1);
  color: var(--accent);
  border: 1px solid rgba(124, 58, 237, .2);
}

.badge-blue {
  background: rgba(59, 130, 246, .1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, .2);
}

.badge-silver {
  background: var(--surface-3);
  color: var(--text-sec);
  border: 1px solid var(--border);
}

.badge-green {
  background: rgba(16, 185, 129, .1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, .2);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, .06) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-hero .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 66px);
  color: var(--heading);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.page-hero p {
  font-size: 20px;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Also center the btn row if it exists */
.page-hero .btn {
  display: inline-block;
}

/* ── SECTION SEPARATOR ── */
.section-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── CARD BASE ── */
.card-base {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
}

.card-base:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
  border-color: var(--accent);
}

/* ── STATS GRID ── */
.stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-block .num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 50px;
  color: var(--heading);
  line-height: 1;
}

.stat-block .num span {
  color: var(--accent);
}

.stat-block .lbl {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
}

/* ── ICON BOX ── */
.icon-box {
  width: 48px;
  height: 48px;
  background: var(--surface-2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: all .3s ease;
}

.card-base:hover .icon-box {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── AMBIENT BACKGROUND ── */
.orb-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: blur(120px);
  animation: orb-drift 22s ease-in-out infinite;
}

.orb-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 70%);
  animation-duration: 24s;
}

.orb-2 {
  width: 520px;
  height: 520px;
  top: 35%;
  right: -150px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.11) 0%, transparent 70%);
  animation-duration: 18s;
  animation-delay: -9s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  bottom: 18%;
  left: 18%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  animation-duration: 28s;
  animation-delay: -16s;
}

/* ── Orbs adapt to page pillar theme ── */
/* SaaS / Products pages — green */
html.theme-saas .orb-1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
}

html.theme-saas .orb-2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.11) 0%, transparent 70%);
}

html.theme-saas .orb-3 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

/* AI Solutions pages — blue */
html.theme-ai .orb-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
}

html.theme-ai .orb-2 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.11) 0%, transparent 70%);
}

html.theme-ai .orb-3 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

/* Section-scoped orb canvas — reuses .orb / .orb-1 / .orb-2 / .orb-3 */
.section-orb-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.section-orb-canvas .orb-1 {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -90px;
}

.section-orb-canvas .orb-2 {
  width: 420px;
  height: 420px;
  top: 18%;
  right: -110px;
}

.section-orb-canvas .orb-3 {
  width: 360px;
  height: 360px;
  bottom: 8%;
  left: 22%;
}

@keyframes orb-drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 40px) scale(.96);
  }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity .6s ease;
  opacity: 0;
}

[data-theme="light"] .noise {
  opacity: 0.015;
}

[data-theme="light"] .orb-1 {
  background: radial-gradient(circle, rgba(109, 40, 217, .11) 0%, transparent 65%);
}

[data-theme="light"] .orb-2 {
  background: radial-gradient(circle, rgba(99, 102, 241, .09) 0%, transparent 65%);
}

[data-theme="light"] .orb-3 {
  background: radial-gradient(circle, rgba(124, 58, 237, .07) 0%, transparent 65%);
}

/* Page hero in light mode: add radial glow */
[data-theme="light"] .page-hero::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(109, 40, 217, .1) 0%, transparent 65%);
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(109, 40, 217, .22) 0%, transparent 65%);
  opacity: .7;
  mix-blend-mode: multiply;
}

/* ░░ UTILITIES ░░ */
.text-center {
  text-align: center;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-28 {
  margin-bottom: 28px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-48 {
  margin-bottom: 48px;
}

.mb-52 {
  margin-bottom: 52px;
}

.mb-56 {
  margin-bottom: 56px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

.color-accent {
  color: var(--accent);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE HELPERS ── */

@media(max-width:768px) {
  .container {
    padding: 0 20px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  h2.section-title {
    font-size: 28px;
  }
}

/* ── SCROLL TO TOP ── */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 60px;
  background: var(--surface-1);
  color: var(--text-pri);
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: none;
  pointer-events: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.scroll-top-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  opacity: 0.1;
  z-index: -1;
}

/* Progress circle wrap that sits BEHIND the hexagon */
.scroll-top-progress-wrap {
  position: fixed;
  bottom: 27px;
  right: 27px;
  width: 62px;
  height: 70px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.scroll-top-progress-wrap.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-progress-wrap svg {
  width: 100%;
  height: 100%;
}

.progress-hex {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 184; /* Perimeter of 52x60 hex approx */
  stroke-dashoffset: 184;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-btn .progress-circle {
  display: none; /* moved to external wrap */
}

/* External circle progress */
.progress-ring-circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 188.5; /* 2 * PI * 30 */
  stroke-dashoffset: 188.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-btn i {
  font-size: 18px;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* ── WHATSAPP FLOAT BUTTON ── */
.wa-float-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1001; /* Above scroll top */
  text-decoration: none;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}

.wa-float-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transition: filter 0.3s ease;
}



.wa-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
}

.scroll-top-btn.visible ~ .wa-float-btn,
.wa-float-btn.shift-up {
  bottom: 90px;
}

/* ── CURSOR ── */
#cursorDot,
#cursorRing {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

#cursorDot {
  width: 10px;
  height: 11.5px; /* Perfect 0.866 ratio */
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

#cursorRing {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

#cursorRing::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 46px; 
  background: var(--accent);
  /* Even-Odd Rule for Hollow Center */
  clip-path: polygon(
    evenodd,
    /* Outer Hexagon */
    50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%,
    /* Inner Hexagon (Hollow) */
    50% 4.5px, calc(100% - 4.5px) calc(25% + 2.5px), calc(100% - 4.5px) calc(75% - 2.5px), 50% calc(100% - 4.5px), 4.5px calc(75% - 2.5px), 4.5px calc(25% + 2.5px)
  );
  opacity: 0.4;
  transition: all 0.4s ease;
}

#cursorRing::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 23px;
  background: var(--accent);
  clip-path: polygon(
    evenodd,
    50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%,
    50% 1.5px, calc(100% - 1.5px) calc(25% + 1px), calc(100% - 1.5px) calc(75% - 1px), 50% calc(100% - 1.5px), 1.5px calc(75% - 1px), 1.5px calc(25% + 1px)
  );
  opacity: 0.2;
  transition: all 0.4s ease;
}

#cursorRing.hovering::before {
  width: 50px;
  height: 57.5px;
  opacity: 1;
}

:root:not([data-theme="light"]) #cursorRing.hovering::before {
  background: #fff;
}

#cursorDot.hovering {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.3);
}

:root:not([data-theme="light"]) #cursorDot.hovering {
  background: #fff;
}

#cursorRing.active {
  transform: translate(-50%, -50%) scale(0.8);
}

@media (max-width: 1024px) {
  #cursorDot, #cursorRing { display: none !important; }
}
/* ── LOADER v3 — 3D Glassmorphism Reveal (Enhanced) ── */
.premium-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  overflow: hidden;
}

[data-theme="light"] .premium-loader {
  background: rgba(255, 255, 255, 0.85);
}

.premium-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Ambient glow behind logo — subtle, no pulsing backlight */
.loader-ambient-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

[data-theme="light"] .loader-ambient-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 65%);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 2;
}

.loader-logo-wrap {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoEnter3D 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, logoBreathe 4s ease-in-out infinite 1.2s;
  transform-style: preserve-3d;
  position: relative;
}

.loader-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 3;
}

/* Fix visibility on light theme: invert white PNG to dark */
[data-theme="light"] .loader-logo {
  filter: invert(1) brightness(0.2) drop-shadow(0 12px 24px rgba(124, 58, 237, 0.2));
}

/* Simple outer orbit for complexity */
.loader-orbit-ring {
  position: absolute;
  inset: 10px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top-color: rgba(99, 102, 241, 0.4);
  animation: loaderSpin 3s linear infinite;
  z-index: 1;
}

[data-theme="light"] .loader-orbit-ring {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top-color: rgba(99, 102, 241, 0.6);
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoEnter3D {
  0% {
    opacity: 0;
    transform: rotateY(90deg) scale(0.8) translateZ(-100px);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1) translateZ(0);
  }
}

@keyframes logoBreathe {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.04) translateY(-4px);
  }
}

.loader-logo-wrap.exit {
  animation: logoExit3D 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logoExit3D {
  0% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.8);
  }
}

/* Progress bar and text */
.loader-progress-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: progressEnter 0.8s ease forwards 0.8s;
}

@keyframes progressEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }

  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.loader-progress {
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .loader-progress {
  background: rgba(0, 0, 0, 0.1);
}

.loader-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
  background-size: 200% 100%;
  animation: progressFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards, progressShimmer 2s linear infinite;
  border-radius: 4px;
}

@keyframes progressFill {
  0% {
    width: 0;
  }

  35% {
    width: 45%;
  }

  65% {
    width: 78%;
  }

  100% {
    width: 100%;
  }
}

@keyframes progressShimmer {
  to {
    background-position: -200% 0;
  }
}

.loader-text {
  margin-top: 15px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .loader-text {
  color: rgba(0, 0, 0, 0.4);
}

.loader-progress-wrap.exit {
  animation: progressExit 0.4s ease forwards;
}

@keyframes progressExit {
  to {
    opacity: 0;
    transform: translateY(10px);
  }

  from {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY — 2 fonts only
   Brasika Display : hero h1 + bottom CTA title only
   Josefin Sans    : everything else
═══════════════════════════════════════════════════════ */
h1.hero-title,
.page-hero h1 {
  font-family: 'Brasika Display', 'Josefin Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-align: center;
}
h1.hero-title { font-size: clamp(34px, 5vw, 62px); line-height: 1.06; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 56px); line-height: 1.08; }

.cta-title {
  font-family: 'Brasika Display', 'Josefin Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Touch-active tap feedback */
.touch-active.btn { transform: scale(0.91) !important; transition: transform .14s ease !important; }
.touch-active:not(.btn) { transform: scale(0.96) !important; transition: transform .14s ease !important; }
