/* ============================================
   NiSkills — styles.css
   Dark navy EdTech theme (forked from SuSAMs)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
    --navy-950:  #0b1120;
    --navy-900:  #0f172a;
    --navy-800:  #1e293b;
    --navy-700:  #334155;
    --cyan-500:  #06b6d4;
    --cyan-400:  #22d3ee;
    --cyan-300:  #67e8f9;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --pink-500:   #ec4899;
    --pink-400:   #f472b6;
    --emerald-500:#10b981;
    --emerald-400:#34d399;
    --violet-500: #8b5cf6;
    --violet-400: #a78bfa;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--navy-900);
    color: #f1f5f9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.heading-font { font-family: 'Space Grotesk', sans-serif; }

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan-500), var(--cyan-300));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ── Navbar ── */
.navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background: var(--cyan-500);
    transition: width 0.3s ease;
    border-radius: 999px;
}

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

.nav-link.active { color: var(--cyan-400); }

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hex-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle, rgba(6, 182, 212, 0.8) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ── Stat Numbers ── */
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--cyan-400);
    line-height: 1;
}

/* ── Badge / Pill ── */
.niche-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 9999px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan-400);
}

/* ── Feature Cards ── */
.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
    transition: left 0.55s ease;
}

.feature-card:hover::before { left: 110%; }

.feature-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), 0 0 16px rgba(6, 182, 212, 0.06);
}

/* ── Pillar Cards ── */
.pillar-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
    transition: left 0.55s ease;
}

.pillar-card:hover::before { left: 110%; }

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), 0 0 16px rgba(6, 182, 212, 0.06);
}

.pillar-card.pillar-orange { border-color: rgba(249, 115, 22, 0.25); }
.pillar-card.pillar-orange:hover { border-color: rgba(249, 115, 22, 0.5); }
.pillar-card.pillar-orange::before { background: linear-gradient(90deg, transparent, var(--orange-400), transparent); }

.pillar-card.pillar-pink { border-color: rgba(236, 72, 153, 0.25); }
.pillar-card.pillar-pink:hover { border-color: rgba(236, 72, 153, 0.5); }
.pillar-card.pillar-pink::before { background: linear-gradient(90deg, transparent, var(--pink-400), transparent); }

.pillar-card.pillar-cyan { border-color: rgba(6, 182, 212, 0.25); }
.pillar-card.pillar-cyan:hover { border-color: rgba(6, 182, 212, 0.5); }

.pillar-card.pillar-emerald { border-color: rgba(16, 185, 129, 0.25); }
.pillar-card.pillar-emerald:hover { border-color: rgba(16, 185, 129, 0.5); }
.pillar-card.pillar-emerald::before { background: linear-gradient(90deg, transparent, var(--emerald-400), transparent); }

/* ── Pricing Cards ── */
.pricing-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.12);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pricing-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    border-color: rgba(6, 182, 212, 0.4);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.testimonial-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
}

/* ── Step Cards ── */
.step-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.12);
    transition: border-color 0.3s ease, transform 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    position: relative;
}

.step-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    border-top: 2px dashed rgba(6, 182, 212, 0.3);
}

/* ── FAQ Details ── */
.faq-details {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.08);
    border-radius: 1rem;
    transition: border-color 0.3s ease;
}

.faq-details[open] {
    border-color: rgba(6, 182, 212, 0.3);
}

.faq-details summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-details summary::-webkit-details-marker { display: none; }

.faq-details summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--cyan-400);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-details[open] summary::after {
    content: '-';
}

.faq-details .faq-body {
    padding: 0 1.5rem 1.25rem;
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ── Demo Modal ── */
.demo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal {
    background: var(--navy-800);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 1.5rem;
    max-width: 32rem;
    width: 100%;
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.demo-modal-header {
    padding: 2rem 2rem 0;
    flex-shrink: 0;
}

.demo-modal-body {
    padding: 1rem 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.demo-modal-footer {
    padding: 0.75rem 2rem 2rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.demo-modal-body::-webkit-scrollbar { width: 4px; }
.demo-modal-body::-webkit-scrollbar-track { background: transparent; }
.demo-modal-body::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 4px; }
.demo-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.4); }

.demo-modal-overlay.active .demo-modal {
    transform: translateY(0);
}

/* ── Tech Tags ── */
.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #a5f3fc;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    cursor: default;
}

.tech-tag:hover {
    background: rgba(6, 182, 212, 0.16);
    border-color: rgba(6, 182, 212, 0.4);
    color: #cffafe;
}

/* ── Hero Floating Cards ── */
.hero-float-card {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ── CTA / Contact Section ── */
.cta-section {
    background: linear-gradient(135deg,
        rgba(6, 182, 212, 0.08) 0%,
        rgba(6, 182, 212, 0.03) 100%);
    border-top: 1px solid rgba(6, 182, 212, 0.12);
}

/* ── Partner Badges ── */
.partner-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 12px;
    padding: 14px 22px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.3s, color 0.3s;
}

.partner-badge:hover {
    border-color: rgba(6, 182, 212, 0.35);
    color: #e2e8f0;
}

/* ── Scroll Fade-up Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .ni-cube { animation: none !important; }
    .ni-globe-spin { animation: none !important; }
    .ni-globe-pulse { animation: none !important; }
    .problem-card { transition: none; }
}

/* ── Globe Animation ── */
.ni-globe-wrap {
    width: 100%;
    max-width: 320px;
}

.ni-globe-spin {
    transform-origin: 160px 160px;
    animation: globeSpin 20s linear infinite;
}

@keyframes globeSpin {
    0%   { transform: scaleX(1); }
    25%  { transform: scaleX(0.3); }
    50%  { transform: scaleX(-1); }
    75%  { transform: scaleX(-0.3); }
    100% { transform: scaleX(1); }
}

.ni-globe-pulse {
    animation: globePulse 2.5s ease-in-out infinite;
}

@keyframes globePulse {
    0%, 100% { r: 12; opacity: 0.3; }
    50%      { r: 18; opacity: 0.1; }
}

.ni-globe-dot {
    animation: globeDotGlow 2.5s ease-in-out infinite;
}

@keyframes globeDotGlow {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 1; }
}

/* ── Mobile Menu ── */
#mobileMenu {
    background: rgba(15, 23, 42, 0.97);
    border-top: 1px solid rgba(6, 182, 212, 0.12);
}

/* ── Form Inputs (dark theme) ── */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--cyan-500) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* ── Hide reCAPTCHA badge ── */
.grecaptcha-badge { visibility: hidden; }

/* ── 3D NI Cube ── */
.ni-cube-scene {
    width: 200px;
    height: 200px;
    perspective: 700px;
    cursor: grab;
}

.ni-cube-scene:active { cursor: grabbing; }

.ni-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: niCubeSpin 22s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.ni-cube.dragging {
    animation: none;
}

.ni-cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    backface-visibility: hidden;
}

.ni-cube-front  { transform: rotateY(0deg)   translateZ(100px); }
.ni-cube-back   { transform: rotateY(180deg) translateZ(100px); }
.ni-cube-right  { transform: rotateY(90deg)  translateZ(100px); }
.ni-cube-left   { transform: rotateY(-90deg) translateZ(100px); }
.ni-cube-top    { transform: rotateX(90deg)  translateZ(100px) rotateZ(-90deg); }
.ni-cube-bottom { transform: rotateX(-90deg) translateZ(100px) rotateZ(90deg); }

.ni-cube-front {
    background: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, rgba(249,115,22,0.04) 100%);
    border: 1px solid rgba(249,115,22,0.3);
    box-shadow: inset 0 0 40px rgba(249,115,22,0.06);
}
.ni-cube-right {
    background: linear-gradient(135deg, rgba(6,182,212,0.15) 0%, rgba(6,182,212,0.04) 100%);
    border: 1px solid rgba(6,182,212,0.3);
    box-shadow: inset 0 0 40px rgba(6,182,212,0.06);
}
.ni-cube-back {
    background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.04) 100%);
    border: 1px solid rgba(16,185,129,0.3);
    box-shadow: inset 0 0 40px rgba(16,185,129,0.06);
}
.ni-cube-left {
    background: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(236,72,153,0.04) 100%);
    border: 1px solid rgba(236,72,153,0.3);
    box-shadow: inset 0 0 40px rgba(236,72,153,0.06);
}
.ni-cube-top {
    background: linear-gradient(135deg, rgba(6,182,212,0.2) 0%, rgba(139,92,246,0.12) 100%);
    border: 1px solid rgba(6,182,212,0.35);
    box-shadow: inset 0 0 60px rgba(6,182,212,0.08), 0 0 30px rgba(6,182,212,0.1);
}
.ni-cube-bottom {
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(30,41,59,0.9) 100%);
    border: 1px solid rgba(6,182,212,0.1);
}

/* 3D text on cube faces */
.cube-text-3d {
    text-shadow:
        0 1px 0 rgba(255,255,255,0.15),
        0 2px 4px rgba(0,0,0,0.5),
        0 4px 8px rgba(0,0,0,0.3),
        0 0 20px currentColor;
    letter-spacing: 0.08em;
}
.ni-cube-front .cube-text-3d  { text-shadow: 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3), 0 0 24px rgba(249,115,22,0.5); }
.ni-cube-right .cube-text-3d  { text-shadow: 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3), 0 0 24px rgba(6,182,212,0.5); }
.ni-cube-back .cube-text-3d   { text-shadow: 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3), 0 0 24px rgba(16,185,129,0.5); }
.ni-cube-left .cube-text-3d   { text-shadow: 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3), 0 0 24px rgba(236,72,153,0.5); }
.ni-cube-top .cube-text-3d    { text-shadow: 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3), 0 0 30px rgba(6,182,212,0.6), 0 0 60px rgba(139,92,246,0.3); }
.ni-cube-bottom .cube-text-3d { text-shadow: 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(6,182,212,0.4); }

.cube-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* Pillar card <-> cube sync highlight */
.pillar-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.pillar-card.pillar-active {
    transform: scale(1.03);
}
.pillar-card.pillar-orange.pillar-active { box-shadow: 0 0 24px rgba(249,115,22,0.35); border-color: rgba(249,115,22,0.6); }
.pillar-card.pillar-pink.pillar-active   { box-shadow: 0 0 24px rgba(236,72,153,0.35); border-color: rgba(236,72,153,0.6); }
.pillar-card.pillar-emerald.pillar-active { box-shadow: 0 0 24px rgba(16,185,129,0.35); border-color: rgba(16,185,129,0.6); }
.pillar-card.pillar-cyan.pillar-active   { box-shadow: 0 0 24px rgba(6,182,212,0.35); border-color: rgba(6,182,212,0.6); }

/* Connector lines from cube to pillar cards */
.connector-line {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 6 4;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.connector-line.active {
    opacity: 0.7;
    animation: connectorDash 0.8s linear infinite;
}
@keyframes connectorDash {
    to { stroke-dashoffset: -20; }
}
#pillarConnectors { pointer-events: none; }

@media (max-width: 767px) {
    #pillarConnectors { display: none; }
}

@keyframes niCubeSpin {
    /* CI — front */
    0%      { transform: rotateX(12deg)  rotateY(-8deg); }
    5%      { transform: rotateX(12deg)  rotateY(-8deg); }
    /* EI — left face */
    10%     { transform: rotateX(12deg)  rotateY(82deg); }
    14%     { transform: rotateX(12deg)  rotateY(82deg); }
    /* FI — back face */
    19%     { transform: rotateX(12deg)  rotateY(172deg); }
    23%     { transform: rotateX(12deg)  rotateY(172deg); }
    /* TI — right face */
    28%     { transform: rotateX(12deg)  rotateY(262deg); }
    32%     { transform: rotateX(12deg)  rotateY(262deg); }
    /* Bottom face */
    38%     { transform: rotateX(-80deg) rotateY(265deg); }
    44%     { transform: rotateX(-80deg) rotateY(265deg); }
    /* Top face */
    52%     { transform: rotateX(80deg)  rotateY(265deg); }
    58%     { transform: rotateX(80deg)  rotateY(265deg); }
    /* Bounce 1 — dip */
    62%     { transform: rotateX(68deg)  rotateY(270deg); }
    /* Bounce 1 — back */
    66%     { transform: rotateX(80deg)  rotateY(265deg); }
    /* Bounce 2 — smaller dip */
    69%     { transform: rotateX(74deg)  rotateY(268deg); }
    /* Bounce 2 — settle */
    72%     { transform: rotateX(80deg)  rotateY(265deg); }
    /* Hold top then transition to CI for seamless loop */
    85%     { transform: rotateX(80deg)  rotateY(265deg); }
    95%     { transform: rotateX(12deg)  rotateY(352deg); }
    100%    { transform: rotateX(12deg)  rotateY(352deg); }
}

body.light .ni-cube-front {
    background: linear-gradient(135deg, rgba(249,115,22,0.1) 0%, rgba(255,255,255,0.8) 100%);
}
body.light .ni-cube-right {
    background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(255,255,255,0.8) 100%);
}
body.light .ni-cube-back {
    background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(255,255,255,0.8) 100%);
}
body.light .ni-cube-left {
    background: linear-gradient(135deg, rgba(236,72,153,0.1) 0%, rgba(255,255,255,0.8) 100%);
}
body.light .ni-cube-top {
    background: linear-gradient(135deg, rgba(6,182,212,0.12) 0%, rgba(255,255,255,0.9) 100%);
}
body.light .ni-cube-bottom {
    background: rgba(255,255,255,0.85);
}

/* ── Problem Carousel (3D) ── */
.problem-carousel {
    perspective: 1200px;
    overflow: visible;
    padding: 40px 0;
}
.problem-carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    transform-style: preserve-3d;
    position: relative;
    height: 320px;
}
.problem-card {
    position: absolute;
    width: 340px;
    max-width: 85vw;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s ease,
                box-shadow 0.8s ease,
                filter 0.8s ease;
    cursor: pointer;
}
.problem-card.pc-center {
    transform: translateZ(60px) scale(1.08);
    z-index: 3;
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(6,182,212,0.12);
    filter: brightness(1.05);
}
.problem-card.pc-left {
    transform: translateX(-110%) rotateY(35deg) scale(0.88);
    z-index: 1;
    opacity: 0.6;
    filter: brightness(0.7);
}
.problem-card.pc-right {
    transform: translateX(110%) rotateY(-35deg) scale(0.88);
    z-index: 1;
    opacity: 0.6;
    filter: brightness(0.7);
}

@media (max-width: 767px) {
    .problem-carousel-track { height: 280px; }
    .problem-card { width: 280px; }
    .problem-card.pc-left  { transform: translateX(-80%) rotateY(30deg) scale(0.82); opacity: 0.4; }
    .problem-card.pc-right { transform: translateX(80%) rotateY(-30deg) scale(0.82); opacity: 0.4; }
}

/* ── NI > AI Animated Badge ── */
.ni-ai-badge {
    animation: niPulse 2.5s ease-in-out infinite;
}

@keyframes niPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 24px rgba(6, 182, 212, 0.5), 0 0 48px rgba(6, 182, 212, 0.15); }
}

/* ── Hero NI Collapse Animation ── */
#niText .ni-char {
    display: inline-block;
    overflow: hidden;
    white-space: pre;
    transition: max-width 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
    vertical-align: bottom;
}

#niText .ni-char.collapse {
    max-width: 0 !important;
    opacity: 0;
}

#niText .ni-key {
    transition: color 0.8s ease, text-shadow 0.8s ease;
}

#niText .ni-key.glow {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(6, 182, 212, 0.7), 0 0 28px rgba(6, 182, 212, 0.3);
}

/* ── Light Theme ── */
body.light {
    --navy-950: #f8fafc;
    --navy-900: #f1f5f9;
    --navy-800: #e2e8f0;
    --navy-700: #cbd5e1;
    background-color: #f8fafc;
    color: #1e293b;
}

body.light .text-white { color: #1e293b !important; }
body.light .text-slate-300 { color: #475569 !important; }
body.light .text-slate-400 { color: #64748b !important; }
body.light .text-slate-500 { color: #64748b !important; }
body.light .text-slate-600 { color: #94a3b8 !important; }
body.light .text-slate-700 { color: #94a3b8 !important; }

body.light .border-slate-600 { border-color: #cbd5e1 !important; }
body.light .border-slate-700 { border-color: #cbd5e1 !important; }

body.light .bg-transparent { background-color: #ffffff !important; }

body.light input, body.light select, body.light textarea {
    color: #1e293b !important;
}

body.light .placeholder-slate-600::placeholder { color: #94a3b8 !important; }

body.light .hex-grid-bg { opacity: 0.03; }

body.light .hero-section {
    background: linear-gradient(160deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%) !important;
}

body.light .hero-section::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 65%);
}

body.light .hero-section::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 65%);
}

body.light .navbar.scrolled {
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.light #mobileMenu {
    background: rgba(248, 250, 252, 0.97);
    border-top: 1px solid rgba(6, 182, 212, 0.12);
}

body.light .feature-card,
body.light .pillar-card,
body.light .pricing-card,
body.light .testimonial-card,
body.light .step-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e2e8f0;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

body.light .feature-card:hover,
body.light .pillar-card:hover,
body.light .pricing-card:hover,
body.light .testimonial-card:hover,
body.light .step-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(6, 182, 212, 0.4);
}

body.light .pricing-card.featured {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(6, 182, 212, 0.02));
    border-color: rgba(6, 182, 212, 0.4);
}

body.light .faq-details {
    background: rgba(255, 255, 255, 0.7);
    border-color: #e2e8f0;
}

body.light .faq-details[open] { border-color: rgba(6, 182, 212, 0.4); }
body.light .faq-details summary { color: #1e293b; }
body.light .faq-details .faq-body { color: #475569; }

body.light .hero-float-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

body.light .niche-badge {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.2);
}

body.light .partner-badge {
    background: rgba(255, 255, 255, 0.6);
    border-color: #e2e8f0;
    color: #475569;
}

body.light .partner-badge:hover { color: #1e293b; border-color: rgba(6, 182, 212, 0.4); }

body.light .cta-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, rgba(6, 182, 212, 0.02) 100%) !important;
    border-top-color: #e2e8f0;
}

body.light footer {
    background: #f1f5f9 !important;
    border-top-color: #e2e8f0 !important;
}

body.light .demo-modal {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light .demo-modal-overlay { background: rgba(0, 0, 0, 0.4); }

body.light .ni-ai-badge {
    background: rgba(6, 182, 212, 0.08) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
}

body.light .stat-number { color: var(--cyan-500); }

body.light .scroll-progress {
    background: linear-gradient(90deg, var(--cyan-500), #0891b2);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-float-card { display: none; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .step-connector { display: none; }
}

@media (max-width: 768px) {
    .stat-number { font-size: 1.85rem; }
}
