:root {
    --bg-color-start: #060913;
    --bg-color-end: #000000;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --card-bg: rgba(15, 23, 42, 0.4);
    --card-border: rgba(255, 255, 255, 0.06);
    --glow-color: rgba(99, 102, 241, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color-end);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Elements */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-color-start) 0%, var(--bg-color-end) 100%);
    z-index: -3;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, transparent 100%);
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

/* Typography Utilities */
.text-white {
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(to right, #7fb5ff, #9f7aea);
    /* Adjusted for visual match */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Centered on mobile */
    padding-top: 80px;
    padding-bottom: 80px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-align: left;
    /* Image has it left aligned relative to container, wait, the user prompt says "Positioned below the headline" for mockup, meaning headline could be left-aligned or centered? The image shows it left aligned. */
    width: 100%;
    margin-bottom: 40px;
}

/* Mobile-first Mockup Layout */
.mockup-container {
    width: 100%;
    max-width: 80%;
    /* Prompt: Max width: 80% of screen */
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.mockup-ui {
    background: rgba(18, 24, 38, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(99, 102, 241, 0.15);
    /* Soft ambient glow */
    position: relative;
}

.mockup-header {
    margin-bottom: 20px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 12px;
}

.skeleton-line.full {
    width: 100%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.short {
    width: 40%;
    margin-top: 20px;
}

.cards-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.skeleton-card {
    flex: 1;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.skeleton-card.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(15, 20, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
    animation: floatBadge 5s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
}

.badge-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.badge-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 8px;
}

.badge-bar-container {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.badge-bar {
    width: 70%;
    height: 100%;
    background: #8b5cf6;
    border-radius: 2px;
}

.floating-badge-top {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(15, 20, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: floatBadge 4s ease-in-out infinite alternate-reverse;
    backdrop-filter: blur(10px);
}

.badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-lines .line {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    margin-bottom: 4px;
}

.badge-lines .line.blue {
    background: #3b82f6;
    width: 40px;
    margin-bottom: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

/* ---------------- SERVICES SECTION ---------------- */
.services-section {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    /* Large vertical spacing */
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
    /* Optimized for mobile scroll */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:active {
    transform: scale(0.98);
}

.card-visual {
    height: 65%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
}

/* Abstract UI Elements Inside Cards */
.abstract-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: float 5s ease-in-out infinite;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 60%;
    height: auto;
}

.abstract-ui .circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 5px;
    background: #334155;
}

.abstract-ui .circle.red {
    background: #ef4444;
}

.abstract-ui .circle.blue {
    background: #3b82f6;
}

.abstract-ui .circle.green {
    background: #10b981;
}

.abstract-ui.system {
    flex-direction: row;
    gap: 8px;
}

.abstract-ui.system .block {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.abstract-ui.system .block.active {
    background: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.abstract-ui.data {
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    height: 50px;
}

.abstract-ui.data .bar {
    width: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px 2px 0 0;
}

.abstract-ui.data .bar.h-1 {
    height: 20%;
}

.abstract-ui.data .bar.h-2 {
    height: 50%;
}

.abstract-ui.data .bar.h-3 {
    height: 100%;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

.abstract-ui.data .bar.h-4 {
    height: 75%;
}

.abstract-ui.security {
    width: 40px;
    height: 50px;
    border-radius: 8px 8px 24px 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.abstract-ui.security .shield-core {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 15px;
    background: #10b981;
    border-radius: 4px 4px 12px 12px;
    box-shadow: 0 0 10px #10b981;
}

.card-content {
    height: 35%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

/* ---------------- FINAL CTA SECTION ---------------- */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 0 20px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

.cta-headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
}

.cta-button {
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    /* Gradient blue -> purple */
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 40px;
    /* Large pill shape */
    cursor: pointer;
    box-shadow:
        0 10px 25px rgba(139, 92, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:active {
    transform: scale(0.96);
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- DESKTOP STYLES ---------------- */
@media (min-width: 768px) {
    .main-title {
        font-size: 5rem;
        width: 50%;
        margin-bottom: 0;
    }

    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mockup-container {
        width: 45%;
        max-width: none;
        margin: 0;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    .service-card:hover {
        transform: translateY(-5px);
        border-color: rgba(99, 102, 241, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
    }

    .cta-headline {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
}