/* AIGOR Custom Styles */
.aigor-page {
    --sector-color: #00e5ff;
    --sector-color-rgb: 0, 229, 255;
}

.aigor-hero {
    position: relative;
    padding: 12rem 0 8rem;
    background-color: #000000;
    color: #ffffff;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.aigor-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.aigor-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 10px rgba(0, 229, 255, 0.2);
    letter-spacing: -0.02em;
}

.aigor-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 800px;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    max-width: 1200px !important;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-right {
    flex: 1;
    position: relative;
    width: 600px;
    height: 600px;
    min-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.aigor-hero #aigor-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.aigor-capabilities {
    padding: 6rem 0;
    background-color: #080808;
    position: relative;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.capability-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center;
}

.capability-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 64px;
    height: 64px;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.capability-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.capability-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 0;
}

.aigor-workflow-section {
    padding: 6rem 0;
    background-color: #050505;
    text-align: center;
}

.workflow-image,
.workflow-video {
    max-width: 1000px;
    width: 100%;
    margin: 4rem auto 0;
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.1);
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    .aigor-hero h1 {
        font-size: 2.5rem;
    }
    .hero-split {
        flex-direction: column;
        text-align: center;
    }
    .hero-right {
        width: 100%;
        min-width: unset;
        height: 400px;
        margin-top: 2rem;
    }
}

/* --- AIGOR High-Tech Boot Sequence --- */

@keyframes aigorFadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aigorCanvasBoot {
    0% { transform: scale(0.5); opacity: 0; filter: brightness(3) blur(20px); }
    40% { transform: scale(1.1); opacity: 0.8; filter: brightness(2) blur(5px); }
    60% { transform: scale(0.95); opacity: 0.5; filter: brightness(4) blur(10px); }
    100% { transform: scale(1); opacity: 1; filter: brightness(1) blur(0); }
}

@keyframes aigorTextGlitch {
    0% { opacity: 0; transform: translateX(-20px); filter: blur(10px); text-shadow: 10px 0 red, -10px 0 cyan; }
    20% { opacity: 1; transform: translateX(5px); filter: blur(2px); text-shadow: -5px 0 red, 5px 0 cyan; }
    40% { opacity: 0.8; transform: translateX(-5px); filter: blur(0); text-shadow: 2px 0 red, -2px 0 cyan; }
    60% { opacity: 1; transform: translateX(2px); filter: blur(1px); text-shadow: -2px 0 red, 2px 0 cyan; }
    80% { opacity: 0.9; transform: translateX(-1px); filter: blur(0); text-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
    100% { opacity: 1; transform: translateX(0); filter: blur(0); text-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 10px rgba(0, 229, 255, 0.2); }
}

@keyframes aigorSlideIn {
    0% { opacity: 0; transform: translateX(-30px); filter: blur(5px); }
    100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes aigorCardScan {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); box-shadow: inset 0 0 0 rgba(0, 229, 255, 0); }
    50% { opacity: 1; box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.2); border-color: rgba(0, 229, 255, 0.5); }
    100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: inset 0 0 0 rgba(0, 229, 255, 0); }
}

.aigor-page nav {
    opacity: 0;
    animation: aigorFadeInDown 0.8s ease forwards;
    animation-delay: 0.2s;
}

.aigor-page #aigor-hero-canvas {
    opacity: 0;
    animation: aigorCanvasBoot 1.5s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
    animation-delay: 0.3s;
}

.aigor-page .aigor-hero h1 {
    opacity: 0;
    animation: aigorTextGlitch 0.8s linear forwards;
    animation-delay: 1.2s;
}

.aigor-page .aigor-hero p {
    opacity: 0;
    animation: aigorSlideIn 0.5s ease-out forwards;
    animation-delay: 1.6s;
}

.aigor-page .capability-card:nth-child(1) { opacity: 0; animation: aigorCardScan 0.6s ease-out forwards; animation-delay: 2.0s; }
.aigor-page .capability-card:nth-child(2) { opacity: 0; animation: aigorCardScan 0.6s ease-out forwards; animation-delay: 2.1s; }
.aigor-page .capability-card:nth-child(3) { opacity: 0; animation: aigorCardScan 0.6s ease-out forwards; animation-delay: 2.2s; }
.aigor-page .capability-card:nth-child(4) { opacity: 0; animation: aigorCardScan 0.6s ease-out forwards; animation-delay: 2.3s; }
.aigor-page .capability-card:nth-child(5) { opacity: 0; animation: aigorCardScan 0.6s ease-out forwards; animation-delay: 2.4s; }
.aigor-page .capability-card:nth-child(6) { opacity: 0; animation: aigorCardScan 0.6s ease-out forwards; animation-delay: 2.5s; }

.aigor-page section:not(.aigor-hero),
.aigor-page footer {
    opacity: 0;
    animation: aigorSlideIn 1s ease-out forwards;
    animation-delay: 2.8s;
}

/* --- AIGOR Mobile Mockup & Unified Layout CSS --- */
.aigor-unified-section {
    position: relative;
    overflow: hidden;
}

.unified-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: flex-start;
    max-width: 1400px !important;
}

.app-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px !important;
}

/* Prompt Button styles */
.prompt-btn {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

/* Phone Frame wrapper */
.phone-frame {
    width: 320px;
    height: 640px;
    background: #030712;
    border: 12px solid #111827;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--sector-color-rgb), 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* Speaker notch */
.phone-notch {
    width: 120px;
    height: 18px;
    background: #111827;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
    z-index: 100;
}

/* Inner Screen */
.phone-screen {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #05080e;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* App View Containers */
.phone-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.phone-view.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* Neural Matrix container inside mockup */
.phone-matrix-container {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 1.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--sector-color-rgb), 0.05) 0%, transparent 70%);
}

.phone-matrix-container.small {
    width: 100px;
    height: 100px;
    margin: 0.5rem auto;
}

/* Login Screen styles */
.phone-app-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    color: var(--sector-color);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(var(--sector-color-rgb), 0.4));
}

.phone-app-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    max-width: 220px;
    margin: 0 auto 1rem;
}

/* Input Fields inside Phone */
.phone-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone-input-group label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--sector-color-rgb), 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--sector-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(var(--sector-color-rgb), 0.2);
}

.phone-input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.85rem;
    width: 100%;
}

/* Phone Buttons */
.phone-btn-cyan {
    background: var(--sector-color);
    border: none;
    border-radius: 12px;
    color: #05080e;
    padding: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--sector-color-rgb), 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.phone-btn-cyan:hover {
    box-shadow: 0 6px 25px rgba(var(--sector-color-rgb), 0.5);
    transform: translateY(-1px);
}

.phone-btn-cyan .btn-text {
    display: block;
}

/* Spinner */
.phone-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(5,8,14,0.2);
    border-top: 2px solid #05080e;
    border-radius: 50%;
    animation: phoneSpinnerRotate 0.8s linear infinite;
}

@keyframes phoneSpinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Connection Status Card */
.connection-status-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    text-align: left;
    backdrop-filter: blur(10px);
}

.conn-card-title {
    color: #00e676;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.conn-card-body {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    line-height: 1.5;
}

/* Chat components */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.75rem;
    line-height: 1.45;
    animation: msgPop 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(var(--sector-color-rgb), 0.1);
    border: 1px solid rgba(var(--sector-color-rgb), 0.2);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-msg.aigor {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 2px;
}

@keyframes msgPop {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.phone-round-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(var(--sector-color-rgb), 0.3);
    background: rgba(var(--sector-color-rgb), 0.05);
    color: var(--sector-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-round-icon-btn:hover {
    background: rgba(var(--sector-color-rgb), 0.15);
    border-color: var(--sector-color);
    transform: scale(1.05);
}

.phone-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--sector-color);
    color: #05080e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-send-btn:hover {
    box-shadow: 0 0 10px rgba(var(--sector-color-rgb), 0.4);
    transform: scale(1.05);
}

/* blinking dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(0, 230, 118, 0.4);
    animation: statusPulse 1.6s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Mini Capability Cards & Categories Styles */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-block {
    display: flex;
    flex-direction: column;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.mini-capability-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.mini-capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.mini-capability-card .card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-capability-card .card-head svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.mini-capability-card h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.mini-capability-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

/* Governance category card interactions */
.category-block.governance .mini-capability-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
    background: rgba(0, 229, 255, 0.02);
    transform: translateY(-2px);
}
.category-block.governance .mini-capability-card:hover::before {
    background: #00e5ff;
}
.category-block.governance .mini-capability-card:hover .card-head svg {
    color: #00e5ff;
}

/* Operations category card interactions */
.category-block.operations .mini-capability-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.05);
    background: rgba(0, 230, 118, 0.02);
    transform: translateY(-2px);
}
.category-block.operations .mini-capability-card:hover::before {
    background: #00e676;
}
.category-block.operations .mini-capability-card:hover .card-head svg {
    color: #00e676;
}

/* Response category card interactions */
.category-block.response .mini-capability-card:hover {
    border-color: rgba(255, 145, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 145, 0, 0.05);
    background: rgba(255, 145, 0, 0.02);
    transform: translateY(-2px);
}
.category-block.response .mini-capability-card:hover::before {
    background: #ff9100;
}
.category-block.response .mini-capability-card:hover .card-head svg {
    color: #ff9100;
}

@media (max-width: 1024px) {
    .unified-grid,
    .app-split {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .app-visual-left {
        order: 1; /* display phone mockup below capabilities/details lists on smaller screens */
    }
}

/* --- Sector Specific Light Pages Styling --- */
.sector-light-page {
    background-color: #ffffff;
    color: #111827;
}

.sector-light-page h1,
.sector-light-page h2,
.sector-light-page h3,
.sector-light-page h4 {
    color: #111827;
}

.sector-light-page p {
    color: #4b5563;
}

/* Override glitched/glow text settings in hero headers for light pages */
.sector-light-page .aigor-hero h1 {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    text-shadow: none !important;
}

.sector-light-page .nav-item {
    color: #374151 !important;
}
.sector-light-page .nav-item:hover {
    color: var(--sector-color) !important;
}

.sector-light-page nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sector-light-page nav .logo span {
    color: #111827 !important;
}

.sector-light-page .aigor-hero-section {
    background: radial-gradient(circle at top right, rgba(var(--sector-color-rgb), 0.05), transparent 60%), #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sector-light-page .hero-accent-title {
    background: linear-gradient(135deg, #111827 0%, var(--sector-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sector-light-page .sector-badge {
    background: rgba(var(--sector-color-rgb), 0.08);
    color: var(--sector-color);
    border: 1px solid rgba(var(--sector-color-rgb), 0.15);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sector-light-page .aigor-unified-section {
    background-color: #f9fafb;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sector-light-page .glass-panel {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sector-light-page .glass-panel:hover {
    border-color: rgba(var(--sector-color-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(var(--sector-color-rgb), 0.04);
}

.sector-light-page .capabilities-list .capability-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sector-light-page .capabilities-list .capability-card:hover {
    border-color: var(--sector-color);
    background: rgba(var(--sector-color-rgb), 0.01);
}

.sector-light-page .capability-card .cap-icon {
    background: rgba(var(--sector-color-rgb), 0.06);
    color: var(--sector-color);
}

.sector-light-page .prompt-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sector-light-page .prompt-btn:hover {
    background: rgba(var(--sector-color-rgb), 0.05);
    border-color: var(--sector-color);
    color: var(--sector-color);
    box-shadow: 0 4px 12px rgba(var(--sector-color-rgb), 0.1);
}

.sector-light-page .category-block {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.sector-light-page .category-block h3 {
    border-bottom: 2px solid var(--sector-color);
}

.sector-light-page .mini-capability-card {
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sector-light-page .mini-capability-card:hover {
    border-color: rgba(var(--sector-color-rgb), 0.3);
    background: rgba(var(--sector-color-rgb), 0.01);
}

.sector-light-page .mini-capability-card::before {
    background: var(--sector-color);
}

.sector-light-page .mini-capability-card:hover .card-head svg {
    color: var(--sector-color);
}

.sector-light-page .aigor-workflow-section {
    background-color: #ffffff;
}

.sector-light-page .workflow-video {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Specific Sector Brand Color Definitions */
.health-theme {
    --sector-color: #ef4444;
    --sector-color-rgb: 239, 68, 68;
}

.safety-theme {
    --sector-color: #1d4ed8;
    --sector-color-rgb: 29, 78, 216;
}

.traffic-theme {
    --sector-color: #d97706;
    --sector-color-rgb: 217, 119, 6;
}

.enterprise-theme {
    --sector-color: #16a34a;
    --sector-color-rgb: 22, 163, 74;
}

/* Specific overrides for capability card title/text contrasts in light pages */
.sector-light-page .capability-card h4,
.sector-light-page .mini-capability-card h4 {
    color: var(--sector-color) !important;
    font-weight: 700;
}

.sector-light-page .capability-card p,
.sector-light-page .mini-capability-card p {
    color: #4b5563 !important;
}

.sector-light-page .mini-capability-card .card-head svg {
    color: var(--sector-color) !important;
    opacity: 0.7;
}

.sector-light-page .mini-capability-card:hover .card-head svg {
    opacity: 1;
}

/* Adjust Hero Padding when using Sector Nav */
.aigor-page .aigor-hero,
.sector-light-page .aigor-hero-section {
    padding-top: 5rem !important;
    min-height: auto !important;
}

/* --- AIGOR Sector Tabs Navigation (Clean Folder Tab design) --- */
.aigor-sector-nav {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    padding-top: 90px; /* clear the 80px fixed navigation */
    position: relative;
    z-index: 99;
}

.sector-light-page .aigor-sector-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sector-nav-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sector-tab {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    position: relative;
}

.sector-light-page .sector-tab {
    color: rgba(0, 0, 0, 0.5);
}

.sector-tab:hover {
    color: #ffffff;
}

.sector-light-page .sector-tab:hover {
    color: #111827;
}

/* Active Core Tab (AIGOR Core, dark background) */
.sector-tab.active-core.active {
    color: #00e5ff !important;
    border-color: rgba(0, 229, 255, 0.25) !important;
    background: rgba(0, 229, 255, 0.02) !important;
    border-bottom: 1px solid #050505 !important;
}

/* Active Health Tab (Healthcare, light background) */
.sector-tab.active-health.active {
    color: var(--sector-color) !important;
    border-color: rgba(var(--sector-color-rgb), 0.25) !important;
    background: rgba(var(--sector-color-rgb), 0.02) !important;
    border-bottom: 1px solid #ffffff !important;
}

/* Active Safety Tab (Public Safety, light background) */
.sector-tab.active-safety.active {
    color: var(--sector-color) !important;
    border-color: rgba(var(--sector-color-rgb), 0.25) !important;
    background: rgba(var(--sector-color-rgb), 0.02) !important;
    border-bottom: 1px solid #ffffff !important;
}

/* Active Traffic Tab (Transit & Mobility, light background) */
.sector-tab.active-traffic.active {
    color: var(--sector-color) !important;
    border-color: rgba(var(--sector-color-rgb), 0.25) !important;
    background: rgba(var(--sector-color-rgb), 0.02) !important;
    border-bottom: 1px solid #ffffff !important;
}

/* Active Enterprise Tab (Enterprise, light background) */
.sector-tab.active-enterprise.active {
    color: var(--sector-color) !important;
    border-color: rgba(var(--sector-color-rgb), 0.25) !important;
    background: rgba(var(--sector-color-rgb), 0.02) !important;
    border-bottom: 1px solid #ffffff !important;
}

@media (max-width: 768px) {
    .sector-nav-container {
        gap: 0.5rem;
    }
    .sector-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* --- Phone Light Mode overrides --- */
.sector-light-page .phone-screen {
    background: #ffffff !important;
    color: #1f2937 !important;
}

.sector-light-page .phone-frame {
    background: #ffffff !important;
    border-color: #111827 !important; /* Keep a nice dark bezel for the phone */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 40px rgba(var(--sector-color-rgb), 0.1) !important;
}

.sector-light-page .phone-header {
    color: rgba(0, 0, 0, 0.5) !important;
}

.sector-light-page .phone-app-subtitle {
    color: #6b7280 !important;
}

.sector-light-page .phone-input-group label {
    color: #4b5563 !important;
}

.sector-light-page .phone-input-wrapper {
    background: #f9fafb !important;
    border-color: rgba(var(--sector-color-rgb), 0.2) !important;
    color: #4b5563 !important;
}

.sector-light-page .phone-input-wrapper input {
    color: #111827 !important;
}

.sector-light-page .phone-input-wrapper input::placeholder {
    color: #9ca3af !important;
}

.sector-light-page .phone-btn-cyan {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.sector-light-page .phone-header svg {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Screen 2 Active state */
.sector-light-page .phone-screen h4 {
    color: #111827 !important;
}

.sector-light-page .phone-screen p {
    color: #4b5563 !important;
}

.sector-light-page .phone-screen svg {
    color: #4b5563 !important;
}

/* Except for elements that specifically use var(--sector-color) or user messages */
.sector-light-page .phone-screen p[style*="var(--sector-color)"],
.sector-light-page .phone-screen h4[style*="var(--sector-color)"],
.sector-light-page .phone-screen span[style*="var(--sector-color)"] {
    color: var(--sector-color) !important;
}

/* Logout icon and back controls */
.sector-light-page .phone-screen div[style*="color: rgba(255,255,255,0.5)"] {
    color: #6b7280 !important;
}

.sector-light-page .phone-screen div[style*="color: rgba(255,255,255,0.5)"] svg {
    color: #6b7280 !important;
}

.sector-light-page #app-dashboard-default {
    color: #6b7280 !important;
}

.sector-light-page #app-dashboard-default svg {
    color: #9ca3af !important;
}

/* Chat details */
.sector-light-page #phone-msg-response {
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #1f2937 !important;
}

.sector-light-page #phone-msg-response .response-text {
    color: #1f2937 !important;
}

.sector-light-page #phone-msg-query {
    background: var(--sector-color) !important;
    color: #ffffff !important;
}

/* Input Bar overrides for light mode */
.sector-light-page .phone-screen div[style*="border-top: 1px solid rgba(255,255,255,0.05)"] {
    border-top: 1px solid #e5e7eb !important;
}

.sector-light-page .phone-screen div[style*="background: rgba(255,255,255,0.05)"] {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}

.sector-light-page .phone-screen div[style*="background: rgba(255,255,255,0.05)"] svg {
    color: #4b5563 !important;
}

.sector-light-page .phone-screen span[style*="color: rgba(255,255,255,0.25)"] {
    color: #9ca3af !important;
}

/* Submit send buttons */
.sector-light-page .phone-screen div[style*="background: var(--sector-color)"] svg {
    color: #ffffff !important;
}

.sector-light-page .phone-round-icon-btn {
    border-color: rgba(var(--sector-color-rgb), 0.3) !important;
    background: rgba(var(--sector-color-rgb), 0.05) !important;
    color: var(--sector-color) !important;
}

.sector-light-page .phone-round-icon-btn svg {
    color: var(--sector-color) !important;
}

.sector-light-page .phone-round-icon-btn:hover {
    background: rgba(var(--sector-color-rgb), 0.12) !important;
    border-color: var(--sector-color) !important;
}

/* Connection status card */
.sector-light-page .connection-status-card {
    background: #f9fafb !important;
    border-color: rgba(0, 230, 118, 0.3) !important;
}

.sector-light-page .conn-card-title {
    color: #10b981 !important;
}

.sector-light-page .conn-card-title svg,
.sector-light-page .pulse-dot {
    background-color: #10b981 !important;
}

.sector-light-page .conn-card-body {
    color: #374151 !important;
}

/* Bottom phone pill indicator */
.sector-light-page .phone-screen div[style*="background: rgba(255,255,255,0.3)"] {
    background: rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   AIGOR SECTOR-SPECIFIC ENTRANCE ANIMATIONS
   ========================================================================== */

/* --- 1. Public Safety Sector (safety-theme) - Tactical Sweep --- */
@keyframes safetySlideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes safetySlideRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes safetyFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.safety-theme nav {
    opacity: 0;
    animation: safetyFade 0.6s ease forwards !important;
    animation-delay: 0.1s !important;
}
.safety-theme .aigor-sector-nav {
    opacity: 0;
    animation: safetyFade 0.6s ease forwards !important;
    animation-delay: 0.2s !important;
}
.safety-theme .aigor-hero h1 {
    opacity: 0;
    animation: safetySlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    animation-delay: 0.3s !important;
}
.safety-theme .aigor-hero p {
    opacity: 0;
    animation: safetySlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    animation-delay: 0.4s !important;
}
.safety-theme .hero-right {
    opacity: 0;
    animation: safetySlideRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    animation-delay: 0.5s !important;
}
.safety-theme .aigor-capabilities,
.safety-theme section,
.safety-theme footer {
    opacity: 0;
    animation: safetyFade 1s ease forwards !important;
    animation-delay: 0.7s !important;
}

/* --- 2. Transit & Mobility Sector (traffic-theme) - Speed Flow --- */
@keyframes trafficSpeedSlide {
    from { opacity: 0; transform: translateY(50px) skewY(2deg); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0) skewY(0); filter: blur(0); }
}
@keyframes trafficSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.traffic-theme nav {
    opacity: 0;
    animation: trafficSlideUp 0.6s ease forwards !important;
    animation-delay: 0.1s !important;
}
.traffic-theme .aigor-sector-nav {
    opacity: 0;
    animation: trafficSlideUp 0.6s ease forwards !important;
    animation-delay: 0.2s !important;
}
.traffic-theme .aigor-hero h1 {
    opacity: 0;
    animation: trafficSpeedSlide 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards !important;
    animation-delay: 0.3s !important;
}
.traffic-theme .aigor-hero p {
    opacity: 0;
    animation: trafficSpeedSlide 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards !important;
    animation-delay: 0.4s !important;
}
.traffic-theme .hero-right {
    opacity: 0;
    animation: trafficSpeedSlide 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards !important;
    animation-delay: 0.5s !important;
}
.traffic-theme .aigor-capabilities,
.traffic-theme section,
.traffic-theme footer {
    opacity: 0;
    animation: trafficSlideUp 0.8s ease forwards !important;
    animation-delay: 0.7s !important;
}

/* --- 3. Healthcare Sector (health-theme) - Heartbeat Pulse --- */
@keyframes healthHeartbeatReveal {
    0% { opacity: 0; transform: scale(0.96) translateY(12px); }
    50% { opacity: 0.6; transform: scale(1.02) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes healthSmoothFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.health-theme nav {
    opacity: 0;
    animation: healthSmoothFade 0.8s ease forwards !important;
    animation-delay: 0.1s !important;
}
.health-theme .aigor-sector-nav {
    opacity: 0;
    animation: healthSmoothFade 0.8s ease forwards !important;
    animation-delay: 0.2s !important;
}
.health-theme .aigor-hero h1 {
    opacity: 0;
    animation: healthHeartbeatReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    animation-delay: 0.3s !important;
}
.health-theme .aigor-hero p {
    opacity: 0;
    animation: healthHeartbeatReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    animation-delay: 0.45s !important;
}
.health-theme .hero-right {
    opacity: 0;
    animation: healthHeartbeatReveal 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    animation-delay: 0.55s !important;
}
.health-theme .aigor-capabilities,
.health-theme section,
.health-theme footer {
    opacity: 0;
    animation: healthSmoothFade 1.2s ease forwards !important;
    animation-delay: 0.75s !important;
}

/* --- 4. SME / Enterprise Sector (enterprise-theme) - Growth Ascent --- */
@keyframes enterpriseGrowthReveal {
    from { opacity: 0; transform: translateY(60px); filter: contrast(0.85); }
    to { opacity: 1; transform: translateY(0); filter: contrast(1); }
}
@keyframes enterpriseFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.enterprise-theme nav {
    opacity: 0;
    animation: enterpriseFadeUp 0.6s ease forwards !important;
    animation-delay: 0.1s !important;
}
.enterprise-theme .aigor-sector-nav {
    opacity: 0;
    animation: enterpriseFadeUp 0.6s ease forwards !important;
    animation-delay: 0.2s !important;
}
.enterprise-theme .aigor-hero h1 {
    opacity: 0;
    animation: enterpriseGrowthReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    animation-delay: 0.3s !important;
}
.enterprise-theme .aigor-hero p {
    opacity: 0;
    animation: enterpriseGrowthReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    animation-delay: 0.45s !important;
}
.enterprise-theme .hero-right {
    opacity: 0;
    animation: enterpriseGrowthReveal 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    animation-delay: 0.55s !important;
}
.enterprise-theme .aigor-capabilities,
.enterprise-theme section,
.enterprise-theme footer {
    opacity: 0;
    animation: enterpriseFadeUp 0.8s ease forwards !important;
    animation-delay: 0.75s !important;
}

@media (max-width: 768px) {
    .phone-frame {
        width: 290px !important;
        height: 580px !important;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 260px !important;
        height: 520px !important;
    }
}


