:root {
    /* Brand Colors - Professional and Clean */
    --primary: #0284c7;
    /* Aqua/Blue for primary actions */
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --secondary: #0f172a;
    /* Sleek dark slate for text/backgrounds */

    /* Light Theme (Default, builds B2B trust) */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    /* Light gray for alternate sections */
    --bg-card: #ffffff;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;

    --border-light: #e2e8f0;
    --border-focus: #cbd5e1;

    /* Utilities */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #0f172a;
        --bg-alt: #1e293b;
        --bg-card: #1e293b;

        --text-main: #f8fafc;
        --text-muted: #cbd5e1;
        --text-light: #94a3b8;

        --border-light: #334155;
        --border-focus: #475569;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: var(--bg-main);
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: #ffffff !important;
}

.text-light {
    color: #cbd5e1 !important;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-narrow {
    max-width: 800px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

.section-light {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-dark {
    background-color: var(--secondary);
    color: white;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 700px;
    line-height: 1.7;
}

.text-center .section-subtitle {
    margin-inline: auto;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-sm,
.link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    /* preserve text color in dark mode */
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    padding: 0.875rem 1.75rem;
    border: 1px solid var(--border-focus);
}

.btn-secondary:hover {
    background-color: var(--bg-alt);
    border-color: var(--text-muted);
}

.btn-primary-sm {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-primary-sm:hover {
    background-color: var(--primary-dark);
    color: white;
}

.link-secondary {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-secondary:hover {
    color: var(--text-main);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(var(--bg-main), 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

/* Screenshot Framing */
.screenshot-frame {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    line-height: 0;
}

.product-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.screenshot-frame:hover .product-screenshot {
    transform: scale(1.02);
}

/* Animations */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-cards.col-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.solution-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.card:hover,
.solution-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-highlight {
    background-color: var(--primary-light);
    border-color: rgba(2, 132, 199, 0.2);
}

@media (prefers-color-scheme: dark) {
    .card-highlight {
        background-color: rgba(2, 132, 199, 0.1);
        border-color: rgba(2, 132, 199, 0.3);
    }
}

.card-icon,
.solution-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.card-highlight .card-icon {
    background-color: white;
    border-color: var(--primary-light);
}

.card h3,
.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    font-size: 0.75rem;
    background-color: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card p,
.solution-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Full Width Card Styling */
.full-width-card {
    grid-column: 1 / -1;
}

.feature-bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.bullet-item {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.25rem;
}

.bullet-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.platform-quote {
    padding: 3rem;
    background-color: var(--bg-alt);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.platform-quote p {
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Gallery Styling */
.section-gallery {
    background-color: var(--bg-main);
    padding-bottom: 8rem;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.gallery-info {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0.5rem;
    border-left: 2px solid var(--primary);
}

/* Use Case Section */
.use-case-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.use-case-text {
    flex: 1;
}

.use-case-visual {
    flex: 1;
}

.label-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.workflow-steps {
    list-style: none;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 17px;
    width: 2px;
    background-color: var(--border-light);
    z-index: 0;
}

.workflow-steps li {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 36px;
    height: 36px;
    background-color: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Architecture Placeholder */
.diagram-placeholder {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto 0;
    height: 200px;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-focus);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.diagram-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--border-focus);
}

/* Future Growth */
.growth-banner {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 4rem;
}

.growth-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.growth-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.growth-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.growth-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
}

.growth-list i {
    color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.growth-list strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

/* Contact / Demo */
.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.action-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 250px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.link-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox / Zoom Effect */
.product-screenshot {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
    overflow: auto;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    width: 85vw;
    height: 85vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
}

.lightbox-content.zoomed {
    width: 150vw;
    height: 150vh;
    cursor: zoom-out;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox:fullscreen .lightbox-content {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 3000;
    backdrop-filter: blur(12px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 900px) {
    .use-case-layout {
        flex-direction: column;
    }

    .growth-banner {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-links {
        gap: 2rem;
        width: 100%;
        justify-content: space-between;
    }
}