:root {
    --bs-font-sans-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sc-bg-light: #f8fafc;
    --sc-bg-gradient: radial-gradient(circle at 80% 15%, #dbeafe 0%, #e0f2fe 35%, #f0f7ff 65%, #f8fafc 100%);
    --sc-primary-blue: #0284c7;
    --sc-primary-dark: #0369a1;
    --sc-primary-cyan: #00f2fe;
    --sc-text-main: #0f172a;
    --sc-text-muted: #475569;
    --sc-card-bg: #ffffff;
    --sc-card-border: #e2e8f0;
    --sc-glow: rgba(2, 132, 199, 0.25);
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--sc-bg-light);
    color: var(--sc-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* ================== NAVBAR STYLES (COOL BLUE LIGHT) ================== */
.sund-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding: 0.9rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.brand-logo-3d-wrapper {
    perspective: 800px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-3d {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(2, 132, 199, 0.35));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.brand-logo-3d:hover {
    transform: rotateY(22deg) rotateX(12deg) scale(1.12);
    filter: drop-shadow(0 8px 18px rgba(2, 132, 199, 0.5));
}

.nav-glass-pill {
    background: rgba(240, 249, 255, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #bae6fd;
    border-radius: 50rem;
    padding: 0.35rem 1.25rem;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.05);
}

.nav-glass-pill .nav-link {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    transition: color 0.2s ease;
}

.nav-glass-pill .nav-link:hover,
.nav-glass-pill .nav-link.active {
    color: #0284c7;
}

/* ================== HERO SECTION (COOL BLUE LIGHT) ================== */
.hero-wrapper {
    position: relative;
    background: var(--sc-bg-gradient);
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 0 2.5rem 0;
    overflow: hidden;
}

.hero-glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(186, 230, 253, 0.15) 50%, transparent 70%);
    top: 5%;
    right: 5%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.hero-title .text-accent-blue {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: #475569;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 2.2rem;
}

/* ================== BUTTONS ================== */
.btn-sund-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50rem;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-sund-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

.btn-sund-white {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50rem;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

.btn-sund-white:hover {
    background: #f8fafc;
    color: #0284c7;
    border-color: #bae6fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
}

.btn-sund-glass {
    background: rgba(224, 242, 254, 0.65);
    color: #0369a1;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50rem;
    border: 1px solid #bae6fd;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.btn-sund-glass:hover {
    background: rgba(186, 230, 253, 0.9);
    color: #0284c7;
    border-color: #7dd3fc;
    transform: translateY(-2px);
}

/* ================== 3D VISUAL & FLOATING CAPSULE ================== */
.hero-3d-container {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#canvas3d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.floating-3d-capsule {
    position: absolute;
    bottom: 22%;
    left: 8%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid #bae6fd;
    border-radius: 50rem;
    padding: 0.85rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15), 0 0 20px rgba(56, 189, 248, 0.2);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 5;
    animation: floatingPill 4s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
    cursor: pointer;
}

@keyframes floatingPill {
    0% {
        transform: translateY(0px) rotate(-1deg);
    }
    100% {
        transform: translateY(-10px) rotate(1.5deg);
    }
}

.capsule-3d-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));
}

.login-3d-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(2, 132, 199, 0.35));
    animation: logoFloat3d 3.5s ease-in-out infinite alternate;
}

@keyframes logoFloat3d {
    0% {
        transform: translateY(0px) rotateY(-8deg);
    }
    100% {
        transform: translateY(-8px) rotateY(12deg);
    }
}

/* ================== 3 BOTTOM HERO CARDS (COOL BLUE LIGHT) ================== */
.hero-bottom-cards {
    margin-top: 2rem;
    z-index: 3;
    position: relative;
}

.ref-card {
    border-radius: 1.5rem;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ref-card:hover {
    transform: translateY(-6px);
}

/* Card 1: Custom Apps (Crisp Clean White Card) */
.ref-card-dark {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

.ref-card-dark:hover {
    border-color: #bae6fd;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
}

/* Card 2: System Integration (Luminous Soft Cyan Gradient) */
.ref-card-cyan {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    color: #0369a1;
    border: 1px solid #7dd3fc;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.22);
}

.ref-card-cyan:hover {
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.35);
}

/* Card 3: Support & Maintenance (Ice-Blue Glass Card) */
.ref-card-light {
    background: #f0f9ff;
    color: #0f172a;
    border: 1px solid #bae6fd;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.07);
}

.ref-card-light:hover {
    border-color: #7dd3fc;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.14);
}

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

.ref-card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.ref-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ref-card-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ================== LIGHT SECTIONS & CARDS ================== */
.light-section {
    background: #f8fafc;
    padding: 5rem 0;
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.glass-card:hover {
    border-color: #bae6fd;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.1);
}

/* Dark contrast for developer / AI console */
.ai-console-card {
    background: #0f172a;
    color: #f1f5f9;
    font-family: 'Consolas', 'Courier New', monospace;
    border-radius: 1.25rem;
    border: 1px solid #334155;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
}

.ai-console-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.ai-console-title {
    color: #38bdf8 !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

.ai-console-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.4);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-box-log {
    max-height: 380px;
    min-height: 220px;
    overflow-y: auto;
    background: #020617;
    border-radius: 0.85rem;
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.ai-console-comment {
    color: #94a3b8 !important;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ai-console-example {
    color: #7dd3fc !important;
    background: rgba(14, 165, 233, 0.1);
    border-left: 3px solid #0284c7;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
}

.ai-console-user-msg {
    color: #fde047 !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.ai-console-bot-msg {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
}

.ai-console-bot-msg strong.bot-title {
    color: #38bdf8;
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Consolas', monospace;
    font-size: 0.88rem;
}

.ai-console-loading {
    color: #67e8f9 !important;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.ai-console-error {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.ai-console-input {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #475569 !important;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    padding: 0.65rem 1rem;
}

.ai-console-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.ai-console-input:focus {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25) !important;
}

.badge-status-online {
    background-color: #10b981;
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 8px #10b981;
}

.spin {
    animation: spinAnimation 1.2s linear infinite;
    display: inline-block;
}

@keyframes spinAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

