/* 
   Achievers Design System 
   Inspired by next-gen AI aesthetics and the frontend-ui-dark-ts skill.
*/

:root {
    /* Brand Colors */
    --brand-primary: #8251EE;
    --brand-secondary: #00D1FF;
    --brand-accent: #FF00E5;
    --brand-purple-hover: #9366F5;
    --brand-purple-light: #A37EF5;
    --brand-purple-subtle: rgba(130, 81, 238, 0.15);

    /* Neutral Palette (Tailwind-like) */
    --bg-dark-1: hsl(240, 10%, 4%);
    --bg-dark-2: hsl(240, 6%, 7%);
    --bg-dark-3: hsl(240, 5%, 10%);
    --bg-dark-4: hsl(240, 5%, 14%);

    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    --border-subtle: hsla(0, 0%, 100%, 0.08);
    --border-default: hsla(0, 0%, 100%, 0.12);

    /* ReachNest (Sub-brand) Colors */
    --reachnest-primary: #FF3D00;
    --reachnest-secondary: #FFD600;

    /* Spacing & Sizing */
    --container-max-width: 1280px;
    --section-spacing: 120px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark-1);
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-1);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-dark-4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Grid layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(4, 4, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--brand-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--brand-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(130, 81, 238, 0.3);
}

.nav-cta:hover {
    transform: scale(1.05);
    background: var(--brand-purple-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-default);
    color: white;
}

.btn-outline:hover {
    background: var(--border-subtle);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
}

@media (max-width: 991px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}