/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0e1a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* ==========================================
   BACKGROUND & PARTICLES
   ========================================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(30, 136, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(21, 101, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(66, 165, 245, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.particle {
    position: fixed;
    background: rgba(30, 136, 229, 0.05);
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(100px, -100px) scale(1.2);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50px, -150px) scale(0.8);
        opacity: 0.2;
    }

    75% {
        transform: translate(-100px, -80px) scale(1.05);
        opacity: 0.4;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-flex;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.product-logo {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
    display: block;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E88E5;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #1E88E5 0%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ==========================================
   TOP 3 FEATURES
   ========================================== */
.key-features {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item-compact {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(30, 136, 229, 0.3);
    transform: translateX(5px);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1E88E5 0%, #1565c0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.feature-item-compact strong {
    color: #fff;
    font-weight: 600;
}

.feature-item-compact div {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 1rem;
}

/* ==========================================
   CTA BUTTON
   ========================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #1E88E5 0%, #1565c0 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(30, 136, 229, 0.6);
}

.arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* ==========================================
   VISUAL DEMO (RIGHT SIDE)
   ========================================== */
.demo-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1000px;
}

.survey-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floatRotate 20s infinite ease-in-out;
}

@keyframes floatRotate {

    0%,
    100% {
        transform: rotateY(-5deg) rotateX(5deg) translateZ(0);
    }

    50% {
        transform: rotateY(5deg) rotateX(-5deg) translateZ(20px);
    }
}

/* Chart bars */
.chart-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.6) 0%, rgba(21, 101, 192, 0.4) 100%);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: barGrow 2s ease-out;
}

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: var(--bar-height);
        opacity: 1;
    }
}

.chart-element:nth-child(1) {
    left: 15%;
    bottom: 30%;
    width: 60px;
    --bar-height: 120px;
    height: 120px;
    animation-delay: 0.2s;
}

.chart-element:nth-child(2) {
    left: 30%;
    bottom: 30%;
    width: 60px;
    --bar-height: 200px;
    height: 200px;
    animation-delay: 0.4s;
}

.chart-element:nth-child(3) {
    left: 45%;
    bottom: 30%;
    width: 60px;
    --bar-height: 160px;
    height: 160px;
    animation-delay: 0.6s;
}

.chart-element:nth-child(4) {
    left: 60%;
    bottom: 30%;
    width: 60px;
    --bar-height: 240px;
    height: 240px;
    animation-delay: 0.8s;
}

.chart-element:nth-child(5) {
    left: 75%;
    bottom: 30%;
    width: 60px;
    --bar-height: 180px;
    height: 180px;
    animation-delay: 1s;
}

/* ==========================================
   GLASS PANELS
   ========================================== */
.glass-panel {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    animation: slideIn 1s ease-out;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3));
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.glass-panel-1 {
    top: 10%;
    right: 5%;
    width: 250px;
    animation-delay: 0.3s;
}

.glass-panel-2 {
    bottom: 15%;
    left: 0%;
    width: 220px;
    animation-delay: 0.6s;
}

.glass-panel-3 {
    top: 45%;
    right: -5%;
    width: 200px;
    animation-delay: 0.9s;
}

/* Panel content */
.panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-green {
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
}

.status-orange {
    background: #ff9800;
    box-shadow: 0 0 10px #ff9800;
}

.status-blue {
    background: #1E88E5;
    box-shadow: 0 0 10px #1E88E5;
}

.panel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.panel-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.mini-chart {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 40px;
    margin-top: 0.75rem;
}

.mini-bar {
    flex: 1;
    background: linear-gradient(180deg, #1E88E5, #1565c0);
    border-radius: 2px;
    animation: miniBarGrow 1s ease-out;
}

@keyframes miniBarGrow {
    from {
        height: 0;
    }
}

/* ==========================================
   LEARN MORE SECTION
   ========================================== */
.learn-more-section {
    position: relative;
    min-height: 100vh;
    padding: 8rem 5% 6rem;
    z-index: 1;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-badge {
    display: inline-flex;
    padding: 0.5rem 1.2rem;
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #42a5f5;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.section-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(to bottom,
            rgba(10, 14, 26, 0.25),
            rgba(10, 14, 26, 0.85));
}


.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card>* {
    position: relative;
    z-index: 2;
}


.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 1rem;
}


/* ==========================================
   Feature Card Background Images
   ========================================== */

.feature-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 55%;

    opacity: 0.18;
    /* subtle, not washed out */
    filter: none;
    /* ❌ remove blur */
    transform: scale(1);
    /* no artificial softness */
    pointer-events: none;
}


/* ==========================================
   Feature Background Image Mapping
   ========================================== */

.feature-bg-mobile .feature-bg-image {
    background-image: url("../assets/images/home_page/mobile-upload.png");
}

.feature-bg-thresholds .feature-bg-image {
    background-image: url("../assets/images/home_page/custom-thresholds.png");
}

.feature-bg-points .feature-bg-image {
    background-image: url("../assets/images/home_page/point-network.png");
}

.feature-bg-pdf .feature-bg-image {
    background-image: url("../assets/images/home_page/pdf-reports.png");
}

.feature-bg-analysis .feature-bg-image {
    background-image: url("../assets/images/home_page/analysis.png");
}

.feature-bg-photo .feature-bg-image {
    background-image: url("../assets/images/home_page/photo-integration.png");
}



/* ==========================================
   WORKFLOW SECTION
   ========================================== */
.workflow-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.workflow-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(30, 136, 229, 0.5) 10%,
            rgba(30, 136, 229, 0.5) 90%,
            transparent 100%);
    z-index: 0;
}

.workflow-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1E88E5 0%, #1565c0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.4);
    border: 4px solid #0a0e1a;
}

.workflow-step h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.workflow-step p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ==========================================
   CTA BOX
   ========================================== */
.cta-box {
    max-width: 900px;
    margin: 5rem auto 0;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.12) 0%, rgba(21, 101, 192, 0.12) 100%);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
}

.cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3));
}

.cta-box>* {
    position: relative;
    z-index: 2;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    h1 {
        font-size: 3rem;
    }

    .demo-container {
        height: 400px;
    }

    .glass-panel {
        transform: scale(0.85);
    }
}

@media (max-width: 968px) {

    .features-grid,
    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-steps::before {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .feature-item-compact {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .demo-container {
        display: none;
    }
}