:root {
    --primary: #FF9900;
    --primary-hover: #ffad33;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --gradient: linear-gradient(135deg, #FF9900 0%, #ff5500 100%);
    --font-main: 'Inter', sans-serif
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: var(--font-main);
    background: linear-gradient(-45deg, #0f0f0f, #2a2a2a, #0f0f0f, #1f1f1f);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid transparent;
    transition: all .3s ease
}

header.scrolled {
    background: rgba(15, 15, 15, .8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.2rem
}

.logo img {
    height: 32px;
    width: auto
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color .3s
}

.nav-links a:hover {
    color: var(--text-main)
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: .5px
}

.btn-primary {
    background: linear-gradient(135deg, #FF9900 0%, #ff7700 50%, #FF9900 100%);
    background-size: 200% 200%;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 153, 0, .4), 0 0 2px rgba(255, 153, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
    animation: gradientShift 3s ease infinite
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: left .5s
}

.btn-primary:hover::before {
    left: 100%
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffad33 0%, #ff8800 50%, #ffad33 100%);
    background-size: 200% 200%;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 153, 0, .6), 0 0 30px rgba(255, 153, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
    animation: pulse 1.5s ease infinite
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(255, 153, 0, .6), 0 0 30px rgba(255, 153, 0, .4)
    }

    50% {
        box-shadow: 0 8px 30px rgba(255, 153, 0, .8), 0 0 40px rgba(255, 153, 0, .6)
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, .1);
    color: white;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px)
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
    border-color: rgba(255, 153, 0, .5);
    box-shadow: 0 4px 15px rgba(255, 153, 0, .2)
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.15rem
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    z-index: 5;
    background-color: var(--bg-dark)
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 15, 15, .95) 100%);
    pointer-events: none;
    z-index: 10
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
    filter: blur(3px);
    transform: scale(1.1)
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 15, 15, .4) 0%, var(--bg-dark) 100%)
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px
}

.highlight {
    color: var(--primary);
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 153, 0, .3)
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center
}

main {
    background: rgba(15, 15, 15, .95);
    position: relative;
    z-index: 2
}

main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 153, 0, .08) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 153, 0, .08) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: gridMove 15s linear infinite;
    pointer-events: none;
    opacity: .6;
    z-index: 0
}

main::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(255, 153, 0, .06) 80px, rgba(255, 153, 0, .06) 85px);
    animation: diagonalMove 25s linear infinite;
    pointer-events: none;
    opacity: .5;
    z-index: 0
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(60px, 60px)
    }
}

@keyframes diagonalMove {
    0% {
        transform: rotate(45deg) translate(0, 0)
    }

    100% {
        transform: rotate(45deg) translate(100px, 100px)
    }
}

.demo-section,
.features {
    position: relative;
    z-index: 3
}

.rank-progression-section {
    position: relative;
    z-index: 1
}

.demo-section {
    padding: 60px 0 80px;
    display: flex;
    justify-content: center
}

.demo-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 180px;
    background: radial-gradient(ellipse at center, rgba(255, 153, 0, .12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .3
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: .6
    }
}

.demo-card {
    background: rgba(255, 255, 255, .05);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
    backdrop-filter: blur(10px);
    transform: scale(1.05);
    position: relative;
    z-index: 10
}

.discord-embed {
    background: #2f3136;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    gap: 15px;
    font-family: 'Inter', sans-serif;
    text-align: left;
    position: relative;
    overflow: hidden
}

.embed-content {
    flex: 1
}

.embed-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: white
}

.embed-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%
}

.embed-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px
}

.embed-description {
    color: #dcddde;
    font-size: .95rem;
    margin-bottom: 15px;
    line-height: 1.4
}

.role-badge {
    background: rgba(255, 153, 0, .2);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600
}

.embed-fields {
    display: flex;
    gap: 20px;
    margin-bottom: 10px
}

.field-name {
    color: #b9bbbe;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 2px
}

.field-value {
    color: #dcddde;
    font-size: .9rem
}

.embed-footer {
    font-size: .75rem;
    color: #72767d;
    margin-top: 10px
}

.embed-thumb {
    width: 80px;
    height: 80px;
    background: #36393f;
    border-radius: 8px;
    flex-shrink: 0
}

.user-avatar-mock {
    width: 100%;
    height: 100%;
    background: url('assets/logo.png') center/cover;
    border-radius: 8px
}

.rank-progression-section {
    padding: 80px 0
}

.rank-progression-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 2px solid rgba(255, 153, 0, .1);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0
}

.rank-progression-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border: 1px solid rgba(255, 153, 0, .05);
    border-radius: 50%;
    animation: pulse-ring 6s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: .5
    }
}

.rank-progression-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    z-index: 10
}

.rank-progression-section h2::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px
}

.progression-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10
}

.ranks-left,
.ranks-right {
    display: flex;
    flex-direction: column;
    gap: 80px;
    flex: 1
}

.vertical-bar {
    width: 8px;
    height: 400px;
    background: rgba(255, 255, 255, .1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 153, 0, .2);
    animation: barGlow 2s ease-in-out infinite
}

.vertical-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 153, 0, .3) 50%, transparent 100%);
    animation: shimmerUp 2s ease-in-out infinite;
    animation-delay: 1s
}

@keyframes shimmerUp {
    0% {
        top: 60%;
        opacity: 0
    }

    50% {
        opacity: 1
    }

    100% {
        top: 0%;
        opacity: 0
    }
}

@keyframes barGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 153, 0, .2)
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 153, 0, .4)
    }
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--primary) 0%, #ff5500 100%);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 153, 0, .5);
    animation: fillBar 3s ease-out forwards;
    animation-delay: .5s;
    z-index: 1
}

@keyframes fillBar {
    0% {
        height: 0%
    }

    100% {
        height: 60%
    }
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: slideIn .6s ease-out forwards
}

.rank-left {
    justify-content: flex-end;
    text-align: right;
    animation-delay: .8s
}

.rank-right {
    justify-content: flex-start;
    text-align: left;
    animation-delay: 1.2s
}

.rank-left:nth-child(2) {
    animation-delay: 1.4s
}

.rank-right:nth-child(2) {
    animation-delay: 1.8s
}

.rank-left:nth-child(3) {
    animation-delay: 2s
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.rank-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 153, 0, .1);
    border-radius: 50%;
    border: 2px solid var(--primary);
    flex-shrink: 0
}

.rank-info h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 4px
}

.rank-info p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0
}

.features {
    padding: 100px 0
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 100%);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 153, 0, .15);
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .1)
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 153, 0, .1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .8s ease
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 153, 0, .15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .5s ease
}

.feature-card:hover::before {
    transform: translateX(100%)
}

.feature-card:hover::after {
    opacity: 1
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 153, 0, .5);
    background: linear-gradient(135deg, rgba(255, 153, 0, .08) 0%, rgba(255, 255, 255, .05) 100%);
    box-shadow: 0 20px 60px rgba(255, 153, 0, .3), 0 0 40px rgba(255, 153, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2)
}

.feature-card .icon {
    margin-bottom: 25px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: all .5s ease
}

.feature-card:hover .icon {
    transform: scale(1.15) rotateY(360deg);
    filter: drop-shadow(0 0 20px rgba(255, 153, 0, .8))
}

.feature-card .icon svg {
    width: 48px;
    height: 48px
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
    position: relative;
    z-index: 1;
    transition: all .3s ease
}

.feature-card:hover h3 {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 153, 0, .5)
}

.feature-card p {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: color .3s ease
}

.feature-card:hover p {
    color: #c0c0c0
}

footer {
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 50px 0;
    margin-top: 0;
    background: linear-gradient(to bottom, rgba(255, 153, 0, .05) 0%, rgba(15, 15, 15, 1) 20%);
    position: relative;
    z-index: 5
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 10px
}

.logo-small img {
    height: 24px
}

.footer-left p {
    color: var(--text-muted);
    font-size: .9rem
}

.footer-links {
    display: flex;
    gap: 20px
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    transition: color .3s
}

.footer-links a:hover {
    color: var(--primary)
}

@media (max-width: 768px) {

    /* Disable heavy background animations on mobile */
    body,
    .guide-hero::before,
    .guide-hero::after,
    .guide-main::before,
    main::before,
    main::after,
    .rank-progression-section::before,
    .rank-progression-section::after,
    .vertical-bar,
    .vertical-bar::after,
    .bar-fill {
        animation: none !important;
    }

    /* Simplify header */
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Rank Progression Mobile Layout */
    .progression-container {
        flex-direction: column;
        gap: 40px;
    }

    .vertical-bar {
        display: none;
        /* Hide the complex bar on mobile */
    }

    .ranks-left,
    .ranks-right {
        gap: 30px;
        text-align: center;
        /* Center everything on mobile */
    }

    .rank-item {
        flex-direction: column;
        /* Stack icon and text */
        justify-content: center !important;
        text-align: center !important;
        opacity: 1;
        /* Ensure visible if animation fails */
        animation: none;
        /* Disable slide-in on mobile for simplicity */
    }

    .rank-left,
    .rank-right {
        align-items: center;
    }

    .rank-icon {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .rank-info h3 {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .rank-info p {
        font-size: 0.9rem;
    }

    /* Features Grid */
    .feature-grid {
        grid-template-columns: 1fr;
        /* Single column */
        padding: 0 10px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease-out, transform .6s ease-out
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}