/* HumanFirst: Sophisticated Design System */
@import url('https://fonts.googleapis.com/css2?family=Syne:ital,wght@0,700;0,800;1,700;1,800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --bg-page: #0a0f0a;
    --bg-surface: rgba(0, 0, 0, 0.2);
    --bg-card: rgba(15, 26, 15, 0.3);
    --bg-card-dark: #0c0e0c;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #bbf7d0;
    --text-muted: #6ee7b7;
    --accent-green: #22c55e;
    --accent-green-light: #86efac;
    --accent-green-dark: #16a34a;
}

/* ===== ENHANCED ANIMATIONS ===== */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: #86efac;
    inherits: false;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    background-color: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient blur orbs */
.orb {
    position: fixed;
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
    animation: orb-float 20s ease-in-out infinite;
}

.orb-top-left {
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(34, 197, 94, 0.08);
    animation-delay: 0s;
}

.orb-bottom-right {
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: rgba(34, 197, 94, 0.08);
    animation-delay: 10s;
}

@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.05;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.08;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.06;
    }
}

/* Vertical grid lines */
.grid-lines {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    pointer-events: none;
    z-index: 2;
}

.grid-line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

/* Main content wrapper - removed card container */
body > section,
body > nav,
body > footer {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

/* NAVBAR */
.navbar {
    display: flex;
    padding: 2rem 3rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    margin: 0 auto;
    max-width: 1400px;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-green),
        var(--accent-green-light),
        var(--accent-green),
        transparent
    );
    background-size: 200% 100%;
    animation: navbar-border-flow 3s linear infinite;
    pointer-events: none;
}

@keyframes navbar-border-flow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 10;
    position: relative;
    cursor: pointer;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.nav-logo {
    background: rgba(34, 197, 94, 0.1);
    padding: 4px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.nav-brand span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
}

/* Center pill nav */
.nav-pill {
    position: relative;
    display: flex;
    gap: 4px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border-radius: 9999px;
    padding: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 1px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.nav-item {
    padding: 6px 16px;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* CTA button */
.nav-cta {
    position: relative;
    background: linear-gradient(to bottom, var(--accent-green-dark), var(--accent-green));
    border-radius: 9999px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent-green-dark), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 10;
    cursor: pointer;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: conic-gradient(
        from var(--gradient-angle, 0deg),
        transparent 0%,
        transparent 40%,
        var(--accent-green-light) 50%,
        #ffffff 55%,
        var(--accent-green-light) 60%,
        transparent 70%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-spin 2.5s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.nav-cta:hover::before {
    opacity: 0.6;
}

.nav-cta:hover {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5), 0 0 0 1px var(--accent-green-dark), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* HERO SECTION */
.hero {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 4rem;
    padding: 4rem 3rem 6rem;
    align-items: center;
    position: relative;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }
}

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

/* Badge pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 9999px;
    padding: 4px 12px;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green-light);
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.badge-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-green-light);
}

/* Hero title */
.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 0.9;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-green-light), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.pill {
    background: rgba(34, 197, 94, 0.1);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Primary button with animated border spin */
.btn-primary {
    position: relative;
    padding: 2px;
    border-radius: 9999px;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    overflow: visible;
    isolation: isolate;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    padding: 2px;
    background: conic-gradient(
        from var(--gradient-angle, 0deg),
        transparent 0%,
        transparent 40%,
        var(--accent-green) 50%,
        var(--accent-green-light) 55%,
        var(--accent-green) 60%,
        transparent 70%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: border-spin 2.5s linear infinite;
    pointer-events: none;
}

@keyframes border-spin {
    to {
        --gradient-angle: 360deg;
        transform: rotate(360deg);
    }
}

.btn-inner {
    position: relative;
    display: block;
    background: linear-gradient(to bottom, #1a1f1a, #0f140f);
    padding: 14px 32px;
    border-radius: 9999px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary:hover .btn-inner {
    background: linear-gradient(to bottom, #1f2a1f, #14191a);
    box-shadow: inset 0 0 0 1px var(--accent-green), 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-large {
    padding: 2px;
}

.btn-large .btn-inner {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Hero visual - bento cards */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SECTIONS */
section {
    padding: 5rem 3rem;
    position: relative;
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

.section-alt {
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* TOOL SECTION */
.tool-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tool-card > * {
    position: relative;
    z-index: 1;
}

.year-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.year-picker label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
    min-width: 200px;
}

#web-year-input {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 700;
    width: 120px;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
}

#web-year-input:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#web-ai-warning {
    display: none;
    color: #ff5555;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 12px 16px;
    border: 1px solid rgba(255, 85, 85, 0.3);
    border-radius: 0.5rem;
    background: rgba(255, 85, 85, 0.05);
}

.search-engines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .search-engines-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 2rem;
    }
    
    section {
        padding: 3rem 2rem;
    }
}

.engine-card {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.5s ease;
}

.engine-card:hover {
    border-color: var(--border-hover);
    background: rgba(34, 197, 94, 0.08);
}

.engine-name {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    margin-bottom: 12px;
}

.engine-row {
    display: flex;
    gap: 8px;
}

.engine-row input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.engine-row input:focus {
    border-color: var(--accent-green);
}

.engine-row button {
    background: var(--accent-green-dark);
    color: var(--text-primary);
    border: none;
    padding: 0 20px;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
}

.engine-row button:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent 50%, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.15);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* INSTALL STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.5s ease;
}

.step-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.step-num {
    background: var(--accent-green);
    color: var(--bg-page);
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.step-content strong {
    color: var(--accent-green-light);
    font-weight: 500;
}

/* FOOTER */
footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-main a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-main a:hover {
    color: var(--accent-green-light);
}

.footer-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Injected styles for extension */
.humanfirst-injected-btn {
    background: linear-gradient(135deg, #0a0f0a, #0f1a0f) !important;
    color: #86efac !important;
    border: 2px solid #22c55e !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    margin: 15px 0 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), inset 0 0 15px rgba(34, 197, 94, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 9999 !important;
    font-family: 'DM Sans', sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
}

.humanfirst-injected-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent) !important;
    transition: left 0.5s ease !important;
}

.humanfirst-injected-btn:hover::before {
    left: 100% !important;
}

.humanfirst-injected-btn:hover {
    background: linear-gradient(135deg, #14532d, #22c55e) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5), inset 0 0 20px rgba(34, 197, 94, 0.2) !important;
}

.humanfirst-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(34, 197, 94, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    margin-left: 12px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2) !important;
    font-family: 'DM Sans', sans-serif !important;
    letter-spacing: 0.5px !important;
}

/* ===== ENHANCED INTERACTIVE ELEMENTS ===== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: var(--accent-green-light);
}

/* Enhanced focus states */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Radial gradient backgrounds for sections */
.section-glow {
    position: relative;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Divider with gradient */
.divider-gradient {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 3rem 0;
}

/* Stat counter animation ready */
.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Enhanced card hover lift */
.card-lift {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Glow on hover utility */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3),
                0 0 40px rgba(34, 197, 94, 0.1);
}

/* Backdrop blur utility */
.backdrop-blur-strong {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* Text shimmer effect */
.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--text-secondary) 0%,
        var(--text-primary) 50%,
        var(--text-secondary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

/* Smooth scale on active */
.scale-on-active:active {
    transform: scale(0.98);
}

/* Border gradient animation */
.border-gradient-animated {
    position: relative;
    border: 1px solid transparent;
    background: var(--bg-card) padding-box,
                linear-gradient(135deg, var(--accent-green), transparent) border-box;
}

/* Fade in animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced grid lines with pulse */
.grid-line {
    animation: grid-pulse 4s ease-in-out infinite;
}

.grid-line:nth-child(1) { animation-delay: 0s; }
.grid-line:nth-child(2) { animation-delay: 0.5s; }
.grid-line:nth-child(3) { animation-delay: 1s; }
.grid-line:nth-child(4) { animation-delay: 1.5s; }
.grid-line:nth-child(5) { animation-delay: 2s; }
.grid-line:nth-child(6) { animation-delay: 2.5s; }

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.1;
    }
}

/* Dot pattern background */
.dot-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Enhanced navbar blur on scroll */
.navbar-scrolled {
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 15, 10, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== TERMINAL BENTO GRID STYLES ===== */

/* Import monospace font for terminal aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Courier+Prime:wght@400;700&display=swap');

/* Hero Bento Grid */
.bento-grid-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.bento-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent-green);
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2),
                inset 0 0 20px rgba(34, 197, 94, 0.05);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(34, 197, 94, 0.03),
        rgba(34, 197, 94, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.5;
}

.bento-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent-green-light);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                inset 0 0 30px rgba(34, 197, 94, 0.1);
    transform: translateY(-4px) scale(1.02);
}

.bento-card:hover::before {
    opacity: 1;
    animation: scan-line 2s linear infinite;
}

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Bento Grid Spanning */
.bento-span-2 {
    grid-column: span 2;
}

.bento-span-3 {
    grid-column: span 3;
}

/* Bento Card Content */
.bento-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.bento-prompt {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    color: var(--accent-green-light);
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 0 5px var(--accent-green);
    animation: blink-cursor 1.5s step-end infinite;
}

@keyframes blink-cursor {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.bento-label {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.bento-stat {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green-light);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--accent-green);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.terminal-text {
    font-variant-numeric: tabular-nums;
}

.bento-sublabel {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Terminal Log */
.terminal-log {
    position: relative;
    z-index: 1;
}

.log-line {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    font-size: 0.875rem;
    color: var(--accent-green-light);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fade-in-log 0.5s ease forwards;
}

.log-line:nth-child(1) {
    animation-delay: 0.1s;
}

.log-line:nth-child(2) {
    animation-delay: 0.3s;
}

.log-line:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fade-in-log {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Features Bento Grid */
.bento-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-feature {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(34, 197, 94, 0.02),
        rgba(34, 197, 94, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    opacity: 0.5;
}

.bento-feature::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-green), transparent 50%, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 0.75rem;
}

.bento-feature:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--accent-green);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.2),
                inset 0 0 30px rgba(34, 197, 94, 0.1);
}

.bento-feature:hover::after {
    opacity: 0.1;
}

.feature-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.terminal-prompt {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    color: var(--accent-green);
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 0 5px var(--accent-green);
}

.feature-status {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green-light);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.feature-title-terminal {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.feature-desc-terminal {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Scanline effect for terminal aesthetic */
@keyframes scanline-move {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.bento-card:hover::after,
.bento-feature:hover::before {
    animation: scanline-move 3s linear infinite;
}

/* Responsive Bento Grid */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }

    .navbar {
        padding: 1.5rem 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-pill {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-cta {
        order: 2;
    }

    .bento-grid-hero {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .bento-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-brand span {
        font-size: 16px;
    }

    .nav-brand img {
        width: 32px;
        height: 32px;
    }

    .nav-pill {
        gap: 2px;
        padding: 3px;
    }

    .nav-item {
        padding: 5px 12px;
        font-size: 12px;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 12px;
    }

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

    .bento-span-2,
    .bento-span-3 {
        grid-column: span 1;
    }

    .bento-card,
    .bento-feature {
        padding: 1.25rem;
    }

    .bento-stat {
        font-size: 2rem;
    }
}

/* Remove terminal cursor from section titles */

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .bento-card,
    .bento-feature,
    .bento-prompt,
    .log-line,
    .bento-card::before,
    .bento-card::after,
    .bento-feature::before {
        animation: none !important;
    }

    .bento-card:hover,
    .bento-feature:hover {
        transform: none;
    }
}

/* ===== WEBGL SHADER CANVAS ===== */
#shaderCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
    pointer-events: none;
    opacity: 1;
}
