/* =========================================
   1. VARIABLES (FROM APP.CSS)
   ========================================= */
:root {
    --primary: #bd5ce7;
    --primary-hover: #b929d9;
    --bg: #f4f5f9;
    --bg-subtle: #f9fafb;
    --surface: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border: #dfe6e9;

    --status-added: #00b894;
    --status-modified: #fdcb6e;
    --status-deleted: #d63031;

    --radius-card: 12px;
    --radius-btn: 8px;

    --font-sans: 'Inter', sans-serif;
}

/* =========================================
   2. GLOBAL RESET
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* =========================================
   3. UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-primary {
    color: var(--primary);
}

.text-added {
    color: var(--status-added);
}

.text-modified {
    color: var(--status-modified);
}

.text-deleted {
    color: var(--status-deleted);
}

/* --- Button Styles --- */

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    border-radius: var(--radius-btn);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    /* Prevents layout shift */
}

.big-btn {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Primary (Windows) */
.btn-action.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(189, 92, 231, 0.3);
}

.btn-action.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 92, 231, 0.4);
}

/* Dropdown Linux */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    gap: 8px;
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(206, 191, 191, 0.08);
    padding: 10px 0;
    min-width: 140px;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.dropdown-menu a {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg);
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.btn-action.secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-action:active {
    transform: scale(0.98);
}

/* =========================================
   4. LAYOUT SECTIONS
   ========================================= */

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-pill {
    display: inline-block;
    background-color: rgba(189, 92, 231, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

/* Button Group Layout */
.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.meta-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   5. VISUAL MOCKUP (CSS Only Dashboard)
   ========================================= */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.app-frame-mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.app-frame-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(189, 92, 231, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Mockup Details */
.mockup-header {
    height: 40px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bg-subtle);
}

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

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

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

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

.sidebar-item {
    height: 8px;
    width: 100%;
    border-radius: 4px;
    background: var(--bg);
}

.sidebar-item.active {
    background: var(--primary);
    opacity: 0.2;
}

.mockup-content {
    flex: 1;
    padding: 24px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-row {
    display: flex;
    gap: 16px;
}

.mock-card {
    flex: 1;
    background: var(--surface);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mock-label {
    font-size: 0.6rem;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mock-val {
    font-size: 1.2rem;
    font-weight: bold;
}

.details-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.mock-detail-card {
    background: var(--surface);
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mock-big-num {
    font-size: 1.5rem;
    font-weight: bold;
}

/* =========================================
   6. FEATURES SECTION
   ========================================= */
.features {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 24px;
    border-radius: var(--radius-card);
    transition: background 0.2s;
}

.feature-card:hover {
    background: var(--bg);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bg-primary-light {
    background: rgba(189, 92, 231, 0.1);
}

.bg-added-light {
    background: rgba(0, 184, 148, 0.1);
}

.bg-modified-light {
    background: rgba(253, 203, 110, 0.1);
}

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

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

/* =========================================
   7. FOOTER & RESPONSIVE
   ========================================= */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        margin: 0 auto 30px;
    }

    /* Stack buttons on mobile */
    .cta-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 16px;
    }

    .btn-action {
        width: 100%;
    }

    .app-frame-mockup {
        transform: none;
        height: 300px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    body {
        margin: 0;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .logo img {
        height: 50px;
        display: block;
    }

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