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

:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #10b981;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-flux {
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flux-glow {
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.2) !important;
}

.badge-flux {
    background: rgba(168, 85, 247, 0.1) !important;
    color: #a855f7 !important;
}

/* Header & Nav */
header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 1000;
}

header.scrolled nav {
    margin-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 0.5rem 2rem;
    border-top: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    margin-top: 0;
}

.logo img {
    height: 40px;
    display: block;
}

.wordmark {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active-link {
    color: var(--text-primary);
}

.installations-main {
    padding-top: 8.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

.hero-visual {
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
    perspective: 1000px;
}

.dashboard-mockup {
    padding: 0.5rem;
    transform: rotateX(5deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-slow);
}

.dashboard-mockup:hover {
    transform: rotateX(0deg) translateY(-10px);
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.dashboard-mockup img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.mockup-screen {
    padding: 1.5rem;
}

.mini-dashboard-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-card {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}

.metric-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.metric-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.6rem;
    font-family: var(--font-heading);
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.mockup-panel {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
}

.mockup-panel h3 {
    margin-bottom: 0.75rem;
}

.mockup-panel p {
    color: var(--text-secondary);
}

.stack-list {
    display: grid;
    gap: 0.75rem;
}

.stack-list li {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-secondary);
}

/* Product Showcase */
.product-showcase {
    padding: 8rem 0;
}

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

.product-visual {
    flex: 1.2;
}

.product-text {
    flex: 1;
}

.product-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.showcase-panel,
.automation-panel,
.case-placeholder {
    padding: 2rem;
}

.showcase-topline {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
}

.showcase-list {
    display: grid;
    gap: 1rem;
}

.showcase-item {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.showcase-item strong {
    display: block;
    margin-bottom: 0.35rem;
}

.showcase-item span,
.case-placeholder span {
    color: var(--text-secondary);
}

.repair-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.cat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cat-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
}

.mt-4 {
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .product-flex {
        flex-direction: column;
        text-align: center;
    }

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

    .mini-dashboard-row,
    .mockup-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    padding: 2.5rem;
    transition: transform var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Automation Hub Section */
.automation {
    padding: 8rem 0;
    background: radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

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

.automation-text {
    flex: 1;
}

.automation-visual {
    flex: 1.2;
}

.automation-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stack-board {
    display: grid;
    gap: 0.9rem;
}

.stack-node {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.check-list {
    margin-top: 2rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.check-icon {
    color: var(--secondary);
    font-weight: bold;
}

/* Scroll Animation classes */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Case Studies */
.cases {
    padding: 8rem 0;
}

.case-study-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
    margin-bottom: 4rem;
}

.case-study-flex.reverse {
    flex-direction: row-reverse;
}

.case-visual {
    flex: 1;
}

.case-visual img {
    width: 100%;
    border-radius: 12px;
}

.case-placeholder {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.case-placeholder strong {
    font-size: 1.35rem;
    font-family: var(--font-heading);
}

.case-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.case-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.case-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    text-align: center;
}

.cta-content {
    padding: 5rem 2rem;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {

    .automation-flex,
    .case-study-flex {
        flex-direction: column;
        text-align: center;
    }

    .case-study-flex.reverse {
        flex-direction: column;
    }

    .automation-flex,
    .case-study-flex {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed */
    }

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

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}