/* ===== Global Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-transform: lowercase;
    overflow-x: hidden;
}

/* Subtle noise texture */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.05;
    pointer-events: none;
    background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png') repeat;
}

/* ===== Header ===== */
header {
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== Buttons ===== */
.btn {
    border: 1px solid #fff;
    padding: 10px 22px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: scaleY(1);
}

.btn:hover {
    color: #000;
}

/* ===== Floating Top Nav ===== */
.mid-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 15px;
    font-weight: 600;
    z-index: 20;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    padding: 10px 25px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
}

.mid-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    position: relative;
    transition: all 0.25s ease;
}

.mid-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.mid-nav a:hover {
    opacity: 1;
}

.mid-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== Main Pages (Home, Commands, etc) ===== */
main {
    padding: 180px 5% 120px; /* top for fixed nav, bottom for footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 200px);
    text-align: center;
}

main h1 {
    font-size: 70px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(255,255,255,0.15);
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

main p {
    font-size: 18px;
    opacity: 0.7;
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== Features Section (Main Page) ===== */
.features {
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.features h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -1px;
    text-transform: uppercase;
    opacity: 0.9;
}

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

.feature {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.feature:hover {
    background: rgba(255,255,255,0.15);
    text-shadow: 0 0 6px #fff;
    transform: translateY(-5px);
}

/* ===== Commands Page ===== */
.commands-container {
    width: 100%;
    max-width: 1400px;
}

.command-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: flex-start;
}

.category-btn {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-btn.active,
.category-btn:hover {
    background: #fff;
    color: #000;
}

.commands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}

.command-card {
    min-height: 80px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: default;
}

.command-card:hover {
    background: rgba(255,255,255,0.15);
    text-shadow: 0 0 6px #fff;
    transform: translateY(-3px);
}

/* ===== FAQ Page ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.faq-question:hover {
    text-shadow: 0 0 6px #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    background: rgba(255,255,255,0.02);
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 12px 24px 18px 24px;
}

.faq-answer p {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.5;
}

.faq-answer a {
    color: #fff;
    text-decoration: underline;
    transition: 0.2s ease;
}

.faq-answer a:hover {
    opacity: 0.9;
}

/* ===== Footer ===== */
footer {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    opacity: 0.35;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .commands-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    main h1 {
        font-size: 50px;
    }
    main p {
        font-size: 16px;
    }
    .commands-list {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}