:root {
    --primary: #4f46e5;
    /* Indigo 600 - Authority */
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary: #10b981;
    /* Emerald 500 - Security/Audit */
    --accent: #f59e0b;
    /* Amber 500 - Warning/Alerts */
    --bg-dark: #0f172a;
    /* Slate 900 - Professional Dark */
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-light: #f8fafc;
    --text-slate-900: #0f172a;
    --text-slate-700: #334155;
    --text-slate-500: #64748b;
    --text-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-slate-700);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-slate-900);
}

.section-title {
    font-size: 4rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Refined */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.dark .glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--text-slate-900);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 10rem 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 180px 0 0;
    text-align: center;
    background: radial-gradient(circle at top, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 20;
    position: relative;
    padding-bottom: 6rem;
}

.hero-dashboard-preview {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    box-shadow: 0 -10px 80px rgba(0, 118, 255, 0.15);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    background: #fff;
}

/* Gradient fade to software top to protect text legibility */
.hero-dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    z-index: 2;
}

.hero-dashboard-preview img {
    width: 100%;
    display: block;
    opacity: 1;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-light);
}

/* Layout Utilities */
.section-hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.section-hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.section-hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Apple Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-card:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-card img {
    width: 100%;
    margin-top: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-8 {
    grid-column: span 8;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 991px) {

    .col-4,
    .col-6,
    .col-8 {
        grid-column: span 12;
    }

    .section-hero h1 {
        font-size: 3.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Navbar Multi-page Active */
.nav-links a.active {
    color: #0f172a;
    /* Slate 900 */
    font-weight: 800;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary);
}