:root {
    /* Colors */
    --bg-color: #050505;
    --bg-accent: #0a0f1c;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-blue: #3b82f6;
    /* Electric blue reference */
    --accent-glow: rgba(59, 130, 246, 0.5);

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: white;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed nav */
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.hero .container {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Sections Common */
.section {
    padding: var(--section-spacing) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.entropy-graph {
    position: relative;
    height: 300px;
    /* Shortened for visual balance */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    max-width: 800px;
    overflow: hidden;
}

.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

/* Simple CSS-only graph representation */
.graph-line.decay {
    background: linear-gradient(to right, transparent, rgba(255, 50, 50, 0.2));
    clip-path: polygon(0 50%, 100% 90%, 100% 100%, 0 100%);
}

.graph-line.growth {
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.2));
    clip-path: polygon(0 50%, 100% 10%, 100% 100%, 0 100%);
}

.graph-label {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* How It Works Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.step-item {
    position: relative;
    padding-top: 20px;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.step-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

/* Visual Simulation Section */
.dashboard-mockup {
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.status-indicator {
    font-size: 0.8rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.dash-card h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
    font-family: var(--font-sans);
}

.score-display {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.trend.down {
    color: #4ade80;
    font-size: 0.8rem;
    margin-top: 5px;
}

.trajectory-status {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.mini-graph {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 40px;
}

.mini-graph .bar {
    width: 8px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
}

.alert-list {
    list-style: none;
}

.alert-item {
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-item::before {
    content: '!';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.alert-item.warning::before {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.alert-item.danger::before {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

/* Philosophy Section */
.philosophy-section {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(10, 15, 28, 0.5));
}

.philosophy-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.philosophy-content .highlight {
    color: white;
    font-weight: 600;
    margin-top: 40px;
    font-size: 1.8rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 0;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 40px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    background: black;
}

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

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

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

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

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

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

    .hero-cta-group {
        flex-direction: column;
        padding: 0 20px;
    }

    .philosophy-content p {
        font-size: 1.2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}