@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */
    --bg-card: #1e293b;
    /* Slate 800 */

    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */

    --accent-primary: #6366f1;
    /* Indigo 500 */
    --accent-hover: #4f46e5;
    /* Indigo 600 */
    --accent-secondary: #10b981;
    /* Emerald 500 */

    --border-color: rgba(148, 163, 184, 0.1);

    /* Spacing */
    --container-max: 1200px;
    --header-height: 80px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.flex {
    display: flex;
}

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

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

.grid {
    display: grid;
    gap: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

/* --- Navbar --- */
.navbar {
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.15), transparent 60%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Dashboard Preview (Interactive) --- */
.hero-visual {
    margin-top: 4rem;
    height: auto;
    min-height: 400px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 1rem;
    perspective: 1000px;
}

.dashboard-preview {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: rotateX(0deg);
}

.window-header {
    background: rgba(30, 41, 59, 0.5);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ef4444;
}

.control.yellow {
    background: #eab308;
}

.control.green {
    background: #22c55e;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
    margin-right: 50px;
    /* Balance controls */
}

.dashboard-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Cards */
.db-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.db-card:hover {
    background: rgba(30, 41, 59, 0.6);
}

.main-chart-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.metric-large {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-success {
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-secondary);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Toggles */
.time-toggles {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
    display: flex;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--bg-card);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Chart */
.chart-container {
    height: 250px;
    width: 100%;
}

/* Quick Stats */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 600;
}

.text-emerald {
    color: #34d399;
}

.text-rose {
    color: #fb7185;
}

.text-purple {
    color: #a78bfa;
}

/* Sidebar Cards */
.db-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.db-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Asset Donut (CSS Only Visual) */
.asset-donut-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.css-donut {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#a78bfa 0% 45%,
            #60a5fa 45% 75%,
            #94a3b8 75% 100%);
    position: relative;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05);
    /* Outer ring visual */
}

.css-donut::after {
    content: "";
    /* Inner cutout */
    position: absolute;
    inset: 15px;
    background: var(--bg-card);
    /* Match card background */
    border-radius: 50%;
}

.asset-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.purple {
    background: #a78bfa;
}

.dot.blue {
    background: #60a5fa;
}

.dot.gray {
    background: #94a3b8;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 12px;
}

.bg-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.bg-red {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
}

.bg-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-info span {
    color: white;
}

.activity-info small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.activity-amount {
    font-weight: 600;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background: var(--bg-darker);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* --- Social Proof --- */
.social-proof {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.social-proof p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    opacity: 0.5;
    flex-wrap: wrap;
}

.trust-logos i {
    font-size: 2rem;
}

/* --- Pricing Section (Specific to pricing.html but kept global) --- */
.pricing-section {
    padding: 120px 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    margin: 2rem 0;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--accent-secondary);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: white;
}

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

/* --- Footer --- */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: block;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simple hiding for MVP */
    }

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

    .pricing-card.popular {
        transform: none;
    }
}