@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0A0E1A;
    --bg-secondary: #12172A;
    --bg-tertiary: #1A2040;
    --bg-glass: rgba(18, 23, 42, 0.65);

    --accent-primary: #8B5CF6;
    --accent-secondary: #6366F1;
    --accent-soft: rgba(139, 92, 246, 0.15);

    --text-primary: #F1F5F9;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --text-inverted: #0A0E1A;

    --border-default: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(139, 92, 246, 0.4);

    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
    --glow-accent: 0 0 25px rgba(139, 92, 246, 0.45);

    /* Legacy Maps for compatibility - mapped to new theme */
    --bg-color: var(--bg-primary);
    /* --bg-secondary is already defined above */
    --text-main: var(--text-primary);
    /* --text-muted is already defined above */

    /* Accent mappings */
    /* --accent-primary already defined */
    /* --accent-secondary already defined */
    --accent-glow: var(--glow-accent);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-text: linear-gradient(135deg, #8B5CF6, #6366F1);

    /* Borders & Glass */
    --border-color: var(--border-default);
    /* --glass-bg mapped to bg-glass */
    --glass-bg: var(--bg-glass);
    --glass-border: var(--border-default);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Animations */
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: 0.2s var(--ease-out-quint);
    --transition-normal: 0.4s var(--ease-out-quint);
    --transition-slow: 0.8s var(--ease-out-quint);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-secondary);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 6px 30px var(--glow-accent);
    transform: translateY(-2px);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-soft);
}

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-soft) 0%, rgba(0, 0, 0, 0) 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Navbar */
.navbar {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal);
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #8b5cf6;
    /* Updated to match hero title purple */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    /* Added per request */
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo span {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 180px;
    /* Increased to prevent overlap */
    position: relative;
    overflow: hidden;
}

/* Standard Section Padding for other pages */
.section {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Badge */
/* Hero Badge Removed (Fixed) */
/* .hero-badge-glass { removed } */

.hero-title {
    font-size: 7rem;
    /* Much larger as per image */
    font-weight: 900;
    /* Extra bold */
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-transform: uppercase;
    /* Match image style */
    color: #8b5cf6;
    /* Fallback solid color matching the purple in image */
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 700px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    /* Match image style */
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

/* Animations */
@keyframes hover-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float-element {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -15px);
    }
}

@keyframes float-pill {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

#features .feature-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    #features .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.1s ease-out, box-shadow 0.4s var(--ease-out-quint), border-color 0.4s var(--ease-out-quint);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at top right, var(--accent-soft), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.feature-card:hover .card-icon {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 24px var(--border-accent);
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Staggered Animation Delays */
.feature-grid .feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-grid .feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-grid .feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-grid .feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-grid .feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-grid .feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Integration Grid */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.integration-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all var(--transition-normal);
}

.integration-card:hover {
    border-color: var(--accent-secondary);
    background: var(--bg-tertiary);
    transform: translateY(-5px);
}

.integration-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
    transition: transform var(--transition-normal);
}

.integration-card:hover .integration-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Profile Preview */
.profile-preview {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 2px solid var(--accent-primary);
}

.profile-info h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: white;
}

.profile-badges {
    display: flex;
    gap: 8px;
}

.badge {
    width: 24px;
    height: 24px;
    background: #2a2a2a;
    border-radius: 6px;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile Optimizations */
.pricing-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-accent);
    background: var(--bg-tertiary);
}

.commands-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Status Check Card */
.status-check-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto 60px auto;
    transition: all var(--transition-normal);
}

/* Responsive */
@media (max-width: 960px) {
    :root {
        --header-height: 70px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section {
        padding: 80px 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    /* Mobile Hero Layout */
    .hero-grid-layout {
        flex-direction: column-reverse;
        /* Text below visual? No, user asked for below text. So just column. But maybe visual first is better? User said: "Bot should resize or move below text". So column. */
        flex-direction: column;
        gap: 40px;
        min-height: auto;
        padding-top: 40px;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        margin-top: 20px;
    }

    .bot-avatar-container {
        width: 300px;
        height: 300px;
    }

    .bot-avatar {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .cmd-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cmd-search-wrapper {
        max-width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Mobile Improvements */
    .status-check-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .status-check-card>div {
        width: 100%;
        justify-content: flex-start;
    }

    .feature-card {
        padding: 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
}

/* Redesigned Commands Page Styles */
.cmd-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    padding-top: 60px;
}

.cmd-page-title {
    font-size: 3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

/* Search Bar */
.cmd-search-wrapper {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.cmd-search-label {
    display: none;
}

.cmd-search-container-ref {
    position: relative;
    display: flex;
    align-items: center;
}

.cmd-search-input-ref {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px;
    padding-right: 45px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
}

.cmd-search-input-ref::placeholder {
    color: var(--text-muted);
}

.cmd-search-input-ref:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-soft);
    background: var(--bg-secondary);
}

.cmd-search-icon-ref {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color var(--transition-normal);
}

.cmd-search-input-ref:focus+.cmd-search-icon-ref {
    color: var(--accent-primary);
}

.cmd-category-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 48px;
    scrollbar-width: none;
}

.cmd-cat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 50px;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    font-weight: 600;
}

.cmd-cat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-2px);
}

.cmd-cat-pill.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px var(--accent-primary);
}

.cmd-cat-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cmd-cat-pill.active .cmd-cat-count {
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.cmd-card-ref {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
}

.cmd-card-ref:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cmd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cmd-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.cmd-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 40px;
}

.cmd-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.cmd-pill.admin {
    background: rgba(255, 59, 59, 0.05);
    color: #ff3b3b;
    border-color: rgba(255, 59, 59, 0.1);
}

.cmd-pill.mod {
    background: rgba(255, 171, 0, 0.1);
    color: #ffab00;
    border-color: rgba(255, 171, 0, 0.2);
}

.cmd-search-box {
    width: 300px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-normal);
}

.cmd-search-box:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-accent);
}

/* Floating OS Snippets */
.hero-floating-commands {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.cmd-snippet {
    position: absolute;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    /* Slightly larger */
    color: rgba(255, 255, 255, 0.8);
    /* Much brighter */
    background: rgba(0, 0, 0, 0.5);
    /* Darker bg for contrast */
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: float-up-fade 12s linear infinite;
    /* Faster for visibility */
}

.cmd-snippet span {
    color: var(--accent-secondary);
    margin-right: 8px;
    font-weight: bold;
}

.cmd-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    font-size: 0.8rem;
}

.cmd-2 {
    top: 60%;
    left: 10%;
    animation-delay: 5s;
}

.cmd-3 {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
    text-align: right;
}

.cmd-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 8s;
}

.cmd-5 {
    bottom: 10%;
    left: 40%;
    animation-delay: 12s;
}

@keyframes float-up-fade {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    15% {
        opacity: 0.9;
        /* High opacity for visibility */
        transform: translateY(0) scale(1);
    }

    85% {
        opacity: 0.9;
        transform: translateY(-80px) scale(1);
    }

}


/* =========================================
   Restored Hero Styles (Root Level)
   ========================================= */

.hero {
    position: relative;
    /* Ensure absolute children position relative to this */
    overflow: hidden;
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #8b5cf6;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 700px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    opacity: 0.9;
}

/* Floating OS Snippets */
.hero-floating-commands {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.cmd-snippet {
    position: absolute;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(10, 10, 10, 0.6);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: float-up-fade 12s linear infinite;
}

.cmd-snippet span {
    color: var(--accent-secondary);
    margin-right: 8px;
    font-weight: bold;
}

/* Random Positions */
.cmd-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    font-size: 0.8rem;
}

.cmd-2 {
    top: 65%;
    left: 8%;
    animation-delay: 5s;
}

.cmd-3 {
    top: 25%;
    right: 8%;
    animation-delay: 2s;
    text-align: right;
}

.cmd-4 {
    bottom: 25%;
    right: 15%;
    animation-delay: 8s;
}

.cmd-5 {
    bottom: 15%;
    left: 35%;
    animation-delay: 3s;
}

@keyframes float-up-fade {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    15% {
        opacity: 0.8;
        transform: translateY(0) scale(1);
    }

    85% {
        opacity: 0.8;
        transform: translateY(-80px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.95);
    }
}