:root {
    color-scheme: only light;
    /* We are controlling the dark theme manually via vars */
    --bg: #050505;
    --bg-grad-start: #0a0a0a;
    --bg-grad-end: #000000;

    --text-main: #f2f2f2;
    --text-muted: #a1a1aa;
    --text-dark: #18181b;

    --accent-primary: #f59e0b;
    /* Amber 500 */
    --accent-glow: rgba(245, 158, 11, 0.4);
    --accent-hover: #fbbf24;
    /* Amber 400 */

    --glass-surface: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

    --radius-lg: 24px;
    --radius-md: 16px;
    --detail-width: 1200px;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px -5px var(--accent-glow);

    --trans-fast: 0.2s ease;
    --trans-med: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at 50% 0%, #1a1a1a, var(--bg));
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    color: #fff;
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--trans-fast);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* --- Utils --- */
.container {
    max-width: var(--detail-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--accent-primary);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border-radius: 999px;
    transition: var(--trans-med);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    z-index: -1;
    transition: var(--trans-fast);
}

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

.btn:hover::after {
    opacity: 0.2;
}

/* --- Topbar --- */
.topbar {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 50;
}

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

.topbar-info,
.topbar-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topbar-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topbar-info svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-primary);
}

.topbar a:hover {
    color: var(--accent-primary);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 20px 0;
    transition: padding var(--trans-med), background var(--trans-med);
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Increased slightly for the new logo */
    width: auto;
    border-radius: 0;
    /* Removed radius for transparent logo */
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;

    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: var(--glass-highlight);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -100px;
    /* Offset header height if transparent */
    padding-top: 100px;
}

/* Dynamic background with parallax feel */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.7) 50%, rgba(5, 5, 5, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.hero-tag svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-glass {
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Features Grid --- */
.features-section {
    position: relative;
    padding: 80px 0;
    margin-top: -60px;
    /* Overlap hero */
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--trans-med);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-glow);
}

/* Ambient light effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: var(--trans-med);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.icon-box svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: block;
}

.content-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--glass-border);
}

.content-block ul {
    padding-left: 20px;
    color: var(--text-muted);
}

.content-block li {
    margin-bottom: 10px;
}

.content-block li::marker {
    color: var(--accent-primary);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: #000;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li,
.footer-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-primary);
    flex-shrink: 0;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.copy {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: #555;
    font-size: 0.8rem;
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Styles --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {

    /* Hide topbar on mobile to save space */
    .topbar {
        display: none;
    }

    /* Header Layout */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        /* Force row direction */
        padding: 0 20px;
    }

    .logo img {
        height: 48px;
    }

    /* Hide CTA button in header on mobile */
    .cta-btn {
        display: none;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 0;
        z-index: 100;
    }

    /* Mobile Nav Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        background: #050505;
        padding: 100px 30px 40px;
        flex-direction: column;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--glass-border);
        display: flex;
        z-index: 90;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: left;
    }

    /* Menu Toggle Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Content Adjustments */
    h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-tags {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .features-section {
        margin-top: 0;
        padding-top: 40px;
    }

    .section {
        padding: 60px 0;
    }

    .feature-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links li,
    .footer-links li a {
        justify-content: center;
    }
}