/* ============================================
   HERO SECTION - PREMIUM REFINEMENT
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0 var(--space-3xl);
    overflow: hidden;
}

/* Clean Dark Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #0a0a0a;
}

/* Subtle Square Grid Pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Primary Gradient Glow - Very Subtle */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0, 255, 136, 0.04) 0%, transparent 60%);
}

/* Hidden - No text glow */
.hero-text-glow {
    display: none;
}

/* Decorative Blur Circles - Hidden */
.hero-orb {
    display: none;
}

/* Rotating Geometric Element */
.hero-geometric {
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(0, 255, 136, 0.15);
    transform: rotate(45deg);
    animation: rotateGeometric 20s linear infinite;
}

.hero-geometric::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.hero-geometric::after {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(0, 255, 136, 0.08);
}

.hero-orb-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 25%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 40px;
    height: 40px;
    top: 45%;
    right: 35%;
    animation: floatOrb 6s ease-in-out infinite;
}

.hero-orb-4 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    right: 20%;
    animation: floatOrb 12s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, -15px);
    }

    50% {
        transform: translate(-5px, 10px);
    }

    75% {
        transform: translate(15px, 5px);
    }
}

/* Rotating Geometric Element */
.hero-geometric {
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transform: rotate(45deg);
    animation: rotateGeometric 20s linear infinite;
}

.hero-geometric::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(0, 255, 136, 0.08);
}

.hero-geometric::after {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(0, 255, 136, 0.05);
}

@keyframes rotateGeometric {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(405deg);
    }
}

/* Hero Container - Centered Layout */
.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero Content */
.hero-content {
    max-width: 100%;
    width: 100%;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 640px;
        text-align: left;
        margin: 0;
        padding-left: var(--space-md);
        padding-right: 0;
        overflow: visible;
    }
}

/* Premium Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Refined Typography */
.hero-title {
    font-size: clamp(1.75rem, 6vw, 4.25rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-description {
    font-size: var(--fs-sm);
    color: #a1a1aa;
    margin-bottom: var(--space-lg);
    max-width: 100%;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-xs);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: var(--fs-md);
        max-width: 580px;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Refined CTAs */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: var(--space-lg);
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-ctas {
        justify-content: flex-start;
    }
}

.hero-ctas .btn-primary {
    transition: all 300ms ease;
}

.hero-ctas .btn-primary:hover {
    transform: translateY(-2px);
}

.hero-ctas .btn-outline {
    border: 1.5px solid #1f2937;
    transition: all 300ms ease;
}

.hero-ctas .btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(0, 255, 136, 0.08);
    transform: translateY(-2px);
}

/* Social Proof */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: var(--space-xl);
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-proof {
        justify-content: flex-start;
    }
}

.proof-stars {
    color: #00ff88;
    font-size: 14px;
    letter-spacing: 2px;
}

.proof-text {
    color: #52525b;
    font-size: 14px;
    font-weight: 500;
}

.proof-divider {
    color: #52525b;
    opacity: 0.5;
}

/* Logo Carousel - Companies that trust us */
.logo-carousel-section {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-carousel-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: var(--space-xl);
    animation: scrollLogos 25s linear infinite;
    width: max-content;
}

.logo-item {
    flex-shrink: 0;
    width: 140px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.logo-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.logo-item svg {
    width: 100%;
    height: 100%;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
    height: 500px;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: flex;
    }
}

/* Dashboard Visualization */
.dashboard-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    margin-top: -20px;
}

/* Main Chart Card */
.chart-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    width: 320px;
    backdrop-filter: blur(10px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.chart-badge {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Line Chart */
.line-chart {
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
}

.chart-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-dot {
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        r: 4;
        opacity: 1;
    }

    50% {
        r: 6;
        opacity: 0.8;
    }
}

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.bar:hover {
    background: rgba(0, 255, 136, 0.3);
}

.bar.active {
    background: linear-gradient(180deg, #00ff88 0%, rgba(0, 255, 136, 0.3) 100%);
}

/* Floating Metric Cards - Glass Card Effect */
.metric-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0px 0px rgba(255, 255, 255, 0);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.metric-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);
}

.metric-card::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));
}

.metric-1 {
    top: 10%;
    right: 0;
}

.metric-2 {
    bottom: 30%;
    left: -20px;
}

.metric-3 {
    bottom: 20%;
    right: 20%;
}

.metric-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #888;
}

.metric-icon.green {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.metric-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide old flask styles */
.hero-flask {
    display: none;
}

.flask-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.4) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

.flask-bubbles {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 150px;
}

.flask-bubbles span {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: bubbleRise 3s ease-in-out infinite;
    opacity: 0.8;
}

.flask-bubbles span:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.flask-bubbles span:nth-child(2) {
    left: 40%;
    animation-delay: 0.5s;
    width: 8px;
    height: 8px;
}

.flask-bubbles span:nth-child(3) {
    left: 60%;
    animation-delay: 1s;
}

.flask-bubbles span:nth-child(4) {
    left: 80%;
    animation-delay: 1.5s;
    width: 10px;
    height: 10px;
}

.flask-bubbles span:nth-child(5) {
    left: 30%;
    animation-delay: 2s;
    width: 6px;
    height: 6px;
}

.flask-bubbles span:nth-child(6) {
    left: 70%;
    animation-delay: 2.5s;
    width: 8px;
    height: 8px;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120px) scale(0);
        opacity: 0;
    }
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 60%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-tertiary);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    width: 100%;
    height: 20px;
    background: var(--color-primary);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ============================================
   SECTIONS - General
   ============================================ */
section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--space-3xl) 0;
    }
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
    margin-bottom: var(--space-sm);
}

.section-description {
    font-size: var(--fs-md);
    color: var(--color-text-secondary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-bg-primary);
}

.service-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
}

.service-description {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.service-features {
    margin-bottom: var(--space-md);
}

.service-features li {
    font-size: var(--fs-sm);
    color: var(--color-text-tertiary);
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    cursor: pointer;
}

.service-link svg {
    transition: transform var(--transition-base);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    background: var(--color-bg-primary);
    overflow: hidden;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

@media (min-width: 768px) {
    .process-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.process-step {
    position: relative;
    padding-left: 80px;
    padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .process-step {
        padding-left: 0;
        display: flex;
        align-items: center;
    }

    .process-step:nth-child(odd) {
        justify-content: flex-start;
        padding-right: calc(50% + 40px);
        text-align: right;
    }

    .process-step:nth-child(even) {
        justify-content: flex-end;
        padding-left: calc(50% + 40px);
    }
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .process-step::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.step-content h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}