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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    /* Site layout tokens */
    /* Fixed top nav height (approx). Keep in sync with `.nav` sizing. */
    --site-header-h: 72px;
    --support-nav-w: 320px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Give 4-up pricing cards room on desktop without impacting smaller screens. */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #092145;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
    max-width: 100vw;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo span {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.nav-links-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    flex-wrap: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.nav-links a,
.dropdown-toggle {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-cta {
    background: var(--accent) !important;
    padding: 0.45rem 1.0rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    color: var(--text-white) !important;
}

/* Portal link: keep Contact as the only primary CTA */
.nav-portal {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    padding: 0.45rem 1.0rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.nav-portal:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    color: var(--text-white);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.dropdown-toggle::after {
    /* Use a unicode escape to avoid mojibake if the file is served with a bad charset. */
    content: "\25BE";
    font-size: 0.85em;
    opacity: 0.85;
    transform: translateY(-1px);
}

.dropdown-toggle:hover {
    color: var(--accent-light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #092145;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-active .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .nav-links-main,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        margin-left: 0;
    }

    .nav-links a,
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .dropdown-menu.dropdown-open {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .dropdown-menu a {
        padding: 1rem 2rem;
        text-align: center;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Video Demo Section */
.video-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.video-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 500px;
    overflow: hidden;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.3;
    transition: all 0.5s ease-in-out;
    transform: scale(0.8);
    filter: blur(3px);
}

.video-slide.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    z-index: 2;
}

.video-slide.prev {
    position: absolute;
    top: 0;
    left: -10%;
    opacity: 0.4;
    transform: scale(0.8);
    filter: blur(2px);
    z-index: 1;
}

.video-slide.next {
    position: absolute;
    top: 0;
    right: -10%;
    opacity: 0.4;
    transform: scale(0.8);
    filter: blur(2px);
    z-index: 1;
}


.video-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.video-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.video-info p {
    color: var(--text-light);
    margin: 0;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.video-control {
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.video-control:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
}

.video-content {
    text-align: center;
    width: 100%;
}

/* Supported Platforms Section - Compact Ecosystem Grid */
#supported-platforms {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

#supported-platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

#supported-platforms .section-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

#supported-platforms .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.platform-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Mixed-width layout for better balance */
.platform-category-grid .category-card:nth-child(7) {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .platform-category-grid .category-card:nth-child(7) {
        grid-column: span 1;
    }
}

.category-card {
    background: #e8edf3;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 0.5rem;
}

.category-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, #06b6d4, transparent);
}

.category-summary {
    color: #5a6c7d;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.platform-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.platform-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.platform-row:hover {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.platform-row-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.platform-row-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.05);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.platform-row:hover .platform-row-logo img {
    filter: brightness(1) contrast(1.1);
    opacity: 1;
    transform: scale(1.05);
}

.platform-row-content {
    flex-grow: 1;
}

.platform-row-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.platform-row-content p {
    color: #5a6c7d;
    line-height: 1.3;
    font-size: 0.75rem;
    margin: 0;
}

.platform-row-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.platform-row-tag {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    background: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.platform-disclaimer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.platform-disclaimer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive design for ecosystem grid */
@media (max-width: 1024px) {
    .platform-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .platform-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .platform-row {
        padding: 0.5rem 0;
        gap: 0.5rem;
    }
    
    .platform-row-logo {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 6px;
    }
    
    .platform-row-content h4 {
        font-size: 0.9rem;
    }
    
    .platform-row-content p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .platform-category-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .category-card {
        padding: 0.75rem;
    }
    
    .category-card h3 {
        font-size: 0.95rem;
    }
    
    .platform-row-logo {
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 5px;
    }
    
    .platform-row-content h4 {
        font-size: 0.85rem;
    }
    
    .platform-row-content p {
        font-size: 0.65rem;
    }
}

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

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-atc-image {
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.hero-form {
    background: #092145;
    padding: 1.6rem 1.75rem 1.75rem 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 350px;
    width: 100%;
}

.hero-form-subtitle {
    color: var(--text-white);
    opacity: 0.9;
    text-align: center;
    margin: 0 0 1.15rem 0;
    line-height: 1.55;
}

.hero-form-feature-list {
    margin: 0 0 1.15rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hero-form-feature-list .feature-item {
    color: var(--text-white);
    opacity: 0.92;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 1rem;
    line-height: 1.4;
    align-items: flex-start;
}

.hero-form-feature-list .feature-item.included i {
    color: var(--accent-light);
    margin-top: 0.2rem;
}

.hero-form-tagline {
    margin: 0 0 1.25rem 0;
    color: var(--text-white);
    opacity: 0.85;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.55;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Cloud Portal Section */
.cloud-portal-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.cloud-portal-subtitle {
    max-width: 42rem;
}

.cloud-portal-points {
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
}

.cloud-portal-points .feature-item {
    font-size: 1.05rem;
    line-height: 1.55;
    padding: 0.5rem 0;
}

.cloud-portal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cloud-portal-secondary {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cloud-portal-secondary:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.cloud-portal-shot {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(9, 33, 69, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .cloud-portal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cloud-portal-actions {
        justify-content: center;
    }

    .cloud-portal-shot {
        max-width: 680px;
        margin: 0 auto;
        display: block;
    }
}

.hero-form-title {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-form-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.hero-form-atc {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-white);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(15, 23, 42, 0.28);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--primary);
}

/* Keep hero secondary buttons high-contrast on dark hero background */
.hero .btn-secondary {
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

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

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.overview-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Principles Section */
.principle-statement {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin: 2rem 0 3rem;
}

.principles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.principle-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    min-width: 80px;
}

.principle-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.principle-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.capability-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.capability-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.capability-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.capability-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.arch-layer {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 4px var(--shadow);
}

.arch-layer-top {
    border-left-color: var(--accent);
}

.arch-layer-bottom {
    border-left-color: var(--primary);
}

.arch-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.arch-layer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.arch-interfaces {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arch-interface {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.features-grid .feature-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
}

.features-grid .feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.features-grid .feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Screenshots */
.features-screenshots,
.capabilities-screenshots,
.architecture-screenshots {
    margin-top: 3rem;
}

.screenshot-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.screenshot-container {
    text-align: center;
    overflow-x: hidden;
    width: 100%;
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.screenshot-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.9rem;
}

.hero-form .form-group label {
    color: var(--text-white);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
}

.form-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
}

.form-note small {
    color: #92400e;
    line-height: 1.5;
}

.form-note a {
    color: #b45309;
    text-decoration: underline;
}

/* AI Chat Button */
.ai-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #092145;
    color: var(--text-white);
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(9, 33, 69, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-chat-btn:hover {
    background: #0d2d5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(9, 33, 69, 0.5);
}

.ai-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.ai-text {
    font-size: 1.1rem;
    line-height: 1;
}

/* Resilience Section */
.resilience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resilience-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.resilience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow);
}

.resilience-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resilience-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.resilience-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Repair Engine Section */
.repair-workflow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.repair-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.repair-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
}

.repair-note p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

.repair-note strong {
    color: var(--accent);
}

/* Mobility Section */
.mobility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mobility-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow);
}

.mobility-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mobility-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.mobility-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.mobility-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mobility-detail-item {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.mobility-detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.mobility-detail-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Support Page Styles */
.support-hero {
    background: var(--primary);
    color: var(--text-white);
    padding: 4rem 0;
    text-align: center;
}

/* ------------------------------------------------------------
   Support Shell (Technician-Friendly Left Tree Navigation)
   Injected by /support/support-shell.js on all /support/** pages.
------------------------------------------------------------- */
body.support-shell-enabled .article-sidebar {
    display: none !important;
}

body.support-shell-enabled .article-content .container {
    display: block;
}

.support-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    gap: 0;
    min-height: calc(100vh - var(--site-header-h));
}

.support-shell-nav {
    position: sticky;
    top: var(--site-header-h);
    height: calc(100vh - var(--site-header-h));
    overflow: auto;
    background: #0b1f3c;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.55rem 0.9rem 1.1rem;
}

.support-shell-main {
    min-width: 0;
}

.support-nav-title {
    color: rgba(248, 250, 252, 0.92);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.support-nav-filter {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 250, 252, 0.92);
    outline: none;
}

.support-nav-filter::placeholder {
    color: rgba(248, 250, 252, 0.55);
}

.support-nav-tree {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.support-nav-cat {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.support-nav-cat-head {
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(248, 250, 252, 0.92);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    padding: 0.85rem 0.85rem;
    cursor: pointer;
    text-align: left;
    align-items: center;
}

.support-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.18);
    color: rgba(248, 250, 252, 0.92);
}

.support-nav-cat-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.support-nav-caret {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid rgba(248, 250, 252, 0.70);
    border-bottom: 2px solid rgba(248, 250, 252, 0.70);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.support-nav-cat.is-open .support-nav-caret {
    transform: rotate(45deg);
}

.support-nav-cat-list {
    display: none;
    padding: 0.1rem 0.65rem 0.85rem;
}

.support-nav-cat.is-open .support-nav-cat-list {
    display: block;
}

.support-nav-article {
    display: block;
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    color: rgba(248, 250, 252, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: background 0.12s ease, color 0.12s ease;
}

.support-nav-article:hover {
    background: rgba(59, 130, 246, 0.12);
    color: rgba(248, 250, 252, 0.95);
}

.support-nav-article.is-active {
    background: rgba(59, 130, 246, 0.22);
    color: rgba(248, 250, 252, 0.98);
    font-weight: 700;
}

.support-nav-toc {
    margin: 0.5rem 0 0.25rem;
    padding: 0.6rem 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.support-nav-toc-title {
    color: rgba(248, 250, 252, 0.80);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
}

.support-nav-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.support-nav-toc-list a {
    color: rgba(248, 250, 252, 0.74);
    text-decoration: none;
    font-size: 0.86rem;
}

.support-nav-toc-list a:hover {
    color: rgba(248, 250, 252, 0.95);
}

.support-nav-toc-list .toc-sub a {
    padding-left: 0.85rem;
    opacity: 0.9;
}

.support-drawer-toggle {
    display: none;
    position: sticky;
    top: 84px;
    z-index: 20;
    margin: 0.75rem 0 0 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.85);
    color: rgba(248, 250, 252, 0.95);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.support-drawer-overlay {
    display: none;
}

/* Temporary: visible marker to confirm shell is active (remove later). */
.support-shell-debug {
    display: none;
    margin: 0.75rem 1rem 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    color: rgba(15, 23, 42, 0.85);
    font-weight: 700;
}
body.support-shell-enabled .support-shell-debug {
    display: block;
}

@media (max-width: 980px) {
    .support-shell {
        grid-template-columns: 1fr;
    }

    .support-shell-nav {
        position: fixed;
        left: 0;
        top: var(--site-header-h);
        height: calc(100vh - var(--site-header-h));
        width: min(86vw, 360px);
        z-index: 2000;
        transform: translateX(-105%);
        transition: transform 0.18s ease;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
        padding-top: 0.55rem;
    }

    body.support-drawer-open .support-shell-nav {
        transform: translateX(0);
    }

    .support-drawer-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .support-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1990;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    body.support-drawer-open .support-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Desktop: keep the nav fixed with its own scroll area. */
@media (min-width: 981px) {
    .support-shell {
        /* Nav is fixed, so the grid only needs to lay out the main column. */
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .support-shell-nav {
        position: fixed;
        top: var(--site-header-h);
        left: 0;
        width: var(--support-nav-w);
        height: calc(100vh - var(--site-header-h));
        overflow: auto;
        z-index: 900;
    }

    .support-shell-main {
        margin-left: var(--support-nav-w);
    }
}

/* Support v2 tweaks */
body[data-support-v2="1"] .search-bar {
    gap: 0.75rem;
}

body[data-support-v2="1"] .search-input {
    border-radius: 12px;
}

body[data-support-v2="1"] .search-button {
    border-radius: 12px;
}

body[data-support-v2="1"] .category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.12);
    color: rgba(15, 23, 42, 0.92);
}

.support-search-card .article-preview {
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(148, 163, 184, 0.18));
}

.support-search-card .article-placeholder {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(15, 23, 42, 0.75);
}

.support-no-results {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    color: var(--text-light);
}

.support-article-lede {
    margin-top: 0.75rem;
    max-width: 70ch;
    color: rgba(248, 250, 252, 0.86);
    font-size: 1.05rem;
}

.support-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.75rem;
    align-items: start;
}

@media (max-width: 980px) {
    .support-article-layout {
        grid-template-columns: 1fr;
    }
}

.support-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.support-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.search-button {
    background: var(--accent);
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: var(--accent-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow);
}

.article-preview {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.article-info {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--accent);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.article-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.article-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Article Page Styles */
.article-header {
    background: var(--primary);
    color: var(--text-white);
    padding: 3rem 0;
    margin-top: 60px;
}

.breadcrumb {
    color: var(--text-white);
    text-decoration: none;
    opacity: 0.8;
    display: inline-block;
    margin-bottom: 1rem;
}

.breadcrumb:hover {
    opacity: 1;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.breadcrumb-separator {
    color: var(--text-white);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-white);
    opacity: 0.7;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-meta {
    opacity: 0.8;
    font-size: 1rem;
}

.article-content {
    padding: 3rem 0;
}

.article-content .container {
    display: flex;
    gap: 2rem;
}

.article-body {
    flex: 1;
    max-width: 800px;
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.article-body p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.article-image-container {
    margin: 2rem 0;
}

.article-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
}

.article-image-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.toc-list, .related-list {
    list-style: none;
    padding: 0;
}

.toc-list li, .related-list li {
    margin-bottom: 0.5rem;
}

.toc-list a, .related-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a:hover, .related-list a:hover {
    color: var(--accent);
}

/* Terminal-style code blocks */
.article-body pre {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #333;
    position: relative;
    color: #4ade80;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.article-body code {
    background: #1a1a2e;
    color: #4ade80;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-body pre code {
    background: transparent;
    padding: 0;
    color: #4ade80;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.support-note pre {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid #333;
    color: #4ade80;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.support-note pre code {
    background: transparent;
    padding: 0;
    color: #4ade80;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #444;
}

.copy-button.copied {
    background: #00ff00;
    color: #1a1a2e;
    border-color: #00ff00;
}

/* Workload Tags */
.workload-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-widget-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s;
}

.chat-widget-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-light);
}

.chat-widget-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 450px;
    height: 550px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget-window.open {
    display: flex;
}

.chat-widget-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-header h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.chat-widget-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f5f5f5;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background: var(--accent);
    color: white;
    margin-left: auto;
}

.chat-message.ai {
    background: white;
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.chat-widget-input {
    padding: 1rem;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 0.5rem;
}

.chat-widget-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.chat-widget-input button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.chat-widget-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.chat-widget-loading {
    display: none;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.chat-widget-loading.active {
    display: block;
}

/* Responsive chat widget for mobile */
@media (max-width: 768px) {
    .chat-widget-window {
        position: fixed;
        width: 95%;
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 80px;
    }
    
    .chat-widget-window.keyboard-open {
        bottom: 20px;
    }
}

.workload-tag {
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px var(--shadow);
    color: var(--text-dark);
}

/* Evaluation Section */
.contact-info-centered {
    text-align: center;
    margin-top: 2rem;
}

.contact-email {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.why-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.why-problem h3 {
    color: #dc2626;
}

.why-solution h3 {
    color: #16a34a;
}

.why-list {
    list-style: none;
}

.why-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.why-matters-list {
    list-style: none;
    padding: 1rem 0;
}

.why-matters-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.why-matters-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Who Grid */
.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.who-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
}

.who-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.who-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.who-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Different Comparison - Card Grid Layout */
#how-different .section-subtitle {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Positioning Section */
.positioning-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
}

.positioning-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.positioning-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.positioning-text {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: #092145;
    color: var(--text-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-developer {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        width: 100%;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-atc-image {
        display: none;
    }

    .article-content .container {
        flex-direction: column;
    }

    .article-sidebar {
        display: none;
    }

    .article-body {
        max-width: 100%;
    }

    .logo-img {
        height: 30px;
        max-width: 100px;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .screenshot-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .screenshot {
        max-width: 100%;
    }

    .screenshot-container {
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-cta {
        background: var(--accent) !important;
        padding: 0.75rem 2rem !important;
    }

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

    .principle-item {
        flex-direction: column;
        text-align: center;
    }

    .principle-number {
        min-width: auto;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .different-comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Pricing Section Styles */
.pricing-toggle {
    text-align: center;
    margin: 3rem 0;
}

.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.toggle-label {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.discount-badge {
    background: var(--accent);
    color: var(--text-white);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Desktop: keep all 4 plans side-by-side (auto-fit min widths won't fit 4 cards in a 1200px container). */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.25rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.pricing-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.pricing-features {
    margin-bottom: 2rem;
}

.feature-group {
    margin-bottom: 2rem;
}

.feature-group h4 {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-item.included i {
    color: var(--accent);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.feature-item.excluded i {
    color: var(--text-light);
    margin-right: 0.75rem;
    font-size: 1rem;
    opacity: 0.5;
}

.pricing-footer {
    text-align: center;
}

.pricing-note {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Comparison Table Styles */
.comparison-section {
    margin: 4rem 0;
}

.comparison-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.comparison-header .feature-name {
    text-align: left;
}

.comparison-header .plan-column.featured {
    background: transparent;
    color: var(--text-dark);
    border: none;
    border-radius: 0;
    margin: 0;
}

.comparison-category {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-header {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row .feature-name {
    color: var(--text-dark);
    font-weight: 500;
}

.comparison-row .plan-column {
    text-align: center;
    color: var(--text-dark);
    font-weight: 500;
}

/* Keep checkmarks and short values centered in their grid cells. */
.comparison-header .plan-column,
.comparison-row .plan-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
}

.comparison-header .feature-name,
.comparison-row .feature-name {
    display: block;
    text-align: left;
}

.comparison-row .plan-column.featured {
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    border-radius: 0;
    margin: 0;
}

.text-green {
    color: #10b981 !important;
}

.text-red {
    color: #ef4444 !important;
}

/* Continuous PLUS column outline */
.comparison-table {
    position: relative;
}

/* Ensure the outline sits behind the table content. */
.comparison-table > * {
    position: relative;
    z-index: 1;
}

/* Keep comparison-table featured column visually neutral (no boxed treatment). */

/* FAQ Section Styles */
.faq-section {
    margin: 4rem 0;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section Styles */
.pricing-cta {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.pricing-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.pricing-cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Responsive Pricing Styles */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    /* Hide comparison table on mobile and show alternative */
    .comparison-table {
        display: none;
    }
    
    /* Show mobile-friendly comparison */
    .comparison-section::after {
        content: 'View on desktop for detailed comparison';
        display: block;
        text-align: center;
        color: var(--text-light);
        padding: 2rem;
        font-style: italic;
    }
    
    .comparison-table::after {
        display: none;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-title {
        font-size: 1.2rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .comparison-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}
