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

/* --- DESIGN TOKENS & SYSTEM --- */
:root {
    /* Color Palette */
    --clr-primary-900: #1a3240;
    --clr-primary-800: #234354; /* Main Blue */
    --clr-primary-700: #2d566c;
    
    --clr-accent-500: #f59b39; /* Main Orange */
    --clr-accent-400: #f7ad5c;
    --clr-accent-300: #f9c080;
    
    --clr-surface-100: #ffffff;
    --clr-surface-200: #f8fafc;
    --clr-surface-300: #f1f5f9;
    
    --clr-text-900: #0f172a;
    --clr-text-700: #334155;
    --clr-text-500: #64748b;
    --clr-text-inverse: #ffffff;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(245, 155, 57, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text-700);
    background-color: var(--clr-surface-200);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--clr-text-900);
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

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

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

/* --- COMPONENTS --- */

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-500);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.lang-btn.active {
    background: var(--clr-primary);
    color: var(--bg-dark);
}

.lang-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Back Button (Floating) */
.btn-back-floating {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 50;
    background: rgba(35, 67, 84, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--clr-text-inverse);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.btn-back-floating:hover {
    background: var(--clr-accent-500);
    color: var(--clr-primary-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--clr-accent-400);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--transition-spring);
}

.btn-primary {
    background-color: var(--clr-accent-500);
    color: var(--clr-primary-900);
    box-shadow: 0 4px 14px 0 rgba(245, 155, 57, 0.39);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 155, 57, 0.6);
    background-color: var(--clr-accent-400);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--clr-text-inverse);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* --- POWERED BY SECTION --- */
.powered-by {
    background-color: var(--clr-surface-100);
    padding: 40px 0;
    border-bottom: 1px solid var(--clr-surface-300);
}

.powered-by p {
    font-size: 0.85rem;
    color: var(--clr-text-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.parent-logo {
    max-height: 70px;
    width: auto;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.parent-logo:hover {
    transform: scale(1.05);
}

/* --- HERO SECTION (Asymmetric) --- */
.hero {
    position: relative;
    background-color: var(--clr-primary-900);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Glowing Orbs in Background */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.hero::before {
    width: 600px;
    height: 600px;
    background: rgba(245, 155, 57, 0.15);
    top: -200px;
    left: -100px;
    animation: pulseOrb 8s alternate infinite;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: rgba(35, 67, 84, 0.8);
    bottom: -150px;
    right: -150px;
}

@keyframes pulseOrb {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.1) translate(-20px, 20px); opacity: 1; }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 10;
    position: relative;
}

.hero-content {
    color: var(--clr-text-inverse);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(245, 155, 57, 0.1);
    border: 1px solid rgba(245, 155, 57, 0.3);
    color: var(--clr-accent-500);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--clr-text-inverse);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--clr-text-500);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual Layout */
.hero-visual {
    position: relative;
    perspective: 1200px;
    animation: floatMockup 6s ease-in-out infinite;
    min-height: 400px; /* Ensure space for absolute front mockup */
}

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

.mockup-wrapper {
    opacity: 0; /* Hidden initially for Anime.js */
}

.back-wrapper {
    position: relative;
    width: 90%;
    margin-left: auto;
    z-index: 1;
}

.front-wrapper {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 85%;
    z-index: 2;
}

.dashboard-mockup {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 10px;
    transition: transform 0.6s var(--transition-smooth), box-shadow 0.6s ease;
}

.mockup-back {
    transform: rotateY(-15deg) rotateX(5deg) translateZ(-50px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    opacity: 0.7;
}

.mockup-front {
    transform: rotateY(-5deg) rotateX(2deg) translateZ(50px);
    box-shadow: -20px 40px 80px rgba(0,0,0,0.5);
}

.hero-visual:hover .mockup-back {
    transform: rotateY(0deg) rotateX(0deg) translateZ(-20px);
    opacity: 1;
}

.hero-visual:hover .mockup-front {
    transform: rotateY(0deg) rotateX(0deg) translateZ(30px);
    box-shadow: -10px 20px 60px rgba(0,0,0,0.7);
}

.dashboard-mockup img {
    border-radius: var(--radius-md);
    width: 100%;
}

/* --- BENTO GRID FEATURES --- */
.features {
    background-color: var(--clr-surface-200);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--clr-text-500);
    font-size: 1.1rem;
}

/* Bento Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 24px;
}

.bento-item {
    background: var(--clr-surface-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-surface-300);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(245, 155, 57, 0.3);
}

/* Specific Bento Placements */
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(2) { grid-column: span 1; grid-row: span 2; background-color: var(--clr-primary-800); color: var(--clr-text-inverse); }
.bento-item:nth-child(2) h3 { color: var(--clr-text-inverse); }
.bento-item:nth-child(2) p { color: #94a3b8; }
.bento-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }

.bento-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(245, 155, 57, 0.1);
    color: var(--clr-accent-500);
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-item p {
    color: var(--clr-text-500);
    font-size: 1rem;
}

/* --- PROTOCOLS (Animated Ticker Style) --- */
.protocols {
    background-color: var(--clr-surface-100);
    border-top: 1px solid var(--clr-surface-300);
    border-bottom: 1px solid var(--clr-surface-300);
    overflow: hidden;
    padding: 60px 0;
}

.protocols-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.protocols-title {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text-900);
}

.protocols-ticker {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.protocol-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--clr-surface-200);
    border: 1px solid var(--clr-surface-300);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-primary-800);
    transition: all 0.3s ease;
}

.protocol-tag i {
    color: var(--clr-accent-500);
}

.protocol-tag:hover {
    background: var(--clr-accent-500);
    color: var(--clr-primary-900);
    border-color: var(--clr-accent-500);
}
.protocol-tag:hover i {
    color: var(--clr-primary-900);
}

/* --- INDUSTRIES (Cinematic Cards) --- */
.industries {
    background-color: var(--clr-surface-200);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.industry-card {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--transition-smooth);
}

.industry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 50, 64, 0.9) 0%, rgba(26, 50, 64, 0) 60%);
    transition: opacity 0.3s ease;
}

.industry-card:hover img {
    transform: scale(1.05);
}

.industry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 10;
    transform: translateY(20px);
    transition: transform 0.4s var(--transition-spring);
}

.industry-card:hover .industry-content {
    transform: translateY(0);
}

.industry-content h3 {
    color: var(--clr-text-inverse);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.industry-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.industry-card:hover .industry-content p {
    opacity: 1;
}

/* --- BOTTOM CTA --- */
.cta-banner {
    background-color: var(--clr-primary-900);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 155, 57, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--clr-text-inverse);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
}

.cta-content p {
    color: var(--clr-text-500);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

/* --- FOOTER --- */
footer {
    background-color: #0f172a;
    padding: 40px 0;
    color: var(--clr-text-500);
    text-align: center;
}

.footer-logo {
    height: 30px;
    opacity: 0.5;
    margin: 0 auto 16px auto;
    filter: grayscale(100%);
}

footer p {
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .dashboard-mockup {
        transform: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-item:nth-child(1),
    .bento-item:nth-child(2),
    .bento-item:nth-child(3),
    .bento-item:nth-child(4) {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .protocols-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .protocols-ticker {
        justify-content: center;
    }
}

/* --- INITIAL STATES FOR ANIME.JS --- */
/* Set opacities to 0 or transform off-screen before JS runs */
.anim-reveal-text,
.anim-fade-up,
.anim-bento-item,
.anim-tag,
.anim-card,
.anim-hero-img {
    opacity: 0;
}
/* --- LIGHTBOX (ZOOM) --- */
.zoomable {
    cursor: pointer;
    transition: filter 0.3s;
}

.zoomable:hover {
    filter: brightness(1.2);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: var(--clr-text-500);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 80%;
    font-family: var(--font-main);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--clr-primary);
    text-decoration: none;
    cursor: pointer;
}
