:root {
    /* Colors */
    --background: 240 0% 0%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --primary: 47 95% 58%;
    /* Gold */
    --primary-foreground: 240 5.9% 10%;
    --muted: 240 3.7% 10%;
    --muted-foreground: 240 5% 64.9%;
    --border: 240 3.7% 15.9%;

    /* Fonts */
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    /* Removed overflow-x: hidden to prevent breaking position: sticky in certain browsers */
    letter-spacing: -0.02em;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: hsl(var(--background));
    font-weight: 500;
}

/* Global spotlight removed from body as requested */
/* body::before logic moved to individual cards */

/* State to hide spotlight globally (via JS or :has) */
body.stop-spotlight::before {
    opacity: 0;
}

/* Utility to physically block the view of the body's background spotlight */
.spotlight-blocker {
    background-color: hsl(var(--background));
    position: relative;
    z-index: 10;
}

.div-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1200px;
}

/* Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

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

.text-primary {
    color: hsl(var(--primary));
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

p {
    font-weight: 500;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4.5rem;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    font-weight: 600;
    padding: 0.8rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    border: none;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.btn-standard {
    background: hsl(var(--primary));
    color: #000;
}

.btn-standard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px hsla(var(--primary), 0.3);
    background: #fff;
    /* Turns white on hover for premium feel */
}

.btn-standard-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-standard-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #be9d30;
}

/* Porta Unlock Button Overrides */
#btn-unlock-portal {
    pointer-events: auto;
    /* Allow click */
    transition: transform 0.2s ease, opacity 0.5s ease;
}

#btn-unlock-portal:hover {
    transform: none !important;
    background: hsl(var(--primary)) !important;
    color: #000 !important;
    box-shadow: none !important;
}

@keyframes portal-btn-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.btn-portal-shake {
    animation: portal-btn-shake 0.15s ease-in-out 2;
}

/* Lightweight CSS shake for locked portal carousel */
@keyframes portal-carousel-shake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-2deg); }
    40% { transform: rotate(2deg); }
    60% { transform: rotate(-1.5deg); }
    80% { transform: rotate(1.5deg); }
}

.portal-locked-shake {
    animation: portal-carousel-shake 0.3s ease-in-out;
}

.portal-locked-shake .dashed-circle-svg {
    animation: portal-carousel-shake 0.3s ease-in-out;
}

/* Chess Icons Gold Styling */
.golden-chess-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    /* Sempre dourado (Autoridade constante) */
    filter: brightness(0) saturate(100%) invert(87%) sepia(36%) saturate(1832%) hue-rotate(3deg) brightness(105%) contrast(101%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* Quando o card é ativado pela linha do tempo (Sincronizado com Mentalidade) */
.pillar-item.active .golden-chess-icon {
    /* Mantém o ícone dourado mesmo ativado */
    filter: brightness(0) saturate(100%) invert(87%) sepia(36%) saturate(1832%) hue-rotate(3deg) brightness(105%) contrast(101%);
    transform: none;
}

.pillar-item.active .pillar-icon-box {
    background: hsl(var(--primary));
    /* Fundo dourado preenchido como nos cards de Mentalidade */
    border-color: hsl(var(--primary));
    box-shadow: 0 0 30px hsla(var(--primary), 0.4);
}

.pillar-item:hover .golden-chess-icon {
    transform: none;
    filter: brightness(0) saturate(100%) invert(87%) sepia(36%) saturate(1832%) hue-rotate(3deg) brightness(115%) contrast(105%);
}

/* Garante que no hover do item ativo, o ícone continue dourado */
.pillar-item.active:hover .golden-chess-icon {
    filter: brightness(0) saturate(100%) invert(87%) sepia(36%) saturate(1832%) hue-rotate(3deg) brightness(115%) contrast(105%);
    transform: none;
}

/* -------------------------------------------------------------------------- */
/* CHESS PORTAL & KEYHOLE ANIMATION SYSTEM                                     */
/* -------------------------------------------------------------------------- */

.portal-section-outer {
    height: 400vh;
    position: relative;
    background-color: transparent;
    /* Default to transparent allows body spotlight */
    transition: background-color 0.8s ease;
}

.light-theme-section .portal-section-outer {
    background-color: #ffffff;
}

.portal-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    /* Ensure no parent overflow: hidden breaks this */
    z-index: 5;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Larger carousel column */
    gap: 6rem;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 6rem;
}

.portal-stage {
    position: relative;
    height: 600px;
    width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1d1d1d;
    /* Dark mode: dark background for keyhole contrast */
    border: none;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: none;
    transition: background 0.8s ease, box-shadow 0.8s ease;
}

.portal-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #2A2A2A;

    /* Repetitive SVG Grid Pattern (Spotlight) */
    -webkit-mask-image: url('../images/to_convert/4.svg');
    mask-image: url('../images/to_convert/4.svg');
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 40px auto;
    mask-size: 40px auto;

    opacity: 1;
    transition: opacity 0.8s ease;
}

.light-theme-section .portal-stage {
    background: #fbfbfb;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.02);
}

.light-theme-section .portal-stage::before {
    opacity: 0;
}

.portal-bg-reveal {
    /* Legacy element - hidden, using peão mask instead */
    display: none;
}

.chess-carousel-root {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.dashed-circle-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.orbit-piece {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
}

.orbit-piece img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
    /* Black as requested */
    opacity: 1;
    /* Solid as requested */
    transition: filter 0.3s ease;
}

.portal-peao-wrapper {
    position: absolute;
    width: auto;
    height: 110px;
    aspect-ratio: 0.6;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
    /* Keyhole mask effect */
    background-image: url('../images/bg_hero_section.webp');
    background-size: cover;
    background-position: center center;
    -webkit-mask-image: url('../images/chess/peao.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('../images/chess/peao.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: height 0.1s linear;
}

/* Solid overlay that covers the image initially */
.portal-peao-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1d1d1f;
    opacity: var(--peao-overlay-opacity, 1);
    transition: opacity 0.1s linear;
    pointer-events: none;
}

.portal-peao-svg {
    /* Hide the original SVG since we're using mask */
    opacity: 0;
}

/* Hide orbit pieces in dark mode (after transition) */
.portal-stage .orbit-piece {
    transition: opacity 0.5s ease;
}

.peao-reveal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    -webkit-mask-image: url('../images/chess/peao.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('../images/chess/peao.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    opacity: 0;
    z-index: 16;
    /* Above Reveal */
}

.portal-blackout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
}

.btn-primary {
    background: hsl(var(--primary));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px hsla(var(--primary), 0.2);
    opacity: 0.9;
}

.btn-standard-ghost {
    background: transparent;
}

.btn-standard-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
    padding: 10rem 0 0rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('../images/background_goldenrules_herosectino.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 36rem;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    /* Slightly taller gradient for smoother fade */
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content stays above the gradient if needed */
.hero>.div-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.8rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em !important;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 5vw, 3.5rem);
    color: hsl(var(--muted-foreground));
    max-width: 1000px;
    margin: 0 auto 3rem;
    line-height: 1.1;
    font-weight: 700;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* Modern Card Design */
.feature-card {
    position: relative;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.03);
    /* Slightly more opaque for better blur definition */
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    min-height: 240px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Local Spotlight Effect for Cards */
.feature-card::before,
.pain-impact-card::before,
.manifesto-card::before,
.pillar-info::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Behind content */
    pointer-events: none;

    /* Using local vars --mouse-x, --mouse-y provided by JS */
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 215, 0, 0.15),
            rgba(255, 215, 0, 0.05) 20%,
            transparent 60%);

    /* SVG Pattern Mask Texture */
    -webkit-mask-image: url('../images/to_convert/4.svg');
    -webkit-mask-repeat: repeat;
    -webkit-mask-size: 40px auto;
    mask-image: url('../images/to_convert/4.svg');
    mask-repeat: repeat;
    mask-size: 40px auto;

    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.manifesto-card,
.pillar-info {
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.15);
    /* Subtle Golden Shadow */
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.5),
        0 0 20px -5px rgba(212, 175, 55, 0.1);
}

.pilar-content {
    position: relative;
    z-index: 3;
}

/* Global spotlight removed from body as requested */
/* body::before logic moved to individual cards */
.card-border-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Sophisticated gold border response */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(212, 175, 55, 0.4) 0%,
            transparent 180px);
    margin: -1px;
    border-radius: inherit;
    padding: 1px;
    /* This creates the sharp border-only glow effect */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-card:hover .card-border-glow,
.pain-impact-card .card-border-glow {
    opacity: 1;
}

/* Pain Impact Card (Red variant) */
.pain-impact-card {
    position: relative;
    background: rgba(255, 51, 0, 0.08);
    /* More solid */
    border: 1px solid rgba(255, 51, 0, 0.6);
    /* More solid */
    /* Rounded top, Sharp bottom */
    border-radius: 4rem 4rem 0 0;
    padding: 6rem 3rem 5rem;
    max-width: 1000px;
    margin: 15rem auto 0;
    margin-bottom: 0;
    text-align: center;
    overflow: hidden;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 40px rgba(255, 51, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pain-impact-card:hover {
    border-color: #ff3300;
    background: rgba(255, 51, 0, 0.1);
    box-shadow: 0 30px 60px rgba(255, 51, 0, 0.2);
}

.pain-impact-card .card-border-glow {
    opacity: 1;
    /* Always visible as requested */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 51, 0, 0.4) 0%,
            transparent 250px);
}

.pain-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 51, 0, 0.8));
    /* To color an SVG image red */
    background-color: #ff3300;
    -webkit-mask: url('../../assets/images/to_convert/3.svg') no-repeat center;
    mask: url('../../assets/images/to_convert/3.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.pilar-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(47, 95, 58, 0.1);
    /* hsl(var(--primary)) alpha */
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: hsl(var(--primary));
    border: 1px solid hsla(var(--primary), 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .pilar-icon {
    transform: none;
    /* Removed scale and rotate as requested */
    background: hsla(var(--primary), 0.2);
}

/* ISOLATION: Hero Pillars (#1, #2...) specific overrides */
/* Ensures they are explicitly GOLD and DO NOT change on hover */
.masonry-item .pilar-icon {
    color: #be9d30 !important;
    border-color: rgba(190, 157, 48, 0.2) !important;
    background: rgba(190, 157, 48, 0.1) !important;
}

.masonry-item .feature-card:hover .pilar-icon {
    color: #be9d30 !important;
    background: rgba(190, 157, 48, 0.1) !important;
    border-color: rgba(190, 157, 48, 0.2) !important;
    transform: none !important;
    /* Strict no-motion if desired, or just color lock */
}

.pilar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.pilar-desc {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Layout do Bento Grid (Pilares) */
@media (min-width: 768px) {
    .pilar-1 {
        grid-column: span 8;
    }

    .pilar-2 {
        grid-column: span 4;
    }

    .pilar-3 {
        grid-column: span 4;
    }

    .pilar-4 {
        grid-column: span 8;
    }
}

/* Admission Protocol Section */
#admissao {
    scroll-margin-top: 80px;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Global Content Optimization */
#logo-3d-container,
.logo-3d-responsive {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 10;
    cursor: grab;
    display: block;
    overflow: hidden;
    /* Prevent canvas spill */
}

#logo-3d-container {
    height: 240px;
    /* Specific hero height */
    max-width: 100%;
}

@media (max-width: 768px) {

    #logo-3d-container,
    .logo-3d-responsive {
        height: 300px;
    }
}

@media (max-width: 480px) {

    #logo-3d-container,
    .logo-3d-responsive {
        height: 250px;
    }
}

.dopamine-section {
    position: relative;
    background: #ffffff !important;
    color: #1d1d1f;
    overflow: hidden;
    /* Performance Optimization: content-visibility */
    content-visibility: auto;
    contain-intrinsic-size: 100vh;
    /* Estimates height to avoid layout shift */
}

/* Light Theme Transition Section */
.light-theme-section {
    background-color: #ffffff !important;
    color: #1d1d1f;
    position: relative;
    z-index: 50;
    padding-top: 0;
    /* Managed by inner containers */
    padding-bottom: 10rem;
}

.light-theme-section * {
    color: #1d1d1f;
}

.light-theme-section h1,
.light-theme-section h2,
/* -------------------------------------------------------------------------- */
/* LIGHT THEME OVERRIDES (SECTION SPECIFIC)                                    */
/* -------------------------------------------------------------------------- */
/* Elements default to DARK/PREMIUM. We override ONLY for the light section wrapper */

.light-theme-section {
    background-color: #ffffff;
    color: #1d1d1f;
    position: relative;
    z-index: 10;
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease;
}

.light-theme-section p,
.light-theme-section span.text-muted,
.light-theme-section li {
    color: #86868b !important;
}

.light-theme-section .text-primary {
    color: #be9d30 !important;
}

/* -------------------------------------------------------------------------- */
/* HYBRID ELEMENT STYLES (ADAPTIVE CARDS)                                      */
/* -------------------------------------------------------------------------- */

/* Default State (Premium Dark / Feature Card Match) */
.light-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.light-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(212, 175, 55, 0.1);
    transform: translateY(-8px);
}

.light-card::before {
    /* Reuse watermark logic if desired, or keep simple */
    display: none;
}

.light-card .card-border-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.4) 0%, transparent 180px);
    margin: -1px;
    border-radius: inherit;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.light-card:hover .card-border-glow {
    opacity: 1;
}

.light-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
    /* Default Dark Title */
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.light-card-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #86868b;
    /* Muted for dark */
    margin: 0;
}

.light-icon-box {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #be9d30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Light Theme Overrides (When inside .light-theme-section) */

.light-theme-section .light-card {
    background-color: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.light-theme-section .light-card:hover {
    background-color: #ffffff !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(212, 175, 55, 0.2);
}

.light-theme-section .light-card .card-border-glow {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.6) 0%, transparent 160px);
}

.light-theme-section .light-card-title {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #1d1d1f;
}

.light-theme-section .light-card-desc {
    color: #86868b !important;
}

.light-theme-section .light-icon-box {
    background: rgba(212, 175, 55, 0.1);
    color: #be9d30;
    border: 1px solid rgba(190, 157, 48, 0.2);
}

.light-theme-section .light-card:hover .light-icon-box {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(212, 175, 55, 0.2);
}

/* Static Card Variant Overrides */
.light-card.no-hover-effect {
    transform: none !important;
    box-shadow: none !important;
    cursor: default;
}

.light-theme-section .light-card.no-hover-effect {
    background-color: #f5f5f7 !important;
}

/* Button & Pricing Overrides */
.light-theme-section .btn-standard-ghost {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1d1d1f;
}

.light-theme-section .btn-standard-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme-section footer {
    background-color: #ffffff !important;
    border-top: 1px solid #f5f5f7 !important;
}

.light-theme-section footer p {
    color: #1d1d1f !important;
}

.light-theme-section footer #year {
    color: #86868b !important;
}

/* Pricing Overrides for Light Theme */
.light-theme-section .pricing-card {
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.light-theme-section .pricing-card:hover {
    background: #ffffff !important;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04) !important;
}

.light-theme-section .pricing-card .card-border-glow {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(212, 175, 55, 0.6) 0%,
            transparent 160px);
}

.light-theme-section .pricing-card:hover .card-border-glow {
    opacity: 1;
}

.light-theme-section .pricing-card.featured {
    background: #ffffff !important;
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.light-theme-section .pricing-card.featured:hover {
    background: #ffffff !important;
}

.light-theme-section .price {
    color: #1d1d1f;
}

.light-theme-section .btn-standard-ghost {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1d1d1f;
}

footer {
    background-color: #000 !important;
    /* Default to dark */
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    /* Default to dark */
}

footer p {
    color: #fff !important;
    /* Default to dark */
}

footer #year {
    color: #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN SYSTEM (MOBILE-FIRST PRINCIPLES)                          */
/* -------------------------------------------------------------------------- */

/* 1. Large Screens (> 1200px) */
@media (max-width: 1400px) {
    .portal-grid {
        gap: 4rem;
        padding: 0 4rem;
    }
}

/* 2. Tablet & Smaller Desktops (< 1200px) */
@media (max-width: 1199px) {
    .portal-grid {
        padding: 0 2rem;
        gap: 3rem;
    }

    .portal-stage {
        width: 500px;
        height: 500px;
    }
}

/* 3. Small Tablets & Large Phones (< 992px) */
@media (max-width: 991px) {

    /* Portal Transition to Vertical Stack */
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .portal-right-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .portal-text-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .portal-stage {
        width: 450px;
        height: 450px;
    }

    /* Adjust narrative sphere container */
    #narrative-sphere-container {
        height: 400px !important;
    }
}

/* 4. Mobile Devices (< 768px) */
@media (max-width: 767px) {
    .div-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Navigation simplification */
    header .div-container {
        justify-content: center;
        gap: 1rem;
    }

    header nav {
        gap: 0.5rem;
    }

    header .btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem !important;
    }

    /* Hero Section */
    .hero {
        padding-top: 8rem;
        background-size: auto 12rem;
        background-position: right 20%;
    }

    /* Portal Mobile Experience */
    .portal-section-outer {
        height: 450vh;
        /* More scroll space for vertical storytelling */
    }

    .portal-sticky-container {
        justify-content: center;
    }

    .portal-stage {
        width: 340px;
        height: 340px;
        margin-bottom: 1rem;
    }

    .portal-peao-wrapper {
        height: 70px;
    }

    .portal-text-wrapper {
        position: relative;
        padding-top: 4.5rem;
        /* Space for the absolute button */
    }

    #portal-unlock-container {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        margin-bottom: 0 !important;
        z-index: 10;
        display: flex;
        justify-content: center;
    }

    #btn-unlock-portal {
        width: 100%;
        max-width: 320px;
    }

    /* Logo scaling in portal */
    .portal-text-wrapper img {
        width: 120px !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Standardized Card Spacing & Padding (Global Pente Fino) */
    .feature-card,
    .pricing-card,
    .light-card,
    .manifesto-card,
    .pain-impact-card {
        padding: 1.5rem !important;
    }

    /* FAQ / Pricing */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        margin-top: 2rem;
        gap: 1rem;
    }

    /* Additional Refinements */
    .cortex-title {
        font-size: 3.5rem !important;
    }

    /* Reduced Spacing between global sections for Mobile */
    .narrative-screen-time {
        margin-top: 4rem !important;
    }

    .narrative-sphere {
        margin-top: 4rem !important;
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    .timeline-section {
        padding-top: 4rem !important;
    }

    /* Narrative Section Refinements */
    .narrative-screen-time .light-card {
        height: 300px !important;
        min-height: 300px !important;
    }

    .narrative-sphere .advanced-narrative-canvas,
    .narrative-sphere .narrative-right-col {
        height: 320px !important;
        min-height: 320px !important;
    }

    .narrative-screen-time .narrative-right-col,
    .narrative-sphere .narrative-left-col {
        text-align: center !important;
        margin-top: 2rem;
    }

    .narrative-screen-time .narrative-right-col h4,
    .narrative-sphere .narrative-left-col h4,
    .narrative-sphere .narrative-left-col p {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    /* Footer Harmony */
    footer .div-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* 5. Extra Small Devices (< 480px) */
@media (max-width: 479px) {
    .portal-stage {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .cortex-title {
        font-size: 1.5rem !important;
    }

    /* Adjust orbit radius for tiny screens via CSS variable if possible, 
       otherwise JS handles it but we can scale the whole stage */
}

/* Admission Form Styles */
.form-container-premium {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Spotlight SVG texture effect for form container */
.form-container-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    /* Radial gradient following mouse position */
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 215, 0, 0.12),
            rgba(255, 215, 0, 0.04) 25%,
            transparent 60%);

    /* SVG Pattern Mask Texture */
    -webkit-mask-image: url('../images/to_convert/4.svg');
    -webkit-mask-repeat: repeat;
    -webkit-mask-size: 40px auto;
    mask-image: url('../images/to_convert/4.svg');
    mask-repeat: repeat;
    mask-size: 40px auto;

    opacity: 0.9;
    transition: opacity 0.4s ease;
}

/* Border glow effect for form container */
.form-container-premium .card-border-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(212, 175, 55, 0.4) 0%,
            transparent 200px);
    margin: -1px;
    border-radius: inherit;
    padding: 1px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.form-container-premium:hover .card-border-glow {
    opacity: 1;
}

/* Ensure form content stays above the spotlight effect */
.form-container-premium .strategic-form-oqat {
    position: relative;
    z-index: 2;
}

.strategic-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-container-premium {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #86868b;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-left: 0.25rem;
}

.form-field input,
.form-field select {
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.875rem 1.125rem;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    letter-spacing: -0.01em;
}

.form-field input::placeholder {
    color: #555;
    font-weight: 400;
}

.form-field input:focus,
.form-field select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: hsla(var(--primary), 0.4);
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.08);
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper::after {
    content: '↓';
    position: absolute;
    right: 1.125rem;
    color: #86868b;
    pointer-events: none;
    font-size: 0.75rem;
    font-weight: 600;
}

.form-field select {
    appearance: none;
    cursor: pointer;
    width: 100%;
}

/* Select dropdown menu styling */
.form-field select option {
    font-family: var(--font-sans);
    background: #0a0a0a;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.form-field select option:hover,
.form-field select option:focus,
.form-field select option:checked {
    background: rgba(190, 157, 48, 0.15);
    color: #fff;
}

.form-field select option:disabled {
    color: #555;
    background: #050505;
}