:root {
    --bg-gradient: radial-gradient(circle at top left, #1f2937, #020617 55%, #000000);
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --border-soft: rgba(148, 163, 184, 0.4);
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: #e5e7eb;
}

.page-wrap {
    padding-top: 4.5rem;
}

.glass-nav {
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
    border-bottom: 1px solid var(--border-soft);
}

.logo-pill {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: conic-gradient(from 180deg, #22c55e, #22d3ee, #6366f1, #22c55e);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

.hero-section {
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
}

.glass-panel {
    border-radius: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-soft);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.btn-accent {
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    border: none;
    color: #020617;
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
}

.btn-accent:hover {
    filter: brightness(1.05);
    color: #020617;
}

.text-accent {
    color: var(--accent);
}

.bg-success-soft {
    background-color: var(--accent-soft);
}

.feature-card {
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 1);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #22c55e, #0f172a);
    color: #e5e7eb;
    font-size: 1.1rem;
}

code {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.375rem;
    padding: 0.2rem 0.45rem;
}

pre {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.75rem;
    border: 1px solid rgba(30, 64, 175, 0.8);
    padding: 1rem 1.25rem;
}

/* Contact form (and any other forms) */
.form-control {
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #e5e7eb;
}

.form-control:focus {
    background: rgba(2, 6, 23, 0.45);
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.15);
    color: #e5e7eb;
}

.contact-form .form-label {
    font-weight: 600;
}

.contact-hero {
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(700px circle at 10% -10%, rgba(56, 189, 248, 0.25), transparent 50%),
        radial-gradient(550px circle at 90% 10%, rgba(34, 197, 94, 0.18), transparent 55%);
    pointer-events: none;
}

.contact-hero > * {
    position: relative;
    z-index: 1;
}

.contact-social-icons a {
    opacity: 0.92;
    transition: transform 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.contact-social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent);
}

/* About page */
.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(720px circle at 12% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(520px circle at 92% 8%, rgba(34, 197, 94, 0.14), transparent 50%);
    pointer-events: none;
}

.about-hero > * {
    position: relative;
    z-index: 1;
}

.about-quote {
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.55);
}

.about-card {
    transition: transform 0.18s ease-out, border-color 0.18s ease-out;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.75);
}

.about-list {
    padding-left: 1.1rem;
}

.about-list li {
    margin-bottom: 0.55rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Dashboard + AI chat layout */
.assistant-root {
    --panel-radius: 1.35rem;
}

.assistant-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.assistant-grid {
    display: grid;
    grid-template-columns: minmax(650px, 1.3fr) minmax(360px, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
    align-items: stretch;
}

.assistant-left {
    min-width: 750px;
    max-height: 600px;
    min-height: 600px;
    flex: 0 0 auto;
}

.dash-media-frame {
    width: 100%;
    height: 100%;
    border-radius: var(--panel-radius);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.35);
    position: relative;
}

.dash-splash {
    position: absolute;
    inset: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.20), transparent 50%),
        rgba(2, 6, 23, 0.40);
}

.splash-logo {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 14px 40px rgba(56, 189, 248, 0.12);
}

.splash-dot {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.45);
}

.dash-iframe-wrap,
.dash-iframe-wrap iframe {
    width: 100%;
    height: 100%;
}

.dash-iframe-wrap iframe {
    border: 0;
    display: block;
}

.assistant-right {
    min-height: 600px;
    max-height: 600px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assistant-right-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.chat-log {
    flex: 1;
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.22);
    padding: 1rem;
}

.chat-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.chat-row-user {
    justify-content: flex-end;
}

.chat-row-ai {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    word-break: break-word;
}

.chat-bubble-user {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.35);
}

.chat-bubble-ai {
    background: rgba(15, 23, 42, 0.65);
}

.assistant-bottom {
    grid-column: 1 / -1;
}

/* Expanded mode: hide chat + input, grow iframe */
.assistant-expanded .assistant-right,
.assistant-expanded .assistant-bottom {
    display: none !important;
}

.assistant-expanded .assistant-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.assistant-expanded .assistant-left {
    min-width: 0;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

@media (max-width: 980px) {
    .assistant-grid {
        grid-template-columns: 1fr;
    }
    .assistant-right {
        min-height: 500px;
    }
    .assistant-left {
        min-height: 650px;
    }
}


.dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(15, 23, 42, 0.9);

    padding: 0.4rem;
}

/* Dropdown items */
.dropdown-item {
    color: #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

/* Hover state */
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
}

/* Active state */
.dropdown-item.active,
.dropdown-item:active {
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent);
}

/* Divider */
.dropdown-divider {
    border-top: 1px solid var(--border-soft);
    opacity: 0.6;
}

.navbar .nav-link {
    color: rgba(229, 231, 235, 0.85) !important;
    font-weight: 500;
    transition: all 0.15s ease;
}

.navbar .nav-link:hover {
    color: var(--accent) !important;
}


/* Solutions page */
.solutions-hero {
    position: relative;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto 1.25rem auto;
}

.solutions-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(900px circle at 18% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(680px circle at 90% 20%, rgba(34, 197, 94, 0.16), transparent 55%);
    pointer-events: none;
}

.solutions-hero > * {
    position: relative;
    z-index: 1;
}

.solutions-intro p {
    line-height: 1.7;
}

.solutions-intro {
    max-width: 1100px;
    margin: 0 auto 1.25rem auto;
}

.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.solutions-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.45);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
    width: 100%;
}

.solutions-card-reverse {
    flex-direction: row-reverse;
}

.solutions-media {
    flex: 0 0 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.solutions-img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 1.1rem;
    background: rgba(2, 6, 23, 0.35);
    padding: 0.75rem;
}

.solutions-body {
    flex: 1;
}

@media (max-width: 980px) {
    .solutions-hero,
    .solutions-grid,
    .solutions-intro {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .solutions-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .solutions-card-reverse {
        flex-direction: column;
    }

    .solutions-media {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ===============================
   Resource Grid (Whitepapers, Reports, Blogs, etc.)
   =============================== */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Card */
.resource-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
    overflow: hidden;
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 1);
}

/* Thumbnail */
.resource-thumbnail {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.16), transparent 40%),
        rgba(2, 6, 23, 0.55);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem;
}

.resource-thumbnail img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Placeholder (no thumbnail) */
.resource-thumbnail-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 2rem;
}

/* Card Body */
.resource-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* Title */
.resource-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Description */
.resource-description {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Button alignment */
.resource-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Optional tag / label */
.resource-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 991px) {
    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-thumbnail {
        height: 220px;
    }
}