/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1B3B5F;        /* Dark Navy Blue - Accrual Equity Partners */
    --primary-dark: #152F4D;   /* Darker navy for hover states */
    --secondary: #00A7E1;      /* Bright Cyan - Accrual Equity Partners */
    --accent: #0095C8;         /* Darker cyan for accents */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #F9FAFB;
    --bg-secondary: #F3F4F6;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 70% 60% at 70% 10%, rgba(0, 167, 225, 0.2) 0%, transparent 60%),
        linear-gradient(160deg, #060D1A 0%, #091929 50%, #05111E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo-img {
    width: 100px;
    /* height: 80px; */
    object-fit: contain;
    /* border-radius: 16px; */
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.loading-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.spinner-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    animation: spinnerBounce 1.4s ease-in-out infinite both;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes textGlow {
    0% {
        filter: brightness(1);
    }
    100% {
        filter: brightness(1.2);
    }
}

@keyframes spinnerBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 120px;
    object-fit: contain;
    /* border-radius: 8px; */
    transition: transform 0.3s ease;
}


.footer-logo {
    width: 130px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links .nav-link {
        display: block;
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links .btn-primary {
        margin-top: 1rem;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--white);
}

.logout-btn {
    background: #DC2626 !important;
    color: var(--white) !important;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
    box-shadow: 0 8px 25px -5px rgba(239, 68, 68, 0.4) !important;
}

.btn-admin {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: var(--white) !important;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-right: 0.5rem;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #047857, #065F46) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(5, 150, 105, 0.4) !important;
}

.btn-admin:active {
    transform: translateY(0);
}

/* Admin Panel Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.admin-modal-content {
    background: var(--white);
    border-radius: 1rem;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.admin-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-close {
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    margin-left: auto;
}

.admin-close:hover {
    opacity: 1;
}

.admin-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.admin-tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
}

.admin-tab-btn:hover {
    background: var(--white);
    color: var(--text-primary);
}

.admin-tab-btn.active {
    background: var(--white);
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Removed old admin modal content styles - now using admin-styles.css */

.admin-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.admin-error {
    text-align: center;
    padding: 2rem;
    color: var(--danger);
    background: #FEF2F2;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-stats {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-table-container {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.admin-table thead {
    background: var(--bg-secondary);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: var(--bg-primary);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-admin-action {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-admin-action.promote {
    background: var(--success);
    color: var(--white);
}

.btn-admin-action.promote:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-admin-action.demote {
    background: var(--warning);
    color: var(--white);
}

.btn-admin-action.demote:hover {
    background: #D97706;
    transform: translateY(-1px);
}

.btn-admin-action.delete {
    background: var(--danger);
    color: var(--white);
}

.btn-admin-action.delete:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

.btn-admin-action.edit {
    background: var(--primary);
    color: var(--white);
}

.btn-admin-action.edit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.role-admin {
    background: #DC2626;
    color: var(--white);
}

.role-badge.role-super-user {
    background: var(--primary);
    color: var(--white);
}

.role-badge.role-regular-user {
    background: var(--text-light);
    color: var(--white);
}

.role-badge.role-manager {
    background: var(--warning);
    color: var(--white);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--success);
    color: var(--white);
}

.status-badge.inactive {
    background: var(--text-light);
    color: var(--white);
}

.app-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.app-link:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness for Admin Panel */
@media (max-width: 768px) {
    .admin-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-height: 100vh;
    }

    .admin-header {
        padding: 1rem;
    }

    /* Removed old admin modal mobile styles - now using admin-styles.css */

    .admin-tabs {
        flex-direction: column;
    }

    .admin-tab-btn {
        border-bottom: 1px solid var(--border);
        border-right: none;
    }

    .admin-table-container {
        font-size: 0.75rem;
    }

    .admin-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .btn-admin-action {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border);
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
/* ══════════════════════════════════════════════════════
   HERO — Elegant Modern Redesign
   ══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 3rem;
    background: #050C18;
    display: flex;
    align-items: center;
}

/* Ambient glow blobs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-glow-tl {
    width: 600px;
    height: 600px;
    top: -220px;
    left: -160px;
    background: radial-gradient(circle, rgba(0,167,225,0.18) 0%, transparent 70%);
    filter: blur(60px);
}
.hero-glow-br {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -120px;
    background: radial-gradient(circle, rgba(55,48,163,0.22) 0%, transparent 70%);
    filter: blur(70px);
}

/* Fine dot mesh */
.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Keep dead selectors from throwing errors */
.hero-bg-effects,.hero-gradient-orb,.hero-gradient-orb-1,.hero-gradient-orb-2,
.hero-gradient-orb-3,.hero-grid-pattern,.hero-scan-line,.hero-diagonal-lines,
.hero-scroll-indicator,.hero-scroll-text,.hero-scroll-arrow,.hero-wave,
.hero-visual,.hero-orb-wrapper,.hero-ring,.hero-center-orb,.hero-orb-core,
.hero-orb-logo,.hero-orb-glow,.hero-orbit,.hero-orbit-card,.particles,
.particle,.floating-project-tile,.floating-card,#dynamic-floating-tiles,
.hero-subtle-grid { display: none !important; }

/* Content wrapper */
.hero-inner {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 600px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ── Eyebrow pill ── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.32rem 0.85rem 0.32rem 0.55rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    animation: heroFadeUp 0.6s ease both;
}
.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00A7E1;
    box-shadow: 0 0 0 0 rgba(0,167,225,0.5);
    animation: heroDotPing 2.5s ease-out infinite;
    flex-shrink: 0;
}
@keyframes heroDotPing {
    0%   { box-shadow: 0 0 0 0 rgba(0,167,225,0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(0,167,225,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,167,225,0); }
}
.hero-eyebrow-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.hero-eyebrow-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.2);
}
.hero-eyebrow-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.03em;
}

/* ── Heading ── */
.hero-heading {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    animation: heroFadeUp 0.6s ease 0.08s both;
}
.hero-heading-gradient {
    background: linear-gradient(100deg, #ffffff 0%, #00A7E1 45%, #7DD3FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Subtext ── */
.hero-subtext {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0 0 1.75rem;
    font-weight: 400;
    max-width: 460px;
    animation: heroFadeUp 0.6s ease 0.16s both;
}
.hero-br-desktop { display: inline; }

/* ── CTA ── */
.hero-actions { display: none; }
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #050C18;
    background: #ffffff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.01em;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 6px 22px rgba(0,167,225,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: heroFadeUp 0.6s ease 0.24s both;
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 14px 38px rgba(0,167,225,0.35);
    background: #f0f9ff;
}
.hero-btn-primary:active { transform: translateY(0); }

/* ── Metrics row ── */
.hero-metrics {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 1rem 0;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    animation: heroFadeUp 0.6s ease 0.32s both;
}
.hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    gap: 0.2rem;
}
.hero-metric:first-child { padding-left: 2rem; }
.hero-metric:last-child  { padding-right: 2rem; }

.hero-metric-val {
    font-size: 1.625rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero-metric-val sup {
    font-size: 0.85rem;
    color: #00A7E1;
    font-weight: 700;
    vertical-align: super;
    letter-spacing: 0;
}
.hero-metric-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.38);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}
.hero-metric-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.09);
    flex-shrink: 0;
}

/* Bottom fade into next section */
.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(249,250,251,0.06));
    pointer-events: none;
    z-index: 1;
}

/* Entry animation */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* old classes kept for safety */
.hero-content { display: none; }
.hero-text     { display: none; }
.hero-content-centered { display: none; }

/* Aurora sweep across the hero */
.hero-bg-effects::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(0, 167, 225, 0.05) 30%,
        rgba(0, 210, 255, 0.09) 50%,
        rgba(0, 167, 225, 0.05) 70%,
        transparent 100%
    );
    animation: auroraShift 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes auroraShift {
    0%   { transform: translateX(-15%) rotate(-8deg); opacity: 0.6; }
    50%  { transform: translateX(5%)  rotate(-4deg); opacity: 1; }
    100% { transform: translateX(15%) rotate(-2deg); opacity: 0.7; }
}

/* Top-right corner accent */
.hero-bg-effects::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 320px;
    border-top: 1px solid rgba(0, 167, 225, 0.2);
    border-right: 1px solid rgba(0, 167, 225, 0.2);
    pointer-events: none;
    z-index: 2;
    animation: cornerPulse 4s ease-in-out infinite;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    animation: orbFloat 20s ease-in-out infinite;
}

/* Top-right vivid cyan spotlight */
.hero-gradient-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 167, 225, 0.35) 0%, rgba(0, 120, 200, 0.15) 40%, transparent 70%);
    top: -30%;
    right: -20%;
    filter: blur(70px);
    animation-delay: 0s;
}

/* Bottom-left deep blue anchor */
.hero-gradient-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 80, 160, 0.4) 0%, rgba(0, 50, 120, 0.2) 50%, transparent 70%);
    bottom: -25%;
    left: -12%;
    filter: blur(80px);
    animation-delay: 10s;
}

/* Mid-field subtle shimmer */
.hero-gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.15) 0%, transparent 70%);
    top: 30%;
    left: 40%;
    filter: blur(100px);
    animation-delay: 5s;
    animation: orbFloat 12s ease-in-out infinite;
}

/* Horizontal scan line — glowing beam */
.hero-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 167, 225, 0.8) 40%, rgba(150, 230, 255, 1) 50%, rgba(0, 167, 225, 0.8) 60%, transparent 100%);
    animation: scanLine 8s linear infinite;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(0, 167, 225, 0.6);
}

@keyframes scanLine {
    0%   { top: -2%;   opacity: 0; }
    4%   { opacity: 1; }
    90%  { opacity: 0.7; }
    100% { top: 102%;  opacity: 0; }
}

/* Dot grid — modern tech feel */
.hero-diagonal-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 38px 38px;
    animation: dotGridScroll 25s linear infinite;
}

@keyframes dotGridScroll {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(38px, 38px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.hero-scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-scroll-arrow {
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(6px); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.1); }
    66%       { transform: translate(-20px, 20px) scale(0.9); }
}

/* Remove old line-grid; dot grid is defined above in .hero-diagonal-lines */
.hero-grid-pattern { display: none; }

/* old two-col layout — kept for safety */
.hero-content { display: none; }
.hero-text     { display: none; }

/* ── New compact centered layout ── */
.hero-content-centered {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* old compact classes — no longer used */
.hero-title-compact,.hero-title-accent-word,.hero-subtitle-compact,
.hero-cta-compact,.hero-stats-compact,.hero-stat-compact,
.hero-stat-num,.hero-stat-sup,.hero-stat-lbl,.hero-stat-sep { display: none; }

/* AEP Brand Badge */
.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 1rem 0.4rem 0.65rem;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 1.25rem;
    animation: slideInUp 0.7s ease-out both;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Animated live-status dot */
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00A7E1;
    box-shadow: 0 0 0 0 rgba(0, 167, 225, 0.6);
    animation: dotPing 2s ease-out infinite;
    flex-shrink: 0;
}

@keyframes dotPing {
    0%   { box-shadow: 0 0 0 0 rgba(0, 167, 225, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(0, 167, 225, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 167, 225, 0); }
}

.hero-brand-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hero-brand-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-brand-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    animation: slideInUp 1s ease-out 0.1s both;
}

.hero-title-main {
    display: block;
    margin-bottom: 0.4rem;
}

/* "AI" in solid white, "Center" in shimmering cyan */
.hero-title-word {
    display: inline;
    color: #fff;
}

.hero-title-word-accent {
    position: relative;
    background: linear-gradient(90deg, #fff 0%, #00A7E1 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-title-accent {
    display: block;
    font-size: 1.625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: -0.01em;
    margin-top: 0.5rem;
}

.gradient-text {
    color: var(--white);
    text-shadow: 0 0 40px rgba(0, 167, 225, 0.5);
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    animation: slideInUp 1s ease-out 0.2s both;
    font-weight: 400;
    max-width: 560px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    animation: slideInUp 1s ease-out 0.3s both;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(10px);
    display: inline-flex;
}

.hero-stat-item {
    text-align: center;
    padding: 0 2rem;
}

.hero-stat-item:first-child {
    padding-left: 0;
}

.hero-stat-item:last-child {
    padding-right: 0;
}

.hero-stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.35rem;
    text-shadow: 0 0 20px rgba(0, 167, 225, 0.5);
}

.hero-stat-plus {
    font-size: 1.5rem;
    color: #00A7E1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Vertical divider between stats */
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
    margin-bottom: 2rem;
}

/* CTA button */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0A2540;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,167,225,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.01em;
    font-family: inherit;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,167,225,0.45);
}

.btn-hero-primary:active {
    transform: translateY(-1px);
}

/* keep old icon span selectors alive */
.btn-hero-shimmer { display: none; }
.btn-icon-left, .btn-icon-right { display: none; }

/* Trust Indicators */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.5s both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero-trust-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 167, 225, 0.15);
    border: 1px solid rgba(0, 167, 225, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00A7E1;
    flex-shrink: 0;
}

/* ============================================================
   HERO VISUAL — Tech Orb System
   ============================================================ */
.hero-visual {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orb wrapper — everything is positioned relative to this */
.hero-orb-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Expanding rings */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 167, 225, 0.2);
    animation: ringPulse 4s ease-out infinite;
}

.hero-ring-1 { width: 160px;  height: 160px; animation-delay: 0s; }
.hero-ring-2 { width: 260px;  height: 260px; animation-delay: 1s; border-color: rgba(0, 167, 225, 0.15); }
.hero-ring-3 { width: 360px;  height: 360px; animation-delay: 2s; border-color: rgba(0, 167, 225, 0.08); }

@keyframes ringPulse {
    0%   { transform: scale(0.92); opacity: 0.5; }
    50%  { transform: scale(1);    opacity: 1; }
    100% { transform: scale(0.92); opacity: 0.5; }
}

/* Central Glowing Orb */
.hero-center-orb {
    position: relative;
    width: 130px;
    height: 130px;
    z-index: 10;
    animation: orbBreathe 5s ease-in-out infinite;
}

@keyframes orbBreathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-10px) scale(1.04); }
}

.hero-orb-core {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(0, 167, 225, 0.4),
        0 0 80px rgba(0, 167, 225, 0.2),
        inset 0 0 30px rgba(0, 167, 225, 0.1);
}

.hero-orb-logo {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(0, 167, 225, 0.8));
}

.hero-orb-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 167, 225, 0.35) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.15); }
}

/* Orbiting Feature Cards */
.hero-orbit {
    position: absolute;
    width: 0;
    height: 0;
}

.hero-orbit-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.hero-orbit-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(0, 167, 225, 0.5);
    box-shadow: 0 4px 30px rgba(0, 167, 225, 0.3);
    transform: scale(1.06);
}

.hero-orbit-card svg {
    color: #00A7E1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0, 167, 225, 0.6));
}

/* Card positions — evenly around the orb */
.hero-orbit-1 { animation: orbit1Float 6s ease-in-out infinite; }
.hero-orbit-2 { animation: orbit2Float 7s ease-in-out infinite 0.5s; }
.hero-orbit-3 { animation: orbit3Float 6.5s ease-in-out infinite 1s; }
.hero-orbit-4 { animation: orbit4Float 7.5s ease-in-out infinite 1.5s; }

@keyframes orbit1Float {
    0%, 100% { transform: translate(-230px, -140px); }
    50%       { transform: translate(-240px, -155px); }
}
@keyframes orbit2Float {
    0%, 100% { transform: translate(110px, -160px); }
    50%       { transform: translate(120px, -148px); }
}
@keyframes orbit3Float {
    0%, 100% { transform: translate(130px, 120px); }
    50%       { transform: translate(120px, 130px); }
}
@keyframes orbit4Float {
    0%, 100% { transform: translate(-220px, 110px); }
    50%       { transform: translate(-230px, 120px); }
}

/* Wave at Bottom */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(-20px); }
}
    50% {
        transform: translateX(-25px);
    }
}

/* Particle Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 167, 225, 0.9);
    opacity: 0.8;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 70%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 25%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.particle:nth-child(6) {
    top: 60%;
    left: 15%;
    animation-delay: 2.5s;
    animation-duration: 8s;
}

.particle:nth-child(7) {
    top: 35%;
    left: 90%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.particle:nth-child(8) {
    top: 85%;
    left: 45%;
    animation-delay: 3.5s;
    animation-duration: 9s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) translateX(15px);
        opacity: 0.8;
    }
}

/* New floating project tiles */
.floating-project-tile {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    min-width: 160px;
    z-index: 10;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    min-width: 220px;
}

.floating-project-tile:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 1);
    z-index: 20;
}

.floating-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

/* Project tile positions - reduced vertical, increased horizontal spacing */
.floating-project-tile.tile-1 {
    top: 8%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 4s;
    z-index: 15;
}

.floating-project-tile.tile-2 {
    top: 25%;
    left: 65%;
    animation-delay: 0.8s;
    animation-duration: 3.8s;
    z-index: 12;
}

.floating-project-tile.tile-3 {
    top: 65%;
    left: 15%;
    animation-delay: 1.6s;
    animation-duration: 4.2s;
    z-index: 14;
}

.floating-project-tile.tile-4 {
    bottom: 15%;
    left: 75%;
    animation-delay: 2.4s;
    animation-duration: 3.6s;
    z-index: 13;
}

.floating-project-tile.tile-5 {
    top: 45%;
    left: 35%;
    animation-delay: 3.2s;
    animation-duration: 4.4s;
    z-index: 11;
}

.floating-card.card-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.floating-card.card-2 {
    top: 45%;
    right: 8%;
    animation-delay: 1.5s;
    animation-duration: 3.5s;
}

.floating-card.card-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 3s;
    animation-duration: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-25px) rotate(-1deg);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Project tile styles */
.tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tile-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tile-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.tile-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tile-status.coming-soon {
    color: var(--warning);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-icon.success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: var(--white);
}

.card-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.card-icon.warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: var(--white);
}

.card-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Applications Section */
.applications {
    padding: 2.5rem 0 6rem;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Company Selection Grid ───────────────────────────── */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.company-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #1E3A5F;
    cursor: pointer;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-left-color 0.22s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    box-shadow: 0 8px 28px rgba(10,37,64,0.11);
    transform: translateY(-3px);
}

/* Per-card accent colours */
.company-card[data-accent="0"] { border-left-color: #0A2540; }
.company-card[data-accent="0"] .company-icon { background: #0A2540 !important; }
.company-card[data-accent="1"] { border-left-color: #0D6E6E; }
.company-card[data-accent="1"] .company-icon { background: #0D6E6E !important; }
.company-card[data-accent="2"] { border-left-color: #3730A3; }
.company-card[data-accent="2"] .company-icon { background: #3730A3 !important; }
.company-card[data-accent="3"] { border-left-color: #7C2D12; }
.company-card[data-accent="3"] .company-icon { background: #7C2D12 !important; }
.company-card[data-accent="4"] { border-left-color: #14532D; }
.company-card[data-accent="4"] .company-icon { background: #14532D !important; }
.company-card[data-accent="5"] { border-left-color: #1E40AF; }
.company-card[data-accent="5"] .company-icon { background: #1E40AF !important; }
.company-card[data-accent="6"] { border-left-color: #6B21A8; }
.company-card[data-accent="6"] .company-icon { background: #6B21A8 !important; }
.company-card[data-accent="7"] { border-left-color: #0F766E; }
.company-card[data-accent="7"] .company-icon { background: #0F766E !important; }

.company-card-body {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem 1.5rem 1.2rem;
    flex: 1;
}

.company-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.06em;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.18rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-meta {
    font-size: 0.68rem;
    color: #94A3B8;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.company-desc {
    font-size: 0.78rem;
    color: #64748B;
    margin: 0.28rem 0 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    flex-shrink: 0;
    padding-left: 0.5rem;
}

.company-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.company-arrow {
    color: #CBD5E1;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.company-card:hover .company-arrow {
    transform: translateX(4px);
    color: #0A2540;
}

.company-card-footer {
    padding: 0.65rem 1.5rem;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.company-code-tag {
    font-size: 0.67rem;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.company-view-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1E40AF;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.28rem;
    transition: gap 0.18s ease, color 0.18s ease;
    text-transform: uppercase;
}

.company-card:hover .company-view-link {
    gap: 0.5rem;
    color: #0A2540;
}

/* ── Back to Companies Button ─────────────────────────── */
.btn-back-company {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    color: #475569;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-back-company:hover {
    background: #0A2540;
    border-color: #0A2540;
    color: white;
    box-shadow: 0 3px 10px rgba(10,37,64,0.18);
}

#apps-breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #F1F5F9;
}

.breadcrumb-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
    padding-left: 0.65rem;
    border-left: 3px solid #0A2540;
}

/* ── Apps Grid ─────────────────────────────────────────── */
.apps-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.app-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s ease;
}

.app-card:hover::before {
    left: 100%;
}

.app-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 0 32px 64px -12px rgba(79, 70, 229, 0.3);
    border-color: var(--primary);
}

.app-card:hover .app-icon {
    animation: pulse 2s ease-in-out infinite;
}

.btn-app[data-url]::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* Coming Soon Styles */
.app-card.coming-soon {
    position: relative;
    opacity: 0.7;
    filter: grayscale(0.3);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    pointer-events: none;
    z-index: 1;
}


.coming-soon-status {
    background: linear-gradient(135deg, var(--warning), #D97706) !important;
    color: white !important;
}

.coming-soon-btn {
    background: linear-gradient(135deg, #6B7280, #4B5563) !important;
    color: #E5E7EB !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.coming-soon-btn:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.app-card.coming-soon:hover {
    transform: translateY(-8px) scale(1.01);
    filter: grayscale(0.2);
    opacity: 0.8;
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.app-status {
    background: #ECFDF5;
    color: var(--success);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}


.btn-app {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-app:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.4);
}

.btn-app:active {
    transform: translateY(-1px);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-section {
    max-width: 600px;
}

.footer-section .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-description {
    color: #9CA3AF;
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 4rem 0 5rem;
        min-height: 70vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .hero-title-accent {
        font-size: 1.375rem;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-brand-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: block;
        position: relative;
        height: 380px;
        margin-top: 1rem;
    }

    .hero-orb-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero-ring-1 { width: 130px; height: 130px; }
    .hero-ring-2 { width: 210px; height: 210px; }
    .hero-ring-3 { width: 300px; height: 300px; }

    .hero-center-orb, .hero-orb-core { width: 110px; height: 110px; }

    @keyframes orbit1Float {
        0%, 100% { transform: translate(-190px, -120px); }
        50%       { transform: translate(-200px, -130px); }
    }
    @keyframes orbit2Float {
        0%, 100% { transform: translate(90px, -130px); }
        50%       { transform: translate(100px, -118px); }
    }
    @keyframes orbit3Float {
        0%, 100% { transform: translate(100px, 100px); }
        50%       { transform: translate(90px, 108px); }
    }
    @keyframes orbit4Float {
        0%, 100% { transform: translate(-180px, 90px); }
        50%       { transform: translate(-190px, 98px); }
    }

    .hero-scroll-indicator { display: none; }

    .footer-content {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-heading {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .companies-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        height: 280px;
        margin-top: 1rem;
    }

    .hero-orb-wrapper {
        width: 260px;
        height: 260px;
    }

    .hero-ring-1 { width: 110px; height: 110px; }
    .hero-ring-2 { width: 180px; height: 180px; }
    .hero-ring-3 { width: 260px; height: 260px; }

    .hero-center-orb, .hero-orb-core { width: 90px; height: 90px; }
    .hero-orb-logo { width: 56px; }

    .hero-orbit-card {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    @keyframes orbit1Float {
        0%, 100% { transform: translate(-165px, -100px); }
        50%       { transform: translate(-175px, -110px); }
    }
    @keyframes orbit2Float {
        0%, 100% { transform: translate(76px, -110px); }
        50%       { transform: translate(86px, -100px); }
    }
    @keyframes orbit3Float {
        0%, 100% { transform: translate(80px, 80px); }
        50%       { transform: translate(70px, 88px); }
    }
    @keyframes orbit4Float {
        0%, 100% { transform: translate(-155px, 75px); }
        50%       { transform: translate(-165px, 83px); }
    }
    
    .floating-project-tile {
        min-width: 120px;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .tile-icon {
        width: 28px;
        height: 28px;
    }
    
    .tile-title {
        font-size: 0.75rem;
    }
    
    .tile-status {
        font-size: 0.625rem;
    }
    
    /* Adjust positions for mobile with reduced vertical, increased horizontal */
    .floating-project-tile.tile-1 {
        top: 8%;
        left: 5%;
    }
    
    .floating-project-tile.tile-2 {
        top: 15%;
        right: 5%;
    }
    
    .floating-project-tile.tile-3 {
        top: 65%;
        left: 10%;
    }
    
    .floating-project-tile.tile-4 {
        bottom: 15%;
        right: 5%;
    }
    
    .floating-project-tile.tile-5 {
        top: 39%;
        left: 30%;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.625rem;
    }

    .hero-logo-container {
        width: 100px;
        height: 100px;
    }

    .app-card {
        padding: 1.5rem;
    }

    .applications {
        padding: 3rem 0 5rem;
    }

}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

