/*
=========================================
PROYOJANA ELITE STRATEGY & ADVISORY
Custom Premium Stylesheet
=========================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables & Design System Tokens */
:root {
    /* Colors */
    --color-bg-deep: hsl(220, 24%, 6%);
    --color-bg-card: hsla(220, 20%, 11%, 0.7);
    --color-bg-card-hover: hsla(220, 20%, 15%, 0.85);
    --color-border: hsla(220, 15%, 22%, 0.55);
    --color-border-glow: hsla(38, 55%, 58%, 0.3);
    
    --color-gold-start: hsl(38, 60%, 55%);
    --color-gold-end: hsl(24, 70%, 48%);
    --color-gold-glow: hsla(38, 60%, 55%, 0.15);
    --color-cyan-start: hsl(198, 70%, 55%);
    --color-cyan-end: hsl(180, 60%, 45%);
    --color-cyan-glow: hsla(198, 70%, 55%, 0.15);
    
    --color-text-primary: hsl(210, 20%, 98%);
    --color-text-secondary: hsl(210, 12%, 78%);
    --color-text-muted: hsl(210, 8%, 60%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px -5px var(--color-gold-glow);
}

/* ==========================================
   LIGHT MODE VARIABLES & OVERRIDES
   ========================================== */
[data-theme="light"] {
    --color-bg-deep: hsl(210, 20%, 97%);
    --color-bg-card: hsla(210, 15%, 91%, 0.65);
    --color-bg-card-hover: hsla(210, 15%, 86%, 0.85);
    --color-border: hsla(210, 10%, 82%, 0.6);
    --color-border-glow: hsla(38, 55%, 48%, 0.3);
    
    --color-gold-start: hsl(38, 55%, 46%);
    --color-gold-end: hsl(24, 60%, 40%);
    --color-gold-glow: hsla(38, 55%, 46%, 0.08);
    --color-cyan-start: hsl(198, 65%, 46%);
    --color-cyan-end: hsl(180, 55%, 36%);
    --color-cyan-glow: hsla(198, 65%, 46%, 0.08);
    
    --color-text-primary: hsl(220, 24%, 10%);
    --color-text-secondary: hsl(220, 12%, 32%);
    --color-text-muted: hsl(220, 8%, 52%);
    
    --shadow-premium: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 25px -5px var(--color-gold-glow);
}

/* Light Theme Element Customizations */
[data-theme="light"] header {
    background: hsla(210, 20%, 97%, 0.75);
}
[data-theme="light"] header.scrolled {
    background: hsla(210, 20%, 95%, 0.85);
}
[data-theme="light"] .bg-glow-1 {
    background: radial-gradient(circle, hsla(38, 55%, 48%, 0.08) 0%, transparent 70%);
}
[data-theme="light"] .bg-glow-2 {
    background: radial-gradient(circle, hsla(198, 70%, 48%, 0.07) 0%, transparent 70%);
}
[data-theme="light"] .bg-glow-3 {
    background: radial-gradient(circle, hsla(38, 55%, 48%, 0.04) 0%, transparent 60%);
}
[data-theme="light"] .matrix-item {
    background: hsla(210, 15%, 90%, 0.4);
}
[data-theme="light"] .console-wrapper {
    background: hsl(210, 15%, 92%);
}
[data-theme="light"] .console-header {
    background: hsl(210, 15%, 88%);
}
[data-theme="light"] .plat-pill,
[data-theme="light"] .shoperative-card,
[data-theme="light"] .shoperative-demand-bar,
[data-theme="light"] .pm-metric-box {
    background: hsla(210, 15%, 95%, 0.8);
}
[data-theme="light"] .pm-map-sim {
    background-color: #e5e9f0;
}
[data-theme="light"] .toggle-opt {
    background: hsla(210, 15%, 92%, 0.4);
}
[data-theme="light"] .form-control {
    background: hsla(210, 15%, 95%, 0.65);
}
[data-theme="light"] .form-control:focus {
    background: hsla(210, 15%, 98%, 0.85);
}
[data-theme="light"] footer {
    background: hsl(210, 15%, 92%);
}
[data-theme="light"] .book-front {
    background: linear-gradient(145deg, #f0e6d2 0%, #dfd3bd 100%);
    border-color: rgba(176, 125, 52, 0.35);
}
[data-theme="light"] .book-title {
    color: hsl(220, 24%, 10%);
}
[data-theme="light"] .book-subtitle {
    color: hsl(220, 12%, 32%);
}
[data-theme="light"] .book-side {
    background: #dfd3bd;
    border-color: rgba(176, 125, 52, 0.2);
}
[data-theme="light"] .matrix-icon-wrapper {
    background: hsla(210, 15%, 92%, 1);
}
[data-theme="light"] .channel-icon {
    background: hsla(210, 15%, 92%, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-start);
}

/* Interactive Glowing Background Blobs */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(38, 55%, 58%, 0.04) 0%, transparent 70%);
    filter: blur(80px);
}

.bg-glow-2 {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(198, 70%, 55%, 0.035) 0%, transparent 70%);
    filter: blur(100px);
}

.bg-glow-3 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(38, 55%, 58%, 0.015) 0%, transparent 60%);
    filter: blur(120px);
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-secondary);
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold-start) 0%, var(--color-gold-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, var(--color-cyan-start) 0%, var(--color-cyan-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold-start);
    margin-bottom: 1rem;
    display: inline-block;
    border-left: 2px solid var(--color-gold-start);
    padding-left: 0.75rem;
}

/* Header & Glassmorphic Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    background: hsla(220, 24%, 6%, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.5rem 0;
    background: hsla(220, 24%, 4%, 0.85);
    border-bottom-color: hsla(220, 15%, 30%, 0.4);
    box-shadow: var(--shadow-premium);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    padding: 0.85rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.logo-subtext {
    font-weight: 300;
    color: var(--color-gold-start);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.35rem 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold-start), var(--color-gold-end));
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, rgba(38, 60, 55, 0.2) 0%, rgba(24, 70, 48, 0.1) 100%);
    border: 1px solid var(--color-gold-start);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    color: var(--color-gold-start) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--color-gold-start) 0%, var(--color-gold-end) 100%) !important;
    color: var(--color-bg-deep) !important;
    box-shadow: 0 0 15px var(--color-gold-glow);
}

/* Navigation Right Grouping */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Premium Theme Toggle Button */
.theme-toggle {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gold-start);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-gold-start);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

.theme-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Toggle visibility of sun/moon icons depending on current theme */
.theme-toggle .sun-icon {
    display: block;
}
.theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}
[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

/* Mobile Nav Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Common Section Layouts */
section {
    padding: 7.5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    max-width: 800px;
    margin-bottom: 4.5rem;
}

.section-title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    font-weight: 350;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2.25rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-start) 0%, var(--color-gold-end) 100%);
    color: var(--color-bg-deep);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(212, 163, 89, 0.4), var(--shadow-glow);
}

.btn-secondary {
    background: hsla(220, 20%, 11%, 0.8);
    color: #ffffff; /*var(--color-text-primary);*/
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-gold-start);
	color: #000000; 
    transform: translateY(-2px);
}

/* HERO SECTION */
#home {
    padding-top: 13rem;
    min-height: 95vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-headline {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subheadline {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--color-gold-start);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-intro {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.hero-details {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-left: 1px solid var(--color-border);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Hero Canvas Visual Integration */
.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas-container {
    position: absolute;
    width: 110%;
    height: 110%;
    z-index: 1;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Floating Glassmorphic Metric badges */
.hero-badge {
    position: absolute;
    z-index: 3;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    animation: float-anim 6s ease-in-out infinite alternate;
}

.hero-badge:hover {
    border-color: var(--color-gold-start);
    transform: scale(1.05);
}

.hero-badge-1 {
    bottom: 20%;
    left: -5%;
    animation-delay: 0s;
}

.hero-badge-2 {
    top: 15%;
    right: 2%;
    animation-delay: 2s;
}

.badge-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-start);
}

.badge-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes float-anim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* SECTION: CORE STRATEGIC POSITIONING */
#positioning {
    background: radial-gradient(50% 50% at 50% 50%, hsla(220, 20%, 10%, 0.4) 0%, transparent 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.positioning-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* Decision Centric Flow Diagram Graphic */
.decision-matrix-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.matrix-flow-line {
    position: absolute;
    left: 45px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-gold-start), var(--color-cyan-start));
    z-index: 1;
}

.matrix-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    border-radius: 6px;
    background: hsla(220, 20%, 8%, 0.4);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.matrix-item:hover {
    border-color: var(--color-border-glow);
    background: var(--color-bg-card-hover);
    transform: translateX(8px);
}

.matrix-icon-wrapper {
    width: 44px;
    height: 44px;
    background: hsla(220, 20%, 12%, 1);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-start);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.matrix-item:hover .matrix-icon-wrapper {
    color: var(--color-bg-deep);
    background: linear-gradient(135deg, var(--color-gold-start) 0%, var(--color-gold-end) 100%);
    border-color: transparent;
    box-shadow: 0 0 15px var(--color-gold-glow);
}

.matrix-item-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
}

.matrix-item:hover h4 {
    color: var(--color-gold-start);
}

.matrix-item-content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Center Highlight Node */
.decision-node-central {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.central-capsule {
    background: linear-gradient(135deg, rgba(212, 163, 89, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1.5px dashed var(--color-gold-start);
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold-start);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(212, 163, 89, 0.1);
    animation: pulse-border 3s ease-in-out infinite alternate;
}

@keyframes pulse-border {
    0% { border-color: rgba(212, 163, 89, 0.4); box-shadow: 0 0 10px rgba(212, 163, 89, 0.05); }
    100% { border-color: rgba(212, 163, 89, 1); box-shadow: 0 0 25px rgba(212, 163, 89, 0.2); }
}

/* SECTION: STRATEGIC CAPABILITY PILLARS */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 3rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold-start), var(--color-gold-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-glow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold-start);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    color: var(--color-gold-start);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

.pillar-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.focus-header {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.focus-list li {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.focus-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    background: var(--color-gold-start);
    border-radius: 50%;
}

/* SECTION: PROPRIETARY PLATFORMS */
#platforms {
    background: radial-gradient(60% 50% at 50% 50%, hsla(220, 20%, 9%, 0.5) 0%, transparent 100%);
    border-top: 1px solid var(--color-border);
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-btn:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border-glow);
}

.tab-btn.active {
    color: var(--color-text-primary);
    background: linear-gradient(135deg, rgba(38, 60, 55, 0.25) 0%, rgba(24, 70, 48, 0.15) 100%);
    border-color: var(--color-gold-start);
    box-shadow: 0 0 20px var(--color-gold-glow);
}

.tab-btn .tab-dot {
    width: 8px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.tab-btn.active .tab-dot {
    background: var(--color-gold-start);
    box-shadow: 0 0 10px var(--color-gold-start);
}

/* Platform Panel Wrapper */
.platform-panels {
    position: relative;
    min-height: 550px;
}

.platform-panel {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    transform: translateY(15px);
}

.platform-panel.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

.panel-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.panel-headline {
    font-size: 1.15rem;
    color: var(--color-gold-start);
    margin-bottom: 1.75rem;
    font-weight: 450;
}

.panel-desc {
    font-size: 0.975rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.platform-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.plat-pill {
    background: hsla(220, 20%, 8%, 0.4);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.panel-link-wrapper {
    margin-top: 2rem;
}

.link-ecosystem {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cyan-start);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.link-ecosystem:hover {
    color: var(--color-text-primary);
    transform: translateX(3px);
}

/* Console Simulation Visual Layout */
.console-wrapper {
    background: hsl(220, 24%, 4%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
}

.console-header {
    background: hsl(220, 20%, 7%);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-dots {
    display: flex;
    gap: 0.35rem;
}

.console-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
}

.console-dots span:nth-child(1) { background: #ef4444; }
.console-dots span:nth-child(2) { background: #fbbf24; }
.console-dots span:nth-child(3) { background: #10b981; }

.console-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.console-body {
    padding: 2rem;
    min-height: 330px;
    font-family: 'Courier New', Courier, monospace;
}

/* Shoperative Simulated UI Components */
.shoperative-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-family: var(--font-body);
}

.shoperative-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem;
}

.shop-stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-start);
}

.shop-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.shoperative-demand-bar {
    grid-column: span 2;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    border-radius: 6px;
}

.demand-progress {
    width: 100%;
    height: 8px;
    background: hsl(220, 20%, 7%);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0 0.25rem 0;
}

.demand-fill {
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, var(--color-gold-start), var(--color-cyan-start));
    border-radius: 4px;
    animation: animate-fill 2s ease-in-out infinite alternate;
}

@keyframes animate-fill {
    0% { width: 72%; }
    100% { width: 81%; }
}

/* Pathmaker Simulated UI Components */
.pathmaker-ui {
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pm-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.pm-metric-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.75rem;
    text-align: center;
}

.pm-metric-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-cyan-start);
}

.pm-map-sim {
    height: 160px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='black'/%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3Ccircle cx='40' cy='30' r='3' fill='%23d4a359'/%3E%3Ccircle cx='100' cy='80' r='4' fill='%2338bdf8'/%3E%3Ccircle cx='200' cy='60' r='3.5' fill='%23d4a359'/%3E%3Cpath d='M 40 30 L 100 80 L 200 60' fill='none' stroke='rgba(56,189,248,0.3)' stroke-width='1.5' stroke-dasharray='4'/%3E%3C/svg%3E");
    border: 1px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.pm-telemetry-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--color-cyan-start);
    color: var(--color-cyan-start);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

/* SECTION: THOUGHT LEADERSHIP */
.thought-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5.5rem;
    align-items: center;
}

/* Beautiful Interactive 3D Book Graphic */
.book-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.book-card-3d {
    width: 280px;
    height: 410px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.2s ease;
    box-shadow: 25px 25px 50px rgba(0, 0, 0, 0.85);
}

.book-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    backface-visibility: hidden;
}

.book-front {
    background: linear-gradient(145deg, #111a2e 0%, #060912 100%);
    border: 1.5px solid rgba(212, 163, 89, 0.35);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

/* Book front details */
.book-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}

.book-tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold-start);
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text-primary);
    margin-top: 1.5rem;
}

.book-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
    font-weight: 300;
}

.book-publisher {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: auto;
}

.book-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold-start);
    margin-bottom: 0.5rem;
}

.book-side {
    position: absolute;
    left: -20px;
    width: 20px;
    height: 100%;
    background: #080d16;
    transform: rotateY(-90deg);
    transform-origin: right;
    border: 1px solid rgba(212, 163, 89, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-spine-text {
    transform: rotate(-90deg);
    white-space: nowrap;
    color: var(--color-text-muted);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    width: 100%;
    text-align: center;
}

/* Timeline component */
.timeline {
    margin-top: 2.5rem;
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--color-border);
}

.timeline-item {
    margin-bottom: 2.25rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 0.25rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-gold-start);
    box-shadow: 0 0 10px var(--color-gold-start);
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* SECTION: CONTACT / ENGAGEMENT INQUIRY */
#contact {
    border-top: 1px solid var(--color-border);
    background: radial-gradient(40% 40% at 50% 100%, hsla(38, 55%, 58%, 0.02) 0%, transparent 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-channels {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-start);
}

.channel-details h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.channel-details p {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Boardroom Form elements */
.form-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
}

.engagement-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.toggle-opt {
    border: 1px solid var(--color-border);
    background: hsla(220, 20%, 8%, 0.4);
    padding: 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.toggle-opt.active {
    border-color: var(--color-gold-start);
    background: linear-gradient(135deg, rgba(38, 60, 55, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
}

.toggle-opt h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.toggle-opt.active h4 {
    color: var(--color-gold-start);
}

.toggle-opt p {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 0.65rem;
}

.form-control {
    width: 100%;
    background: hsla(220, 20%, 8%, 0.65);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold-start);
    background: hsla(220, 20%, 12%, 0.85);
    box-shadow: 0 0 10px rgba(212, 163, 89, 0.08);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4a359' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

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

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Success Modal & Toast UI */
.form-success-message {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    animation: scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scale-up {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* FOOTER SECTION */
footer {
    border-top: 1px solid var(--color-border);
    background: hsl(220, 24%, 3%);
    padding: 5rem 2rem 2.5rem 2rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h4 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 360px;
    margin-bottom: 1.5rem;
}

.footer-col h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold-start);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text-primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-links a:hover {
    color: var(--color-text-primary);
}

/* RESPONSIVE STYLES */

@media (max-width: 1250px) {
    .nav-links {
        gap: 1.25rem;
    }
    .nav-container {
        padding: 1.25rem 1.5rem;
    }
    .nav-right-group {
        gap: 1rem;
    }
}

@media (max-width: 1100px) {
    #home {
        grid-template-columns: 1fr;
        padding-top: 10rem;
        gap: 5rem;
        text-align: center;
    }
    
    .hero-details {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: 1.5rem;
        max-width: 600px;
        margin: 0 auto 3rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .positioning-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-panel {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        height: auto;
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
    }
    
    .platform-panel.active {
        display: grid;
    }
    
    .platform-panels {
        min-height: auto;
    }
    
    .thought-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .book-showcase {
        order: -1;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        position: static;
    }
}

@media (max-width: 1024px) {
    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-deep);
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem 2rem;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: var(--shadow-premium);
        z-index: 99;
    }
    
    #nav-menu.active {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    #nav-menu.active .nav-links {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        max-width: 100%;
    }
}
