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

/* Premium Segmented Control (Auto/Light/Dark) */
.theme-control {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(148,163,184,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 6px 18px rgba(3, 7, 18, 0.35);
}
.theme-control .theme-option {
    position: relative;
    z-index: 1;
    appearance: none;
    background: transparent;
    color: #e6efff;
    border: 0;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
}
.theme-control .theme-option[aria-pressed="true"] { color: #0b1324; }
.theme-control .theme-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 2);
    height: calc(100% - 8px);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,248,255,0.9));
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.25);
    transition: transform .25s ease;
}
.theme-control[data-index="0"] .theme-indicator { transform: translateX(0%); }
.theme-control[data-index="1"] .theme-indicator { transform: translateX(100%); }

.theme-light .theme-control {
    background: rgba(15,23,42,0.06);
    border-color: rgba(15,23,42,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 18px rgba(2, 6, 23, 0.08);
}
.theme-light .theme-control .theme-option { color: #213044; }
.theme-light .theme-control .theme-option[aria-pressed="true"] { color: #0b1324; }
.theme-light .theme-control .theme-indicator {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .theme-control .theme-indicator { transition: none !important; }
}

/* ========== Theming (Light/Dark) ========== */
/* Default is dark via existing styles. Light mode overrides below. */

/* Toggle control */
.theme-toggle {
    appearance: none;
    background: rgba(255,255,255,0.08);
    color: #e6efff;
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 12px;
    padding: 0.4rem 0.65rem;
    margin-left: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle[aria-pressed="true"] { background: rgba(79,172,254,0.18); }

/* Light theme */
.theme-light {
    color-scheme: light;
}

.theme-light body,
.theme-light html {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    color: #0b1324;
}

.theme-light .container {
    background: transparent;
}

.theme-light header.site-header {
    background: rgba(255,255,255,0.85);
    border-bottom-color: rgba(15,23,42,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(2,6,23,0.06);
}

.theme-light nav.primary-nav a { color: #334155; }
.theme-light nav.primary-nav a:hover {
    color: #0b1324;
    background: rgba(2,6,23,0.06);
}

/* Light mode: make Client Login (.nav-dropbtn) match other nav links */
/* Use higher specificity so this overrides later generic .nav-dropbtn:hover rules */
.theme-light header.site-header .nav-dropbtn { color: #334155; }
.theme-light header.site-header .nav-dropbtn:hover,
.theme-light header.site-header .nav-dropbtn[aria-expanded="true"],
.theme-light header.site-header .nav-dropbtn:focus-visible {
    color: #0b1324;
    background: rgba(2,6,23,0.06);
}
.theme-light nav.primary-nav a[aria-current="page"] {
    color: #0b1324;
    background: rgba(79,172,254,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.theme-light .nav-cta {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #071018;
    box-shadow: 0 8px 18px rgba(79,172,254,0.24);
}

/* Light mode: dropdown panel and links */
.theme-light .nav-dropdown-menu {
    background: #ffffff;
    border-color: rgba(2,6,23,0.08);
    box-shadow: 0 16px 40px rgba(2,6,23,0.10);
}
.theme-light .nav-dropdown-menu a {
    color: #0b1324;
}
.theme-light .nav-dropdown-menu a:hover {
    background: rgba(2,6,23,0.06);
    color: #0b1324;
}

/* Theme control sizing and spacing in header */
.nav-theme-item { margin-left: 0.5rem; }
header.site-header .theme-control {
    font-size: 0.85rem;
    padding: 3px;
}
header.site-header .theme-control .theme-option {
    padding: 6px 9px;
}
header.site-header .theme-control .theme-indicator {
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc((100% - 6px) / 2);
}

.theme-light .main-title { color: #0b1324; }
.theme-light .subtitle { color: #475569; }

.theme-light .industry-card,
.theme-light .highlight,
.theme-light .cta-card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(15,23,42,0.08);
    box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}

.theme-light .industry-card:hover {
    border-color: rgba(79,172,254,0.45);
    box-shadow: 0 18px 38px rgba(79,172,254,0.12);
}

.theme-light .highlight p { color: #213044; }

/* CTA readability in light mode */
.theme-light .cta-card h3 { color: #0b1324; text-shadow: none; }
.theme-light .cta-card p { color: #334155; }
.theme-light .cta-help { color: #475569; }
.theme-light .cta-help a { color: #334155; }
.theme-light .cta-button {
    color: #0a0a0f;
    box-shadow: 0 14px 30px rgba(79,172,254,0.25);
    border: 1px solid rgba(2,6,23,0.06);
}

.theme-light footer.site-footer {
    background: rgba(255,255,255,0.7);
    border-top-color: rgba(15,23,42,0.08);
    color: #0b1324;
}

.theme-light .footer-links a { color: #213044; }
.theme-light .footer-links a:hover { color: #0b1324; }

.theme-light input,
.theme-light textarea,
.theme-light select {
    background: rgba(255,255,255,0.95) !important;
    color: #0b1324 !important;
    border-color: rgba(15,23,42,0.12) !important;
}

.theme-light .theme-toggle {
    background: rgba(15,23,42,0.06);
    color: #0b1324;
    border-color: rgba(15,23,42,0.12);
}

.theme-light .background-elements { opacity: 0.6; }
.theme-light .gradient-orb { opacity: 0.18; }

/* Premium Toggle Pill */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    padding: 0 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 999px;
    color: #e6efff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 6px 18px rgba(3, 7, 18, 0.35);
}
.theme-toggle .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .25s ease, color .25s ease;
    opacity: .75;
}
.theme-toggle .icon.sun { left: 10px; }
.theme-toggle .icon.moon { right: 10px; }
.theme-toggle .knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,248,255,0.8));
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.35);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

/* State: aria-pressed=false => dark; true => light */
.theme-toggle[aria-pressed="false"] .icon.moon { opacity: 1; }
.theme-toggle[aria-pressed="false"] .icon.sun { opacity: .4; }
.theme-toggle[aria-pressed="true"] .icon.sun { opacity: 1; }
.theme-toggle[aria-pressed="true"] .icon.moon { opacity: .4; }
.theme-toggle[aria-pressed="true"] .knob { transform: translateX(32px); }

.theme-light .theme-toggle {
    background: rgba(15,23,42,0.06);
    border-color: rgba(15,23,42,0.12);
    color: #0b1324;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 18px rgba(2, 6, 23, 0.08);
}
.theme-light .theme-toggle .knob {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.15);
}

/* Smooth theme transitions */
html, body,
header.site-header,
.industry-card, .highlight, .cta-card,
footer.site-footer,
nav.primary-nav a,
.footer-links a {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle .knob,
    .theme-toggle .icon,
    html, body,
    header.site-header,
    .industry-card, .highlight, .cta-card,
    footer.site-footer,
    nav.primary-nav a,
    .footer-links a {
        transition: none !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #4facfe rgba(26, 26, 46, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Main Container - Perfect Center Alignment */
.container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    padding: 2rem 0;
}

/* Content Container - Absolutely Centered */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo Styling */
.logo-container {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(79, 172, 254, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Hero Text - Perfect Center Alignment */
.hero-text {
    margin-bottom: 4rem;
    text-align: center;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.2s both, pulse 2s ease-in-out infinite;
}

.coming-soon-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4facfe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Launch Teaser */
.launch-teaser {
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.launch-text {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    font-style: italic;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-align: center;
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.6;
    color: #a0a9c0;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-align: center;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(79, 172, 254, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 160px;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
    text-align: center;
}

/* Blog Preview Section */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(3, 7, 18, 0.08);
    height: fit-content;
}

.blog-preview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(3, 7, 18, 0.15);
}

.blog-preview-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.05);
}

.blog-preview-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.blog-preview-content {
    padding: 1.25rem;
}

.blog-preview-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-preview-content h3 a {
    color: #e6efff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-preview-content h3 a:hover {
    color: #60a5fa;
}

.blog-preview-excerpt {
    color: rgba(226, 239, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(226, 239, 255, 0.6);
}

.blog-preview-read-time::before {
    content: "•";
    margin-right: 0.5rem;
    color: rgba(59, 130, 246, 0.6);
}

.blog-preview-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e6efff;
}

.cta-button.secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Light theme adjustments for blog preview */
.theme-light .blog-preview-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.theme-light .blog-preview-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.theme-light .blog-preview-content h3 a {
    color: #1e293b;
}

.theme-light .blog-preview-content h3 a:hover {
    color: #3b82f6;
}

.theme-light .blog-preview-excerpt {
    color: rgba(30, 41, 59, 0.8);
}

.theme-light .blog-preview-meta {
    color: rgba(30, 41, 59, 0.6);
}

.theme-light .cta-button.secondary {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: #1e293b;
}

.theme-light .cta-button.secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blog-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-preview-image {
        height: 160px;
    }
    
    .blog-preview-content {
        padding: 1rem;
    }
    
    .blog-preview-content h3 {
        font-size: 1rem;
    }
    
    .blog-preview-excerpt {
        font-size: 0.8rem;
    }
}

/* CTA Section - Perfect Center Alignment */
.cta-section {
    text-align: center;
    animation: fadeInUp 1s ease-out 1s both;
}

.cta-text {
    font-size: 1.1rem;
    color: #a0a9c0;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Premium CTA Card */
.cta-card {
    position: relative;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    background:
        radial-gradient(1200px 300px at 0% 0%, rgba(79, 172, 254, 0.10), transparent 60%),
        linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.12);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

/* Gradient ring border */
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79,172,254,0.6), rgba(0,242,254,0.4));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.cta-card::after { display: none; }

.cta-card h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 0.4rem;
    color: #eaf2ff;
    font-weight: 700;
}

.cta-card p {
    color: #cbd5e1;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.cta-help {
    color: #a0a9c0;
    font-size: 0.95rem;
}
.cta-help a,
.cta-help a:link,
.cta-help a:visited {
    color: #cbd5e1;
    text-decoration: none;
}
.cta-help a:hover {
    text-decoration: underline;
    color: #e2e8f0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem 0;
    }
    
    .content {
        padding: 1rem;
        max-width: 100%;
    }
    
    .logo {
        height: 60px;
    }
    
    .coming-soon-badge {
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .coming-soon-badge span {
        font-size: 0.8rem;
    }
    
    .main-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 1rem;
    }
    
    .launch-text {
        font-size: 0.9rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .feature {
        padding: 1rem;
        min-width: auto;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature span {
        font-size: 0.8rem;
    }
    
    .cta-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-card {
        padding: 1.25rem;
        margin: 0 1rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gradient-orb {
        filter: blur(40px);
        opacity: 0.4;
    }
    
    .orb-1 {
        width: 200px;
        height: 200px;
        top: 5%;
        left: -10%;
    }
    
    .orb-2 {
        width: 150px;
        height: 150px;
        top: 70%;
        right: -10%;
    }
    
    .orb-3 {
        width: 140px;
        height: 140px;
        bottom: 10%;
        left: -5%;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0.5rem;
    }
    
    .coming-soon-badge {
        padding: 0.4rem 0.8rem;
    }
    
    .main-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    
    .subtitle {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
        line-height: 1.5;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .feature {
        padding: 0.8rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .feature-icon {
        font-size: 1.3rem;
    }
    
    .cta-text {
        font-size: 0.9rem;
    }
    
    .gradient-orb {
        opacity: 0.3;
    }
    
    .orb-1 {
        width: 150px;
        height: 150px;
    }
    
    .orb-2 {
        width: 120px;
        height: 120px;
    }
    
    .orb-3 {
        width: 140px;
        height: 140px;
    }
}

/* ========== Production Layout Additions ========== */

/* Header & Navigation */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 120; /* ensure above hero */
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148,163,184,0.15);
    overflow: visible; /* allow dropdowns to overflow */
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; /* center by default */
    padding: 0.75rem 1rem;
    width: 100%;
    overflow: visible; /* allow dropdowns to overflow */
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #eaf2ff;
    text-decoration: none;
    font-weight: 700;
}

.brand .logo {
    height: 36px;
    filter: drop-shadow(0 6px 20px rgba(79, 172, 254, 0.25));
}

nav.primary-nav > ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    min-width: 0; /* allow flexbox to shrink contents */
    margin: 0; /* reset UA margins */
    padding: 0; /* reset UA padding/indent */
}

/* Ensure flex children don't force header wider than viewport */
.nav-container > * { min-width: 0; }
.brand { flex: 0 0 auto; }
nav.primary-nav { flex: 0 0 auto; min-width: 0; } /* don't stretch, keep group centered */
header.site-header .theme-control { flex: 0 0 auto; }

/* Prevent header content from pushing off-screen on mobile */
@media (max-width: 768px) {
    header.site-header { left: 0; right: 0; width: 100%; max-width: 100vw; }
    .nav-container {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
        gap: 0.4rem;
        max-width: 100%;
    }
    .brand .logo { height: 28px; }
    nav.primary-nav { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    nav.primary-nav > ul {
        gap: 0.4rem;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 4px; /* avoid notch overlay */
        white-space: nowrap;
        width: max-content; /* use intrinsic width so container can scroll */
        max-width: 100%;
    }
    nav.primary-nav > ul::-webkit-scrollbar { display: none; }
    nav.primary-nav a { padding: 0.42rem 0.5rem; }
    header.site-header .theme-control { font-size: 0.8rem; }
    .nav-dropdown-menu { display: none !important; }
}

@media (max-width: 480px) {
    .nav-container { padding-top: calc(0.35rem + env(safe-area-inset-top)); padding-bottom: 0.35rem; }
    nav.primary-nav a { padding: 0.32rem 0.45rem; font-size: 0.85rem; }
    .brand .logo { height: 32px; }
}

nav.primary-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease;
    display: inline-flex;
    align-items: center;
}

/* Dropdown (Client Login) */
.nav-dropdown {
    position: relative;
}
.nav-dropbtn {
    appearance: none;
    background: transparent;
    color: #cbd5e1;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color .2s ease, background .2s ease;
}
.nav-dropbtn .chevron { margin-left: 6px; transition: transform .2s ease; opacity: .9; }
.nav-dropbtn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav-dropbtn:hover,
.nav-dropbtn[aria-expanded="true"] {
    color: #ffffff;
    background: rgba(79,172,254,0.08);
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(2,6,23,0.5);
    padding: 0.4rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    pointer-events: none;
    z-index: 80;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropbtn:focus + .nav-dropdown-menu,
.nav-dropbtn[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: rgba(79,172,254,0.14);
    color: #ffffff;
}

/* ========== Mobile Drawer ========== */
/* Button hidden by default (desktop) */
.mobile-menu-button {
    display: none;
    appearance: none;
    background: rgba(255,255,255,0.08);
    color: #e6efff;
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 12px;
    width: 42px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.mobile-menu-button:hover { transform: translateY(-1px); }
.mobile-menu-button .menu-icon { position: relative; width: 20px; height: 14px; display: inline-block; }
.mobile-menu-button .menu-icon span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.mobile-menu-button .menu-icon span:nth-child(1) { top: 0; }
.mobile-menu-button .menu-icon span:nth-child(2) { top: 6px; }
.mobile-menu-button .menu-icon span:nth-child(3) { bottom: 0; }

/* Drawer overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.5);
    backdrop-filter: blur(2px);
    z-index: 60;
}

/* Drawer panel */
.mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(85vw, 380px);
    background: rgba(15,23,42,0.9);
    border-left: 1px solid rgba(148,163,184,0.18);
    box-shadow: -20px 0 60px rgba(2,6,23,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 70;
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem 1rem;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.drawer-header .brand .logo { height: 28px; }
.drawer-close { appearance: none; background: transparent; color: #e6efff; border: 0; font-size: 1.25rem; padding: .25rem; cursor: pointer; }
.drawer-nav { margin-top: 1rem; }
.drawer-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.drawer-list a { display: block; padding: .75rem .85rem; border-radius: 10px; color: #e2e8f0; text-decoration: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(148,163,184,0.16); }
.drawer-list a[aria-current="page"] { background: rgba(79,172,254,0.14); color: #ffffff; }
.drawer-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(148,163,184,0.16); display: grid; gap: .4rem; }
.drawer-footer .contact-link { color: #cbd5e1; text-decoration: none; font-weight: 600; }
.drawer-footer .contact-meta { color: #94a3b8; font-size: .9rem; }
.drawer-footer .social-links { display: flex; gap: .6rem; }
.drawer-footer .social-links a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,0.06); color: #e6efff; text-decoration: none; border: 1px solid rgba(148,163,184,0.16); }

html.drawer-open, html.drawer-open body { overflow: hidden; }

/* Mobile behavior: hide desktop nav, show button */
@media (max-width: 768px) {
    nav.primary-nav { display: none; }
    .mobile-menu-button { display: inline-flex; }
    /* Center the brand logo with a symmetric 3-column grid */
    .nav-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
    .nav-container .brand { grid-column: 2; justify-self: center; }
    .mobile-menu-button { grid-column: 3; justify-self: end; }
    .brand .logo { height: 36px; width: auto; }
    /* Hide theme control on mobile to keep header minimal */
    header.site-header .theme-control, header.site-header .nav-theme-item { display: none !important; }
}

/* Dark mode default hover for all nav links */
nav.primary-nav a:hover {
    color: #ffffff;
    background: rgba(79,172,254,0.10);
}

/* Dark mode: stronger active state for non-CTA links */
nav.primary-nav a:not(.nav-cta)[aria-current="page"] {
    color: #ffffff;
    background: rgba(79,172,254,0.22);
    box-shadow: inset 0 0 0 1px rgba(79,172,254,0.35);
}

/* Keep Contact CTA styling when it's the active page (dark mode) */
nav.primary-nav a.nav-cta[aria-current="page"] {
    background: linear-gradient(135deg, #3ea2ff 0%, #00e6ff 100%);
    color: #071018;
    border: 1px solid rgba(2,6,23,0.15);
    box-shadow: 0 12px 28px rgba(79,172,254,0.30);
}
nav.primary-nav a.nav-cta[aria-current="page"]:hover,
nav.primary-nav a.nav-cta[aria-current="page"]:focus-visible {
    background: linear-gradient(135deg, #5ab3ff 0%, #33eeff 100%);
    color: #071018;
}

/* Header elevation on scroll */
.site-header { transition: background .2s ease, box-shadow .2s ease, backdrop-filter .2s ease; }
.site-header.scrolled {
    background: rgba(15,23,42,0.65);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 8px 24px rgba(2,6,23,0.35);
}

/* Desktop reset: keep header container centered and in flex layout */
@media (min-width: 769px) {
    header.site-header { display: flex; justify-content: center; }
    header.site-header .nav-container { display: flex; justify-content: center; align-items: center; gap: 1rem; width: auto; }
    /* Keep nav from stretching full width so the group can center visually */
    header.site-header nav.primary-nav { flex: 0 0 auto; }
    header.site-header .nav-container .brand { justify-self: auto; }
    .mobile-menu-button { display: none !important; }
}

.nav-cta {
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #3ea2ff 0%, #00e6ff 100%);
    color: #071018; /* darker for higher contrast on bright gradient */
    border-radius: 10px;
    border: 1px solid rgba(2,6,23,0.15);
    box-shadow: 0 12px 28px rgba(79,172,254,0.30);
    font-weight: 700;
}

/* Ensure Contact button keeps dark text in dark mode, even on hover */
nav.primary-nav a.nav-cta,
nav.primary-nav a.nav-cta:link,
nav.primary-nav a.nav-cta:visited { color: #071018; }
nav.primary-nav a.nav-cta:hover,
nav.primary-nav a.nav-cta:focus,
nav.primary-nav a.nav-cta:focus-visible { color: #071018; }

.nav-cta:hover {
    background: linear-gradient(135deg, #5ab3ff 0%, #33eeff 100%);
    box-shadow: 0 16px 36px rgba(79,172,254,0.40);
    transform: translateY(-1px);
}

.nav-cta:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(79,172,254,0.28);
}

.nav-cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 0 0 5px rgba(79,172,254,0.6), 0 14px 30px rgba(79,172,254,0.30);
}

/* Generic Sections */
main { display: block; }

section.section { padding: 4rem 1rem; }

.section .section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #a0a9c0;
    max-width: 760px;
    margin: 0.25rem auto 2rem;
}

/* Industries Grid */
.industries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.industry-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.industry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 172, 254, 0.35);
    box-shadow: 0 18px 38px rgba(79,172,254,0.12);
}

.industry-emoji { font-size: 1.4rem; }
.industry-label { font-weight: 600; }

/* Service Highlights */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.highlight {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: left;
}

.highlight h3 { font-size: 1.1rem; margin-bottom: 0.5rem; text-align: left; }
.highlight p { color: #cbd5e1; font-size: 0.98rem; text-align: left; }

/* Modern gradient button styles for project card links */
.highlight a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.25);
    transition: all 0.2s ease;
    text-align: center;
}

.highlight a:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.35);
    transform: translateY(-1px);
}

/* Footer */
footer.site-footer {
    border-top: 1px solid rgba(148,163,184,0.15);
    background: rgba(10,10,15,0.6);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #ffffff; }

/* Utilities */
.visually-hidden { position: absolute !important; clip: rect(1px,1px,1px,1px); padding:0; border:0; height:1px; width:1px; overflow:hidden; }

@media (max-width: 768px) {
    .nav-container { padding: 0.6rem 0.75rem; }
    nav.primary-nav ul { gap: 0.5rem; }
    .footer-inner { padding: 1.5rem 1rem; }
}

/* Background Elements */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite, colorShift1 35s ease-in-out infinite, drift1 40s ease-in-out infinite;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 60%;
    right: 15%;
    animation: float 6s ease-in-out infinite, colorShift2 45s ease-in-out infinite, drift2 50s ease-in-out infinite;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite, colorShift3 55s ease-in-out infinite, drift3 60s ease-in-out infinite;
    animation-delay: 4s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

@keyframes colorShift1 {
    0% {
        background: linear-gradient(135deg, #4facfe, #00f2fe);
    }
    33% {
        background: linear-gradient(135deg, #5a67d8, #667eea);
    }
    66% {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
    100% {
        background: linear-gradient(135deg, #4facfe, #00f2fe);
    }
}

@keyframes colorShift2 {
    0% {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
    33% {
        background: linear-gradient(135deg, #805ad5, #9f7aea);
    }
    66% {
        background: linear-gradient(135deg, #9f7aea, #b794f6);
    }
    100% {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
}

@keyframes colorShift3 {
    0% {
        background: linear-gradient(135deg, #f093fb, #f5576c);
    }
    33% {
        background: linear-gradient(135deg, #ed64a6, #f687b3);
    }
    66% {
        background: linear-gradient(135deg, #f687b3, #fbb6ce);
    }
    100% {
        background: linear-gradient(135deg, #f093fb, #f5576c);
    }
}

@keyframes drift1 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -20px);
    }
    50% {
        transform: translate(-15px, 25px);
    }
    75% {
        transform: translate(20px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes drift2 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-25px, 15px);
    }
    50% {
        transform: translate(20px, -30px);
    }
    75% {
        transform: translate(-10px, -15px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes drift3 {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, 25px);
    }
    50% {
        transform: translate(-30px, -10px);
    }
    75% {
        transform: translate(25px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}
@media (max-width: 480px) {
    .content {
        padding: 0.5rem;
    }
    
    .coming-soon-badge {
        padding: 0.4rem 0.8rem;
    }
    
    .main-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    
    .subtitle {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
        line-height: 1.5;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .feature {
        padding: 0.8rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .feature-icon {
        font-size: 1.3rem;
    }
    
    .cta-text {
        font-size: 0.9rem;
    }
    
    .gradient-orb {
        opacity: 0.3;
    }
    
    .orb-1 {
        width: 150px;
        height: 150px;
    }
    
    .orb-2 {
        width: 120px;
        height: 120px;
    }
    
    .orb-3 {
        width: 140px;
        height: 140px;
    }
}
