:root {
    --bg: #050505;
    --accent: #6366f1;
    /* Electric Blue */
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 5, 0.68);
    --footer-bg: #0a0b11;
    --hero-overlay: rgba(10, 10, 15, 0.8);
    --chip-bg: rgba(255, 255, 255, 0.05);
}

html[data-theme='light'] {
    --bg: #f6f8fc;
    --text: #0f172a;
    --muted: rgba(15, 23, 42, 0.68);
    --glass: rgba(255, 255, 255, 0.72);
    --border: rgba(15, 23, 42, 0.12);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #e9eef7;
    --hero-overlay: rgba(245, 247, 252, 0.72);
    --chip-bg: rgba(15, 23, 42, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Grain & Glow Effects */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.2;
    z-index: 0;
}

/* Navigation */
.minimal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 30px 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -1px;
    color: var(--text);
    text-decoration: none;
}

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

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-links {
    gap: 1.2rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-actions {
    gap: 0.75rem;
}

.theme-toggle,
.hamburger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.theme-toggle:hover,
.hamburger:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-menu {
    position: fixed;
    top: 92px;
    left: 5%;
    right: 5%;
    z-index: 99;
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
}

.mobile-menu.open {
    display: flex;
}

/* Hero bg */
.hero-bg-brands {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.25;
}

.hero-bg-brands img {
    position: absolute;
    filter: grayscale(100%);
    transition: all 0.5s ease;
    animation: slowFloat 8s ease-in-out infinite alternate;
}

.hero:hover .hero-bg-brands img {
    filter: grayscale(0%);
    opacity: 0.8;
}

@keyframes slowFloat {
    0% {
        transform: translateY(0) rotate(-2deg);
    }

    100% {
        transform: translateY(-30px) rotate(2deg);
    }
}

/* Hero Styling */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: -1;
    transition: background-color 0.25s ease;
}

.hero-content {
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: clamp(60px, 8vw, 120px);
    line-height: 0.9;
    letter-spacing: -4px;
    font-weight: 900;
    margin-bottom: 20px;
}

.sub-copy {
    font-size: 18px;
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 30px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.28);
}

/* The Bottom Sticky Search */
.search-anchor {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.search-shell {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.search-bar-wrapper {
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 18px 25px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.search-bar-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

input {
    background: transparent;
    border: none;
    color: var(--text);
    width: 100%;
    font-size: 18px;
    outline: none;
    text-align: center;
}

input::placeholder {
    color: var(--muted);
}

.quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 12px;
    color: var(--muted);
}

.quick-chip {
    color: var(--text);
    background: var(--chip-bg);
    border: 1px solid var(--border);
    padding: 0.42rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font: inherit;
    transition: all 0.2s ease;
}

.quick-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 100px 5%;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.98rem;
}

.site-footer {
    margin-top: 1rem;
    padding: 3.5rem 5% 1.5rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-copy {
    color: var(--muted);
    max-width: 460px;
    line-height: 1.8;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-links-grid h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.footer-links-grid a {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--muted);
    text-decoration: none;
}

.footer-links-grid a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 980px) {
    .hero {
        min-height: 100svh;
        height: auto;
        padding-top: 8rem;
        padding-bottom: 11rem;
    }

    .hero h1 {
        font-size: clamp(46px, 10vw, 82px);
        line-height: 0.95;
        letter-spacing: -2px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .minimal-nav {
        padding: 20px 4%;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .hero-bg-brands img {
        opacity: 0.18;
    }

    .search-shell {
        max-width: 92%;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .grain-overlay {
        opacity: 0.08;
    }

    .glow-orb {
        width: 320px;
        height: 320px;
        filter: blur(80px);
    }

    .hero {
        padding-top: 6.5rem;
        padding-bottom: 10rem;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 56px);
        line-height: 1;
        margin-bottom: 1rem;
    }

    .sub-copy {
        font-size: 0.98rem;
        max-width: 320px;
        margin-bottom: 1.25rem;
    }

    .cta-primary {
        width: 100%;
        max-width: 300px;
    }

    .search-anchor {
        bottom: 24px;
        padding: 0 14px;
    }

    .search-bar-wrapper {
        padding: 14px 18px;
        border-radius: 22px;
    }

    input {
        font-size: 15px;
        text-align: left;
    }

    .quick-links {
        justify-content: flex-start;
        width: 100%;
    }

    .quick-links span {
        width: 100%;
    }

    .features-grid {
        padding: 72px 4% 56px;
        gap: 14px;
    }

    .feature-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .site-footer {
        padding: 2.75rem 4% 1.2rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}