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

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(41, 13, 8, 0.95) 0%, rgba(20, 5, 5, 0.9) 100%);
    border-left: 1px solid rgba(255, 140, 50, 0.12);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff8c32 0%, #ffaa4d 100%);
    border-radius: 10px;
    border: 2px solid rgba(41, 13, 8, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffaa4d 0%, #ffc266 100%);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #e67a22 0%, #ff8c32 100%);
}

::-webkit-scrollbar-corner {
    background: rgba(41, 13, 8, 0.95);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ff8c32 rgba(41, 13, 8, 0.9);
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 180, 120, 0.08) 0%, transparent 26%),
        radial-gradient(circle at 80% 15%, rgba(255, 140, 50, 0.10) 0%, transparent 20%),
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.03) 0%, transparent 16%),
        radial-gradient(circle at 20% 80%, rgba(255, 120, 60, 0.06) 0%, transparent 22%),
        radial-gradient(circle at 85% 75%, rgba(255, 190, 140, 0.06) 0%, transparent 20%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 38%, #050505 100%);
    color: #ffd4a3;
    overflow-x: hidden;
    overflow-y: auto;
    font-weight: 400;
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: -8%;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 180, 120, 0.08) 0%, rgba(255, 180, 120, 0.04) 12%, transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(255, 140, 50, 0.10) 0%, rgba(255, 140, 50, 0.04) 10%, transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 16%, transparent 34%);
    filter: blur(18px);
    opacity: 0.65;
    z-index: -3;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 12%, transparent 24%, transparent 76%, rgba(255, 255, 255, 0.01) 88%, rgba(255, 255, 255, 0.03) 100%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 30%);
    opacity: 0.28;
    z-index: -2;
    pointer-events: none;
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 10, 10, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    height: 52px;
    padding: 0 40px;
    background: rgba(15, 10, 10, 0.92);
    border-bottom: 1px solid rgba(255, 140, 50, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff8c32 0%, #ffd4a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 140, 50, 0.65), 0 0 20px rgba(255, 140, 50, 0.25);
    justify-self: start;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .logo {
    font-size: 20px;
}

.logo-hub {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.25);
    display: inline-block;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    margin: 0 4px;
}

.nav-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 46px;
    padding: 0;
    background: rgba(255, 140, 50, 0.02);
    border: 1px solid rgba(255, 140, 50, 0.12);
    border-radius: 8px;
    color: #ffaa4d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-shadow: 0 0 8px rgba(255, 140, 50, 0.3);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, height 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), letter-spacing 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 2px;
    background: #ff8c32;
    opacity: 0.35;
    transition: all 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 140, 50, 0.7);
    background: linear-gradient(180deg, rgba(255, 140, 50, 0.03) 0%, rgba(255, 140, 50, 0.12) 100%);
    border-color: rgba(255, 140, 50, 0.34);
    box-shadow: 0 0 8px rgba(255, 140, 50, 0.08);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    left: 0;
    right: 0;
    opacity: 1;
}

nav.scrolled .nav-links a {
    height: 36px;
    width: 130px;
    font-size: 11px;
    letter-spacing: 2px;
}

.nav-actions {
    justify-self: end;
}

.discord-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 140, 50, 0.42);
    border-radius: 6px;
    background: rgba(255, 140, 50, 0.07);
    display: inline-flex;
    align-items: center;
    color: #d4a86b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-btn:hover {
    background: rgba(255, 140, 50, 0.16);
    border-color: #ff8c32;
    color: #ff8c32;
}

nav.scrolled .discord-btn {
    padding: 6px 16px;
    font-size: 11px;
}

main {
    flex: 1;
    width: 100%;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 140, 50, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 50, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 15%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, black 15%, transparent 75%);
}

section {
    width: 100%;
    padding: 80px 20px;
    box-sizing: border-box;
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
    contain: layout paint style;
}

.gradient-text {
    background: linear-gradient(135deg, #ff8c32 0%, #ffd4a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 64px;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ff8c32 0%, #ffd4a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 140, 50, 0.45), 0 0 20px rgba(255, 140, 50, 0.15);
}

.h1-hub {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 22px rgba(255, 255, 255, 0.3);
    display: inline-block;
    margin-left: 4px;
}

.hero p {
    font-size: 16px;
    color: #c8b08a;
    margin-top: 20px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.script-showcase,
.feature-card,
.faq-question,
.faq-answer {
    contain: paint;
}

.script-showcase {
    background: linear-gradient(135deg, rgba(45, 18, 8, 0.84), rgba(25, 10, 5, 0.78));
    border: 1px solid rgba(255, 140, 50, 0.22);
    border-radius: 12px;
    padding: 24px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.script-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 50, 0.4), transparent);
}

.script-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 20%, transparent 70%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.script-header {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
}

.script-header-text {
    font-size: 11px;
    color: #27c93f;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: rgba(39, 201, 63, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(39, 201, 63, 0.18);
}

.script-code {
    color: #ff8c32;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-all;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.28);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 140, 50, 0.14);
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c32 0%, #ffaa4d 100%);
    color: #0a0a0a;
    box-shadow: 0 8px 18px rgba(255, 140, 50, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 140, 50, 0.24);
}

.btn-secondary {
    background: transparent;
    color: #d4a86b;
    border: 1px solid rgba(255, 140, 50, 0.42);
}

.btn-secondary:hover {
    background: rgba(255, 140, 50, 0.08);
    border-color: #ff8c32;
    color: #ff8c32;
}

.features-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(45, 18, 8, 0.78), rgba(25, 10, 5, 0.72));
    border: 1px solid rgba(255, 140, 50, 0.16);
    border-radius: 12px;
    padding: 32px 24px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 50, 0.06), transparent);
    transition: left 0.4s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    border-color: rgba(255, 140, 50, 0.34);
    background: linear-gradient(135deg, rgba(55, 22, 10, 0.84), rgba(35, 15, 6, 0.78));
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: #ffd4a3;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.feature-card p {
    color: #c8b08a;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}

.faq {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(135deg, rgba(45, 15, 10, 0.34), rgba(25, 8, 5, 0.34));
}

.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.faq-item {
    margin-bottom: 8px;
}

.faq-question {
    background: linear-gradient(135deg, rgba(45, 18, 8, 0.82), rgba(25, 10, 5, 0.78));
    border: 1px solid rgba(255, 140, 50, 0.16);
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(55, 22, 10, 0.88), rgba(35, 15, 6, 0.82));
    border-color: rgba(255, 140, 50, 0.3);
}

.faq-item.active .faq-question {
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, rgba(55, 22, 10, 0.88), rgba(35, 15, 6, 0.82));
    border-color: rgba(255, 140, 50, 0.3);
}

.faq-answer {
    background: linear-gradient(180deg, rgba(45, 18, 8, 0.88) 0%, rgba(25, 10, 5, 0.92) 100%);
    border: 1px solid rgba(255, 140, 50, 0.3);
    border-top: none;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, padding 0.22s ease, opacity 0.22s ease;
    color: #c8b08a;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    position: relative;
    top: -6px;
}

.faq-answer.active {
    max-height: 220px;
    padding: 16px 24px;
    opacity: 1;
}

.arrow {
    transition: transform 0.18s ease;
    font-size: 12px;
    color: #ff8c32;
}

.arrow.active {
    transform: rotate(180deg);
}

footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: rgba(12, 3, 3, 0.9);
    border-top: 1px solid rgba(255, 140, 50, 0.16);
    padding: 30px 20px;
    text-align: center;
    color: #8b6f47;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d4a86b;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: #ff8c32;
}

@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        height: 60px;
    }

    nav.scrolled {
        height: 48px;
        padding: 0 20px;
    }

    .nav-links {
        justify-self: unset;
        margin: 0 auto;
    }

    .nav-links li {
        margin: 0 2px;
    }

    .nav-links a {
        height: 38px;
        width: 115px;
        padding: 0;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    nav.scrolled .nav-links a {
        height: 32px;
        width: 100px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .discord-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    nav.scrolled .discord-btn {
        padding: 5px 12px;
        font-size: 10px;
    }

    h1 {
        font-size: 40px;
    }

    section {
        padding: 50px 20px;
    }

    .hero p {
        font-size: 16px;
    }

    .button-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .script-showcase {
        margin: 30px 0;
        padding: 20px;
    }

    .script-code {
        font-size: 13px;
        padding: 12px;
    }

    .script-header-text {
        font-size: 10px;
        padding: 3px 8px;
    }

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

    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-thumb {
        border: 1px solid rgba(41, 13, 8, 0.8);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body::before {
        display: none;
    }

    .nav-links a,
    .discord-btn,
    .btn,
    .feature-card,
    .faq-question,
    .faq-answer,
    .arrow,
    .feature-card::before,
    nav,
    .logo {
        transition: none !important;
    }
}