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

:root {
    --bg-dark: #082a70;
    --bg-surface: #0b358a;
    --bg-surface-elevated: #1040a3;
    --accent-primary: #ff7e29;
    --accent-secondary: #8a2be2;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 4rem; background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 8rem 0; position: relative; }

/* Orbit Links SVG */
.orbit-link-svg text {
    fill: rgba(255,255,255,0.7);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}
@keyframes textGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
    50%       { filter: drop-shadow(0 0 10px rgba(255,255,255,0.9)); }
}
.orbit-link-svg:hover text {
    fill: #ffffff;
    animation: textGlowPulse 1.5s ease-in-out infinite;
}

@keyframes spinOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.spin-active {
    animation: spinOrbit 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 9999px; font-weight: 600; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white; box-shadow: 0 4px 14px 0 rgba(255, 126, 41, 0.39);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 126, 41, 0.5); }
.btn-secondary {
    background: var(--glass-bg); color: white; border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}
.btn-outline:hover {
    background: white;
    color: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}
.btn-secondary-thick {
    background: var(--glass-bg);
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary-thick:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* Split-Screen Hero */
.hero-container {
    display: flex; width: 100%; height: 100vh; position: relative; overflow: hidden; padding: 0;
}

.split-side {
    flex: 1; height: 100%; padding: 5%; display: flex; align-items: center;
    color: white; position: relative; z-index: 1;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

/* Left Side: Family */
.steady-side {
    background-color: var(--bg-surface);
    justify-content: flex-start;
}

/* Right Side: Enterprise */
.creative-side {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #ff8c42 40%, var(--accent-secondary) 100%);
    justify-content: flex-end; text-align: right;
}

/* Hover Interaction */
.hero-container:has(.steady-side:hover) .steady-side { flex: 1.5; }
.hero-container:has(.steady-side:hover) .creative-side { flex: 1; filter: grayscale(60%) brightness(0.6); }
.hero-container:has(.creative-side:hover) .creative-side { flex: 1.5; }
.hero-container:has(.creative-side:hover) .steady-side { flex: 1; filter: grayscale(60%) brightness(0.6); }

/* Content wrappers */
.content-wrapper { z-index: 5; max-width: 550px; position: relative; }
.left-content { padding-right: 80px; }
.right-content { padding-left: 80px; align-items: flex-end; display: flex; flex-direction: column; }

/* Fixed Header & Center Interface */
.center-interface {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 100;
    pointer-events: none; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-dividers {
    position: absolute; top: 0; left: 50%; height: 100vh; width: 0; z-index: 10;
    display: flex; justify-content: center; align-items: center; overflow: visible;
}

/* Sticky Nav State */
body.is-scrolled .center-interface {
    height: 80px;
    background: rgba(8, 42, 112, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    pointer-events: auto;
}
body.is-scrolled .logo-circle {
    transform: translate(-50%, -50%) scale(0.35);
    animation-play-state: paused;
    box-shadow: 0 0 0 rgba(0,0,0,0) !important;
}
body.is-scrolled .orbit-text {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5) !important;
}

.sticky-nav-links {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; gap: 3rem; opacity: 0; pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.left-links { right: 55%; transform: translate(-20px, -50%); }
.right-links { left: 55%; transform: translate(20px, -50%); }

.sticky-nav-links a {
    color: white; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    opacity: 0.8; transition: opacity 0.3s;
}
.sticky-nav-links a:hover { opacity: 1; }

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex; align-items: center; gap: 0.35rem; cursor: pointer;
}
.nav-dropdown-trigger .chevron-down {
    width: 10px; height: 10px; transition: transform 0.3s ease;
}
.nav-dropdown:hover .chevron-down { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
    background: rgba(8, 42, 112, 0.95); backdrop-filter: blur(12px);
    border: 1px solid var(--border-color); border-radius: 12px;
    padding: 0.5rem 0; min-width: 140px;
    opacity: 0; pointer-events: none; transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; pointer-events: auto;
}
.nav-dropdown-menu a {
    display: block; padding: 0.5rem 1.25rem; font-size: 0.85rem !important;
    white-space: nowrap; transition: background 0.2s;
}
.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.08);
}

body.is-scrolled .sticky-nav-links { opacity: 1; pointer-events: auto; }
body.is-scrolled .left-links { transform: translate(0, -50%); }
body.is-scrolled .right-links { transform: translate(0, -50%); }

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 0 0 rgba(255,255,255,0.25); }
    50%       { box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 0 16px rgba(255,255,255,0); }
}

.logo-circle {
    width: 180px; height: 180px; min-width: 180px; min-height: 180px;
    background-color: #000000; border-radius: 50%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 12;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); transition: transform 0.3s ease;
    animation: logoPulse 2.8s ease-in-out infinite; text-align: center;
}
.logo-circle:hover { transform: translate(-50%, -50%) scale(1.05); animation-play-state: paused; }

.logo-circle h2 { margin: 0; font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; line-height: 1.1; color: white; }
.logo-circle h2 span { color: var(--accent-primary); }
.logo-circle p { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; opacity: 0.7; color: white; margin-bottom: 0; }

/* Shared Divider Styles */
.divider-svg { position: absolute; z-index: 11; pointer-events: none; overflow: visible; }
.desktop-divider { width: 600px; height: 100vh; top: 0; left: 50%; transform: translateX(-50%); display: block; }
.mobile-divider { width: 120%; height: 250px; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; z-index: 50; opacity: 0.8; transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.chevron { opacity: 0; animation: chevronCascade 4s infinite; }
.chevron-1 { animation-delay: 0s; }
.chevron-2 { animation-delay: 0.4s; margin-top: -50px; }
.chevron-3 { animation-delay: 0.8s; margin-top: -50px; }

@keyframes chevronCascade {
    0% { opacity: 0; }
    12.5% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Story Section */
.story-section { background-color: var(--bg-surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-content p { font-size: 1.1rem; }
.highlight-box {
    background: rgba(255, 126, 41, 0.1); border: 1px solid rgba(255, 126, 41, 0.3);
    padding: 2rem; border-radius: 16px; position: relative;
}
.highlight-box h3 { color: var(--accent-primary); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--bg-surface); border: 1px solid var(--border-color); padding: 0;
    border-radius: 20px; transition: all 0.3s ease; position: relative; overflow: hidden;
    cursor: pointer; display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); background: var(--bg-surface-elevated); }
.feature-card-thumb {
    width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
    border-bottom: 1px solid var(--border-color); position: relative;
    background: rgba(0,0,0,0.2);
}
.feature-card-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(8, 42, 112, 0.45);
    transition: background 0.4s ease;
    z-index: 1;
}
.feature-card:hover .feature-card-thumb::after {
    background: rgba(8, 42, 112, 0.15);
}
.feature-card-thumb img {
    width: 100%; height: 100%; object-fit: cover; object-position: top left;
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0.85;
}
.feature-card:hover .feature-card-thumb img { transform: scale(1.05); opacity: 1; }
.feature-card-body { padding: 1.75rem; }
.feature-icon {
    width: 42px; height: 42px; background: rgba(255, 126, 41, 0.15); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--accent-primary);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; }

/* Pricing/Editions */
.pricing-section { text-align: center; padding-top: 6rem; padding-bottom: 12rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; max-width: 900px; margin: 3rem auto 0; }
.pricing-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    padding: 3rem; border-radius: 24px; text-align: left; position: relative;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.pricing-card.enterprise { background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(138, 43, 226, 0.15) 100%); border-color: rgba(138, 43, 226, 0.3); }
.badge { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(255, 126, 41, 0.2); color: #ffbc94; border-radius: 999px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; }
.pricing-card h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.pricing-card p { font-size: 1rem; margin-bottom: 2rem; }
.price { font-size: 3rem; font-weight: 800; color: white; margin-bottom: 2rem; }
.price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.pricing-features { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.pricing-features li { padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.75rem; }
.pricing-features li::before { content: '✓'; color: var(--accent-primary); font-weight: bold; }
.pricing-card .btn { width: 100%; margin-top: auto; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 42, 112, 0.9); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    padding: 3rem; border-radius: 24px; max-width: 500px; width: 90%; text-align: center;
    transform: translateY(20px); transition: transform 0.3s ease; position: relative;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
    color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.close-modal:hover { color: white; }
.modal-icon {
    font-size: 3rem; margin-bottom: 1.5rem; display: inline-block;
}

/* Footer */
footer { padding: 4rem 0; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-secondary); }

/* =========================================
   Feature Lightbox Modal
   ========================================= */
.feature-lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 42, 112, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.feature-lightbox-overlay.active { opacity: 1; pointer-events: auto; }

.lightbox-layout {
    display: flex; gap: 4rem; max-width: 1200px; width: 90%; height: 60vh; min-height: 400px;
    opacity: 0; transition: opacity 0.3s ease; align-items: stretch;
}
.lightbox-layout.visible { opacity: 1; }

.lightbox-info-card {
    flex: 1; background: var(--bg-surface); border: 1px solid var(--border-color);
    padding: 3rem; border-radius: 20px; display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); max-width: 400px; z-index: 2;
}
.lightbox-info-card h3 { font-size: 2rem; color: var(--accent-primary); margin-bottom: 1rem; }
.lightbox-info-card p { font-size: 1.1rem; color: var(--text-primary); line-height: 1.6; }

.lightbox-image-space {
    flex: 2; border-radius: 20px;
}

.expanding-image-layer {
    position: fixed; z-index: 2010; opacity: 0; pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}
.expanding-image-layer img {
    width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s ease;
}

/* Lightbox Chevrons */
.lb-chevron {
    position: absolute; display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 2020; padding: 20px;
}
.lb-chevron:hover { transform: scale(1.1); }
.lb-chevron.lb-right { right: 20px; top: 50%; transform: translateY(-50%); flex-direction: row; gap: 15px; }
.lb-chevron:hover.lb-right { transform: translateY(-50%) scale(1.1); }

.chevron-label {
    font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.vertical-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.lb-chevron:hover .chevron-label { color: white; }

.lb-close-btn {
    position: absolute; bottom: 30px; right: 30px; z-index: 2030;
}

/* Responsive */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .story-grid { grid-template-columns: 1fr; gap: 2rem; }

    .orbit-text { width: 220px; height: 220px; }
    .orbit-link-svg text { font-size: 11px; }

    .hero-container { flex-direction: column; height: auto; min-height: 100vh; padding-bottom: 0 !important; }
    .split-side { width: 100%; padding: 140px 30px; justify-content: center; text-align: center; }
    .content-wrapper, .left-content, .right-content { padding: 0; align-items: center; text-align: center; max-width: 100%; margin: 0; }
    .center-interface { position: relative; top: auto; left: auto; transform: none; width: 100%; height: 0; margin: 0; z-index: 50; pointer-events: none; }
    .logo-circle { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); pointer-events: auto; width: 150px; height: 150px; min-width: 150px; min-height: 150px; }
    .logo-circle:hover { transform: translate(-50%, -50%) scale(1.05); }
    .desktop-divider { display: none; }
    .mobile-divider { display: block; }
    
    .hero-container:has(.steady-side:hover) .steady-side { flex: 1; }
    .hero-container:has(.steady-side:hover) .creative-side { filter: none; }
    .hero-container:has(.creative-side:hover) .creative-side { flex: 1; }
    .hero-container:has(.creative-side:hover) .steady-side { filter: none; }

    /* Lightbox Mobile */
    .lightbox-layout { flex-direction: column-reverse; height: auto; padding-top: 40px; padding-bottom: 100px; overflow-y: auto; max-height: 100vh; gap: 2rem; }
    .lightbox-info-card { padding: 2rem; }
    .lightbox-image-space { height: 30vh; min-height: 250px; flex: none; }
    .lb-chevron svg { width: 30px; height: 15px; }
    .lb-close-btn { bottom: 20px; right: 20px; padding: 12px 25px; font-size: 0.9rem; }
}

/* Glass Table & Status Badges */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.glass-table th, .glass-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.glass-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.glass-table tr:last-child td {
    border-bottom: none;
}
.glass-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-implemented {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.status-testing {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.status-upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
.status-next-patch {
    background: rgba(138, 43, 226, 0.2);
    color: #d8b4fe;
}
