:root {
    --bg-main: #0d0f14;
    --bg-surface: #151821;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-blue: #4f8cff;
    --accent-purple: #8b5cf6;
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: #ffffff;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-muted); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(79, 140, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    min-height: 44px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 140, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(13, 15, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin: 1.5rem 0 2.5rem;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* Word Split Animation styles */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.25em;
}

.word-inner {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.word-inner.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Mockup UI */
.mockup-ui {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.mockup-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mockup-body {
    display: flex;
    flex: 1;
    padding: 1rem;
    gap: 1rem;
}

.mockup-sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    height: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}
.nav-item.active { background: var(--accent-blue); width: 80%; }

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.top-card { height: 60px; }

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 80px;
}

.chart-card {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 1rem;
}

.mockup-bar {
    flex: 1;
    background: rgba(79, 140, 255, 0.2);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.mockup-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px 4px 0 0;
}

.h-60::after { height: 60%; }
.h-80::after { height: 80%; }
.h-40::after { height: 40%; }
.h-100::after { height: 100%; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(79, 140, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 140, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(79, 140, 255, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 { margin-bottom: 0.75rem; }

/* How it works */
.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 2rem;
}

.progress-line {
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0%;
    background: var(--accent-blue);
    transition: width 1.5s ease;
}

.steps-container.is-visible .progress-line::after {
    width: 100%;
}

.step {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px var(--bg-main);
    transition: var(--transition);
}

.step:hover .step-number {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(79, 140, 255, 0.4), 0 0 0 8px var(--bg-main);
}

.step h3 { margin-bottom: 0.75rem; }

/* Dashboard UI Demo */
.dashboard-wrapper {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1rem;
}

.dashboard-glass {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.dashboard-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.kpi-group {
    display: flex;
    gap: 3rem;
}

.kpi {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.dashboard-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.live-chart {
    height: 250px;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-bar {
    flex: 1;
    height: 100%;
    background: rgba(255,255,255,0.02);
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.chart-fill {
    width: 100%;
    background: var(--gradient-accent);
    border-radius: 4px 4px 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-chart.is-visible .chart-fill {
    transform: scaleY(var(--target-h));
}

.live-activity {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 1.5rem;
}

.activity-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.activity-dot.blue { background: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); }
.activity-dot.purple { background: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); }

.activity-text {
    font-size: 0.9375rem;
    color: #fff;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Social Proof */
.social-proof {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.01);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular {
    background: rgba(79, 140, 255, 0.03);
    border-color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-blue);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 1.5rem 0 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: 700;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Animations Utilities */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition-slow);
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin: 1.5rem auto 2.5rem;
    }
    .hero-ctas {
        justify-content: center;
    }
    .dashboard-body {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .steps-container {
        flex-direction: column;
        gap: 3rem;
        padding-top: 0;
    }
    .progress-line {
        top: 0;
        left: 24px;
        width: 2px;
        height: 100%;
    }
    .progress-line::after {
        width: 100%;
        height: 0%;
        transition: height 1.5s ease;
    }
    .steps-container.is-visible .progress-line::after {
        height: 100%;
        width: 100%;
    }
    .step {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-left: 4rem;
    }
    .step-number {
        margin: 0 0 1rem 0;
        position: absolute;
        left: 0;
        top: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .kpi-group {
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero-ctas {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}