:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
    --transition-speed: 0.3s;
    --hero-bg-image: url('images/hero.png'); /* hero background image */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
    scroll-margin-top: 92px; /* ensure anchors clear fixed nav */
}

h1,
 h2,
 h3 {
    line-height: 1.2;
    color: #fff;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 12px; /* add vertical margin from top */
    left: 16px; /* add horizontal margin */
    right: 16px; /* add horizontal margin */
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85)); /* gradient backdrop for separation */
    backdrop-filter: blur(12px);
    border-radius: 12px; /* subtle rounded corners */
    overflow: hidden; /* clip background blur to rounded edges */
    box-shadow: 0 10px 18px -14px var(--accent-glow);
    z-index: 1000; /* ensure on top of content */
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.5px;
}

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

/* Nav Menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.nav-link {
    color: var(--text-primary); /* improve readability */
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color var(--transition-speed) ease, background var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px -10px var(--accent-glow);
}

.nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 22px -10px var(--accent-glow);
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(30, 41, 59, 0.5);
    color: #fff;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease,
        border-color var(--transition-speed) ease;
}

.nav-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 20px -6px var(--accent-glow);
}

.nav-toggle .bar {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
    margin: 2px 0;
}

/* Sliding rectangle pill behind active nav link */
.nav-active-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 22px -10px var(--accent-glow);
    transition: left var(--transition-speed) ease, width var(--transition-speed) ease, top var(--transition-speed) ease, height var(--transition-speed) ease;
    pointer-events: none;
    z-index: 0;
}

@media(max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 90px; /* slight tweak for tablets */
        right: 16px;
        left: 16px;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        padding: 12px;
        flex-direction: column;
        gap: 6px;
        z-index: 200;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
    }

    /* Hide pill on mobile menu */
    .nav-active-bg {
        display: none;
    }
}

html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background:
        /* Top overlay + bottom fade that merges into page bg */
        linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.5) 55%, rgba(15, 23, 42, 0.85) 90%, var(--bg-dark) 100%),
        /* Existing radial glow from the top */
        radial-gradient(circle at top center, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
        /* Actual hero image */
        var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 92px;
    /* Offset for fixed nav */
}

@media(max-width: 768px) {
    .hero {
        background:
            linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.5) 48%, rgba(15, 23, 42, 0.85) 88%, var(--bg-dark) 100%),
            radial-gradient(circle at top center, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
            var(--hero-bg-image);
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px var(--accent-glow);
}

/* Glass Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

    .hero-content h1 {
        font-size: 5rem;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

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

/* Material Symbols styling for feature icons */
.feature-icon .material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 32;
    font-size: 2rem;
    line-height: 1;
    color: var(--accent-primary);
}

/* Material Symbols styling for role titles and headings */
.role-title .material-symbols-rounded,
.card h3 .material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 32;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--accent-primary);
}

.role-title .material-symbols-rounded,
.role-icon {
    margin-right: 6px;
}

/* Material Symbols styling for step icons */
.step-icon .material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 32;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-primary);
}

/* Lists */
.step-list {
    list-style: none;
    counter-reset: steps;
}

.step-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.step-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Quick Start Redesign */
.quick-card .role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.role-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.role-chip {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

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

.step-tile {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
    min-height: 120px;
}

.step-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
}

.step-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.step-icon {
    font-size: 1.25rem;
    margin-left: 44px;
}

.step-tile h4 {
    margin: 8px 0 6px 44px;
    font-size: 1rem;
    color: #fff;
}

.step-tile p {
    margin-left: 44px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Tabs for Quick Start */
.tabs {
    margin: 0 auto 1.25rem;
    max-width: 640px;
}

.tab-list {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
}

.tab-button {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed) ease, transform var(--transition-speed) ease,
        border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.tab-button:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
}

.tab-button.active {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    box-shadow: 0 8px 20px -6px var(--accent-glow);
}

.tab-panels {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: auto;
    /* Filter blur for non-active slides */
    filter: blur(2px) brightness(0.7);
    transition: all 0.3s ease;
}

.swiper-slide-active {
    filter: blur(0) brightness(1);
}

.swiper-slide img {
    display: block;
    width: 100%;
    border-radius: 20px;
    border: 4px solid #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.swiper-pagination-bullet {
    background: var(--text-secondary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent-primary);
    opacity: 1;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* Extra small screens fine-tuning */
@media(max-width: 480px) {
    nav {
        left: 12px;
        right: 12px;
        top: 10px;
        border-radius: 10px;
    }

    .hero {
        padding-top: 88px;
    }

    .nav-links {
        top: 88px;
    }

    .section-padding {
        scroll-margin-top: 88px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 0;
    background: #0b1120;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
