/**
 * Digiladder Core Stylesheet
 * Incorporates a premium light theme layout with high-contrast obsidian dark sections.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;600;700&display=swap');

/* 1. Global Reset & Box Model */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--bg-dark); /* Logo Navy Blue */
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Utility Layout Classes */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

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

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--text-light);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.flex-center {
    justify-content: center;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* 3. Core Component Styles */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--border-dark);
}

.btn-dark:hover {
    background-color: #111827;
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(62, 142, 65, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(62, 142, 65, 0.15);
}

.badge-dark {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(62, 142, 65, 0.25);
}

.card-dark {
    background-color: var(--bg-dark-card);
    border-color: var(--border-dark);
    color: var(--text-light);
}

.card-dark:hover {
    border-color: rgba(62, 142, 65, 0.3);
    box-shadow: var(--shadow-glass-dark);
}

/* 4. Sticky Header Navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.header-nav.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.header-nav.scrolled-dark {
    background-color: var(--bg-dark-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: var(--shadow-glass-dark);
}

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

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Light/Dark Toggle within Navigation (for premium sections) */
.header-nav.scrolled .nav-link {
    color: var(--text-primary);
}

.header-nav.scrolled .nav-link:hover {
    color: var(--primary);
}

.header-nav.dark-mode:not(.scrolled) .nav-link {
    color: var(--text-light-muted);
}

.header-nav.dark-mode:not(.scrolled) .nav-link:hover {
    color: var(--accent);
}

/* Mobile Menu Button */
.mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.header-nav.dark-mode .mobile-toggle span {
    background-color: var(--text-light);
}

/* Mobile dropdown */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-xl);
    padding: 6rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
    transition: var(--transition-smooth);
}

.mobile-nav.open {
    right: 0;
}

/* 5. Home Page Sections */

/* Premium Hero Section */
.hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Blueprint lines and grid */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-headline {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

@media (min-width: 992px) {
    .hero-headline {
        font-size: 4rem;
    }
}

.hero-subheading {
    font-size: 1.2rem;
    color: var(--text-light-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 550px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
}

/* CAD 3D Animation Container */
.hero-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cad-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

.cad-canvas-container:active {
    cursor: grabbing;
}

/* floating card animations */
.floating-card {
    position: absolute;
    background: rgba(20, 31, 54, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-glass-dark);
    animation: floating 4s ease-in-out infinite;
}

.floating-card-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scrolling Logos Section */
.marquee-title {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-item {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-muted);
    opacity: 0.5;
    display: flex;
    align-items: center;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Two Product Cards Styling */
.product-split-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-features-list {
    list-style: none;
    margin: 2rem 0;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.product-features-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

.product-card-preview {
    margin-top: 1.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    height: 160px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.product-card-preview canvas, .product-card-preview svg {
    width: 100%;
    height: 100%;
}

/* Why Offline Section (Animation timeline grid) */
.flow-diagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 12px;
    position: relative;
}

.flow-step {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    text-align: center;
    width: 180px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: var(--transition-smooth);
}

.flow-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--accent);
}

.flow-step.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background-color: #f0fdfa;
}

/* Interactive Capability Map */
.capability-network-container {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.capability-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.capability-nodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .capability-nodes {
        grid-template-columns: repeat(4, 1fr);
    }
}

.capability-node {
    background: rgba(20, 31, 54, 0.8);
    border: 1px solid var(--border-dark);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.capability-node:hover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-3px);
}

.capability-node h4 {
    margin-top: 0.5rem;
    font-size: 1rem;
}

.capability-details-box {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

/* Secure section & comparison animations */
.comparison-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-family: var(--font-title);
    font-weight: 600;
}

.comparison-table td {
    font-size: 0.95rem;
}

.comparison-table tr:hover {
    background-color: rgba(15, 23, 42, 0.01);
}

.comparison-digiladder {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(8, 145, 178, 0.03);
}

/* Product Timeline */
.timeline-horizontal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .timeline-horizontal {
        flex-direction: row;
        justify-content: space-between;
    }
}

.timeline-step {
    flex: 1;
    position: relative;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.timeline-step::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    display: none;
}

@media (min-width: 768px) {
    .timeline-step::after {
        display: block;
    }
    .timeline-step:last-child::after {
        display: none;
    }
}

.timeline-number {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.25;
    margin-bottom: 0.5rem;
}

/* Interactive SVG Shield */
.shield-svg-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem auto;
}

/* Testimonials / Case Studies */
.testimonial-card {
    border-left: 4px solid var(--primary);
}

.testimonial-kpis {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.kpi-item {
    text-align: left;
}

.kpi-val {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.kpi-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid + .invalid-feedback {
    display: block;
}

/* Alert Notification states */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

/* Footer layout */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer h3, .footer h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* Technology and timeline layouts */
.timeline-block {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.timeline-block::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--bg-primary);
}

.timeline-date {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Trust builder bar */
.trust-banner {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
    overflow: hidden;
}

.trust-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.trust-item {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.trust-item::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
}

/* ======================================
   PHASE 1 ADDITIONS
   ====================================== */

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    z-index: 999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}

.sticky-cta.visible {
    bottom: 0;
}

.sticky-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sticky-cta-text {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .sticky-cta-text {
        display: none;
    }
    .sticky-cta-inner {
        justify-content: center;
    }
}

/* Animated Number Counter */
.counter-value {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
}

.counter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Hero Radial Glow */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Gradient Movement Background */
.gradient-bg {
    background: linear-gradient(-45deg, #0c1e3a, #132d52, #0e7490, #1e3a8a);
    background-size: 400% 400%;
    animation: gradient-shift 12s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Inter-section CTA Divider */
.section-cta-divider {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.section-cta-divider p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float.shifted-up {
    bottom: 80px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    fill: #ffffff;
    width: 28px;
    height: 28px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-light-muted);
    padding: 1rem 1.5rem;
    z-index: 9999;
    display: none;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-dark);
}

.cookie-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background-color: var(--bg-primary);
}

.faq-question::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--primary);
    transition: var(--transition-smooth);
    font-weight: 300;
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Logo Image in Header */
.logo-img {
    height: 40px;
    width: auto;
}

/* Hero Section Styling */
.hero {
    position: relative;
    background-color: #0B0F19; /* High-end Obsidian Slate */
    color: #f8fafc;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: calc(var(--header-height, 80px) + 2rem);
}

.hero-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(62, 142, 65, 0.2) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subheading {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 90%;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
    perspective: 1000px;
}

.cad-canvas-container {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.floating-card {
    position: absolute;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: monospace;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 20%;
    left: -5%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.was-validated .form-control:invalid {
    border-color: var(--danger);
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-control:valid {
    border-color: var(--success);
}

/* ==========================================================================
   Global Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Typography Scaling */
    .hero-headline {
        font-size: 2.2rem !important;
    }
    .hero-subheading {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    
    /* 2. Spacing and Padding */
    .section {
        padding: 3rem 0 !important;
    }
    .grid {
        gap: 1.25rem !important;
    }
    
    /* 3. Hero Adjustments */
    .hero {
        padding: 6rem 0 3rem 0 !important;
    }
    .hero-visual {
        height: 250px !important;
    }
    .hero-badges {
        margin-top: 1.5rem !important;
    }
    
    /* 4. Interactive Components */
    .capability-network-container {
        padding: 1.5rem !important;
        min-height: 350px !important;
    }
    
    .trust-flex {
        gap: 1rem !important;
        flex-direction: column;
        align-items: center;
    }
    .trust-item {
        font-size: 0.9rem !important;
    }
    
    /* 5. Product split cards */
    .product-split-card {
        padding: 1.5rem !important;
    }
    .product-split-card > div {
        padding: 1.5rem !important;
    }
}


