:root {
    --primary-color: #7c3aed;
    --secondary-color: #5b50ce;
    --background-start: #1d346b;
    --background-end: #504da3;
    --text-light: #eef2ff;
    --text-muted: #c7d2fe;
    --surface: rgba(20, 64, 167, 0.92);
    --surface-soft: rgba(99, 102, 241, 0.12);
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), transparent 30%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 28%),
                linear-gradient(180deg, var(--background-start), var(--background-end));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(55, 48, 163, 0.08));
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    background: #3f3fe6;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.2s, background 0.2s;
}

.nav-btn:hover {
    transform: translateY(-1px);
}

.nav-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.login-cta {
    background: #ffffff;
    color: var(--secondary-color);
}

.nav-badge,
.chat-badge {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.8rem;
    font-weight: 700;
}

main {
    width: min(1180px, 92%);
    margin: 0 auto 80px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 32px;
    align-items: center;
    padding: 80px 0 60px;
}

.hero-copy {
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.16);
    color: #e9d5ff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 24px;
}

.hero-copy h1 {
    font-size: clamp(3rem, 4.5vw, 4.6rem);
    line-height: 1.02;
    margin: 0 0 24px;
}

.hero-copy p {
    max-width: 640px;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-primary,
.btn-secondary,
.hero-chat-btn {
    border-radius: 999px;
    padding: 16px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.22);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.18);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-pill {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
}

.hero-panel {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    min-height: 420px;
    padding: 32px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.subtitle {
    color: var(--text-muted);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
}

.hero-card h2 {
    margin: 0;
    font-size: 1.75rem;
}

.hero-status {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgb(247, 102, 102);
    color: #c7d2fe;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-card-copy {
    line-height: 1.75;
    color: var(--text-muted);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 22px;
    min-height: 110px;
}

.hero-stat-card strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.hero-stat-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.user-panel {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: grid;
    gap: 16px;
}

.user-welcome {
    color: var(--text-muted);
}

.hero-chat-btn {
    background: rgba(99, 102, 241, 0.16);
    color: var(--text-light);
    justify-content: space-between;
}

.hero-chat-btn:hover {
    background: rgba(99, 102, 241, 0.24);
}

.feature-grid,
.workflow-section {
    margin-top: 40px;
}

.section-head {
    max-width: 720px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.section-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 28px;
    min-height: 220px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124,58,237,0.4);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.workflow-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 26px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.workflow-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.workflow-step {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.18);
    color: #e9d5ff;
    font-weight: 700;
    margin-bottom: 18px;
}

.workflow-card h4 {
    margin: 0 0 10px;
}

.workflow-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-panel,
    .hero-copy {
        align-items: center;
    }

    .hero-stats-grid,
    .feature-cards,
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 18px 5%;
        flex-direction: column;
        gap: 18px;
    }

    .nav-links {
        justify-content: center;
    }

    .hero-copy h1 {
        font-size: 2.8rem;
    }
}

/* Container Alignment */
.pillars-section {
    padding: 80px 20px;
    background: transparent; /* Seamlessly inherits your existing main app gradient background */
}

.pillars-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Typography Headers */
.pillars-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.pillars-section .section-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    background-color: var(--primary-color);
    border-radius: 100px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.pillars-section .section-header h2 {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 700;
    margin: 0 0 12px 0;
}

.pillars-section .section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Grid Mechanics */
.pillars-layout-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default mobile layout stack */
    gap: 24px;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
    .pillars-layout-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablets */
    }
}

@media (min-width: 1024px) {
    .pillars-layout-grid {
        grid-template-columns: repeat(4, 1fr); /* Desktop Viewports */
    }
}

/* Block Element Styles & Dynamic Interactivity */
.pillar-block {
    background-color: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(199, 210, 254, 0.15); /* Soft transparent border accent */
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow);
}

.pillar-block:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
}

/* Icon Decorative Containers */
.block-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.25rem;
    margin-bottom: 20px;
    background-color: var(--surface-soft);
    border: 1px solid rgba(91, 80, 206, 0.3);
}

/* Card Content Typography */
.pillar-block h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    margin: 0 0 10px 0;
}

.pillar-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Core Structural Layout Base */
.main-footer {
    background-color: var(--surface);
    border-top: 1px solid rgba(199, 210, 254, 0.15); /* Translucent text-muted boundary border line */
    padding: 60px 20px 0 20px;
    font-family: system-ui, -apple-system, sans-serif;
    box-shadow: var(--shadow);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Default mobile single vertical grid trace */
    gap: 40px;
    padding-bottom: 40px;
}

/* Responsive Grid Breakpoints */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* Tablet layout configuration */
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 2fr; /* Balanced desktop proportions grid tracks */
    }
}

/* Column 1: Brand Header & Bio Metrics */
.footer-brand-column .footer-logo {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.footer-brand-column .footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Live Operational Tracking Badge */
.footer-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-soft);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Healthy system emerald indicator light */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: operationalPulse 2s infinite;
}

/* Navigation & Policy Link Columns Layout */
.footer-links-column h4,
.footer-contact-column h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    position: relative;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li {
    margin-bottom: 12px;
}

.footer-links-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links-column ul li a:hover {
    color: var(--text-light);
    transform: translateX(4px); /* Minor shifting interactive element */
}

/* Column 4: Detailed Contact / Support Grid items */
.footer-contact-column .contact-info-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.contact-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-meta-list li {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.contact-meta-list .contact-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Lower Copyright Bar Execution Rules */
.footer-bottom-bar {
    border-top: 1px solid rgba(199, 210, 254, 0.08);
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .footer-bottom-container {
        flex-direction: row; /* Converts back to flat alignment rows on larger views */
    }
}

.footer-bottom-container p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-container .compliance-text {
    opacity: 0.65;
    font-style: italic;
}

/* Keyframe tracking for system status dot */
@keyframes operationalPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}