:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #28a745;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --header-height: 76px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1a202c;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar-landing {
    background: transparent;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-auth {
    background: var(--primary-gradient);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
    /* Match scrolled padding for consistency */
}

.navbar-landing.scrolled {
    background: var(--primary-gradient);
    /* Dark gradient background */
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: none;
}

/* Navbar Brand - Always White */
.navbar-brand img {
    height: 38px;
    transition: transform 0.3s ease;
}

.brand-text {
    color: white !important;
    /* Always white */
    transition: color 0.3s ease;
}

.navbar-toggler {
    color: white !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

/* Nav Link Styling - Premium Clean Look */
.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    margin: 0 4px;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline Animation Effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: transparent;
    /* Removed pill background */
    transform: none;
    /* Removed lift */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
    opacity: 1;
}

/* Scrolled State Text Colors */
.navbar-landing.scrolled .nav-link,
.navbar-landing.scrolled .navbar-brand {
    color: var(--text-main) !important;
}

/* Scrolled State Active Link (Always White Context) */
.navbar-landing.scrolled .nav-link:hover,
.navbar-landing.scrolled .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
}

.navbar-landing.scrolled .nav-link::after {
    background-color: white;
}

/* Scrolled Buttons */
.navbar-landing.scrolled .btn-outline-light {
    color: white;
    border-color: white;
    background: transparent;
}

.navbar-landing.scrolled .btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* Buttons */
.btn-glow {
    background: white;
    color: var(--primary);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--secondary);
    background: white;
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-primary-gradient:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 100px;
    background: var(--primary-gradient);
    color: white !important;
    margin-bottom: 0;
    /* Clip path for slanted edge if desired, skipping for simplicity matching user dash */
}

.hero-section h1,
.hero-section h2,
.hero-section p {
    color: white;
}

/* Cards */
.glass-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Stats */
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Footer */
footer {
    background-color: #1a202c;
    /* Keep dark footer */
    padding-top: 80px;
    padding-bottom: 40px;
    color: #e2e8f0;
    /* Lighter text base */
}

footer .text-muted {
    color: #a0aec0 !important;
    /* Overwrite bootstrap text-muted for footer */
}

.footer-link {
    color: #cbd5e0;
    /* Brighter link color */
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 5px;
    /* Subtle hover effect */
}

.footer-link:hover {
    color: white;
}

/* Utils */
.section-padding {
    padding: 80px 0;
}

.bg-light-alt {
    background-color: #ffffff;
}

.bg-light-base {
    background-color: #f8f9fa;
}

/* Code Block */
.code-window {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.code-header {
    background: #1a202c;
    padding: 12px 20px;
    border-bottom: 1px solid #4a5568;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #fc8181;
}

.dot-yellow {
    background: #f6e05e;
}

.dot-green {
    background: #68d391;
}

.code-tabs {
    display: flex;
    gap: 15px;
}

.code-tabs button {
    background: none;
    border: none;
    color: #718096;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.code-tabs button.active,
.code-tabs button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.code-content {
    padding: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.function {
    color: #f6ad55;
}

/* Orange */
.string {
    color: #68d391;
}

/* Green */
.keyword {
    color: #63b3ed;
}

/* Blue */

/* FAQ Accordion */
.accordion-item {
    background: white;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: white;
    color: #2d3748;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: #ebf4ff;
    color: var(--primary);
}

.accordion-body {
    background: white;
    color: #4a5568;
}