/* =========================================
   Base & Variables
========================================= */
:root {
    --bg-dark: #07090F;
    --bg-darker: #030407;
    --primary: #6B46C1;
    --primary-light: #9F7AEA;
    --primary-glow: rgba(107, 70, 193, 0.4);
    --secondary: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);

    --success: #10B981;
    --danger: #EF4444;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   Components (Glassmorphism, Buttons)
========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

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

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.05);
}

.w-100 {
    width: 100%;
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.logo i {
    color: var(--primary-light);
}

.logo span {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    padding: 180px 24px 100px;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(60px);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(107, 70, 193, 0.15);
    border: 1px solid rgba(107, 70, 193, 0.3);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Hero Dashboard Mockup Animation */
.hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    perspective: 1000px;
}

.dashboard-mockup {
    width: 100%;
    height: 600px;
    transform: rotateX(10deg) scale(0.95);
    transform-origin: top center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-mockup:hover {
    transform: rotateX(0deg) scale(1);
}

.mockup-header {
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
}

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

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.mockup-body {
    display: flex;
    flex: 1;
}

.mockup-sidebar {
    width: 240px;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-nav-item {
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.mockup-nav-item.active {
    background: rgba(107, 70, 193, 0.2);
    border-left: 3px solid var(--primary-light);
}

.mockup-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border: none;
    background: transparent;
}

.mockup-stat {
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.heatmap-preview {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.heatmap-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.red-blob {
    width: 200px;
    height: 200px;
    background: var(--danger);
    top: 20%;
    left: 30%;
    animation: pulse 4s infinite alternate;
}

.yellow-blob {
    width: 150px;
    height: 150px;
    background: #FFBD2E;
    bottom: 20%;
    right: 20%;
    animation: pulse 3s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* =========================================
   Features
========================================= */
.features-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(107, 70, 193, 0.5);
    background: linear-gradient(180deg, rgba(107, 70, 193, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(107, 70, 193, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

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

/* =========================================
   Compare Table
========================================= */
.compare-section {
    padding: 120px 0;
    position: relative;
}

.comparison-table-wrapper {
    overflow-x: auto;
    padding: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.comparison-table th {
    padding: 24px;
    font-family: var(--font-heading);
    font-size: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--text-main);
    font-weight: 500;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.price-tag {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

.pro-column {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 8px;
}

.check {
    color: var(--success);
}

.cross {
    color: var(--text-muted);
    opacity: 0.5;
}

/* =========================================
   Pricing / CTA
========================================= */
.cta-section {
    padding: 120px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.pricing-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 60px;
    align-items: center;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    width: 380px;
    text-align: left;
    position: relative;
}

.pricing-card.highlighted {
    background: var(--glass-bg);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px var(--primary-glow);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.guarantee {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* =========================================
   Footer
========================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
}

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

.footer-links h4 {
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* =========================================
   Animations
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        flex-direction: column;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}