/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: #1a1a24;

    --color-primary: #00d4ff;
    --color-primary-glow: rgba(0, 212, 255, 0.3);

    --color-success: #10b981;
    --color-error: #ef4444;

    --color-text: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;

    --color-border: #27272a;
    --color-border-light: #3f3f46;

    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);

    --container-max: 1000px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--color-primary-glow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.25s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero .container {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ===== Dashboard Mockup ===== */
.dashboard-mockup {
    margin-top: 3rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px var(--color-primary-glow);
    text-align: left;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.mockup-body {
    display: flex;
    height: 240px;
}

.mockup-sidebar {
    width: 50px;
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-nav-item {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: transparent;
    transition: background 0.2s;
}

.mockup-nav-item.active {
    background: var(--color-primary);
}

.mockup-main {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.mockup-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.mockup-kpi {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.kpi-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.kpi-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-trend {
    font-size: 0.7rem;
    font-weight: 600;
}

.kpi-trend.up {
    color: var(--color-success);
}

.kpi-trend.down {
    color: var(--color-error);
}

.mockup-chart {
    flex: 1;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.chart-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
}

.chart-period {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.chart-line {
    flex: 1;
    min-height: 50px;
}

/* Two charts side by side */
.mockup-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.mockup-charts .mockup-chart {
    flex: none;
}

/* Bar chart styles */
.chart-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    width: 40px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ===== Mockup Carousel ===== */
.mockup-carousel {
    margin-top: 3rem;
    position: relative;
}

.carousel-slides {
    position: relative;
}

.carousel-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.carousel-slide .dashboard-mockup {
    margin-top: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-light);
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dot:hover {
    background: var(--color-text-muted);
}

.carousel-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* ===== Chat Mockup ===== */
.mockup-chat {
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.chat-message {
    display: flex;
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-text {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    line-height: 1.5;
}

.chat-message.user .chat-text {
    background: var(--color-primary);
    color: var(--color-bg);
}

.chat-message.assistant .chat-text {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.chat-input {
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.chat-placeholder {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ===== ETL Mockup ===== */
.mockup-etl {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.etl-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.etl-step {
    flex: 1;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    transition: all 0.25s ease;
}

.etl-step.completed {
    border-color: var(--color-success);
    background: rgba(16, 185, 129, 0.05);
}

.etl-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.etl-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.etl-status {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.etl-arrow {
    color: var(--color-success);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.etl-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.etl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

/* ===== Value Prop ===== */
.value-prop {
    padding: 5rem 0;
    background: var(--color-bg-secondary);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.value-card.old-way {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.value-card.new-way {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.old-way h3 { color: var(--color-error); }
.new-way h3 { color: var(--color-success); }

.value-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-card li {
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.old-way li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--color-error);
    font-weight: bold;
}

.new-way li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* ===== Features ===== */
.features {
    padding: 5rem 0;
}

.features h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ===== Early Access ===== */
.early-access {
    padding: 5rem 0;
    background: var(--color-bg-secondary);
}

.early-access h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.625rem 0.875rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: border-color 0.2s;
    font-size: 0.875rem;
    height: 40px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    height: 40px;
    box-sizing: border-box;
}

.checkbox-label:hover {
    border-color: var(--color-border-light);
}

.checkbox-label:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

.checkbox-label input {
    accent-color: var(--color-primary);
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    max-width: 360px;
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero .container {
        max-width: 100%;
    }

    .dashboard-mockup {
        margin-top: 2rem;
    }

    .mockup-sidebar {
        width: 40px;
        padding: 0.5rem;
    }

    .mockup-nav-item {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .mockup-kpis {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .mockup-kpi {
        padding: 0.5rem;
    }

    .kpi-value {
        font-size: 0.95rem;
    }

    .kpi-label {
        font-size: 0.6rem;
    }

    .kpi-trend {
        font-size: 0.6rem;
    }

    .mockup-carousel {
        margin-top: 2rem;
    }

    .mockup-body {
        height: 200px;
    }

    .chat-text {
        font-size: 0.7rem;
    }

    .etl-step {
        padding: 0.5rem;
    }

    .etl-icon {
        font-size: 1rem;
    }

    .etl-label {
        font-size: 0.6rem;
    }

    .etl-status {
        font-size: 0.55rem;
    }

    .etl-arrow {
        font-size: 1rem;
    }

    .etl-summary {
        gap: 1rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .mockup-charts {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

    .value-grid,
    .features-grid,
    .form-row,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .value-card,
    .feature-card {
        padding: 1.5rem;
    }
}
