/* ----------------------------------------------------
   DUNGEONCRAFT - Official Stylesheet
   Theme: Epic Dark Fantasy RPG (Slate, Gold, Lava Red)
------------------------------------------------------- */

/* --- Custom Properties --- */
:root {
    --color-bg: #09090d;
    --color-bg-panel: rgba(18, 18, 26, 0.85);
    --color-bg-panel-hover: rgba(26, 26, 38, 0.95);
    --color-border: rgba(243, 156, 18, 0.15);
    --color-border-glow: rgba(243, 156, 18, 0.45);
    
    /* Primary brand colors */
    --color-primary: #f39c12; /* Gold */
    --color-primary-glow: rgba(243, 156, 18, 0.6);
    --color-secondary: #e74c3c; /* Lava Red */
    --color-secondary-glow: rgba(231, 76, 60, 0.5);
    
    /* Text colors */
    --color-text-title: #f5f6fa;
    --color-text-body: #dcdde1;
    --color-text-muted: #8892b0;
    
    /* Status colors */
    --color-online: #2ecc71;
    --color-offline: #95a5a6;
    
    /* Font families */
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows and glows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
    --glow-gold: 0 0 15px var(--color-primary-glow);
    --glow-red: 0 0 15px var(--color-secondary-glow);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Backgrounds & Depth Elements --- */
/* The main background image provided by the user */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -3;
}

/* Add a dark fantasy gradient overlay to maintain readability and enhance depth */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(13, 13, 18, 0.5) 0%, rgba(9, 9, 13, 0.92) 80%);
    z-index: -2;
    pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-title);
    letter-spacing: 0.05em;
    font-weight: 700;
}

p {
    font-weight: 300;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #fff;
    text-shadow: var(--glow-gold);
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.section-padding {
    padding: 8rem 0;
    position: relative;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #09090d;
}
::-webkit-scrollbar-thumb {
    background: #252535;
    border: 2px solid #09090d;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Common Components (Buttons, Badges) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6), var(--glow-gold);
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(18, 18, 26, 0.8);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #09090d;
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

/* Section Header styling */
.section-header {
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #fff, #ebd3a3, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 0.5rem auto 1.5rem;
    position: relative;
}

.section-divider::after {
    content: '◈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-primary);
    background-color: var(--color-bg);
    padding: 0 8px;
    font-size: 0.8rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-normal);
    padding: 1.5rem 0;
    background: transparent;
}

.main-header.scrolled {
    padding: 0.85rem 0;
    background: rgba(9, 9, 13, 0.95);
    border-bottom: 1px solid rgba(243, 156, 18, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.brand-text span {
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-body);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
    box-shadow: var(--glow-gold);
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.discord-link {
    color: #5865F2;
}
.discord-link:hover {
    color: #7289da;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}
.discord-link::after {
    background-color: #5865F2;
}

/* Header CTAs & Tooltips */
.nav-cta {
    position: relative;
}

.ip-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: #1e1e24;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md), var(--glow-gold);
}

.nav-cta:hover .ip-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -50px;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 105;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-title);
    transition: all var(--transition-normal);
}

/* Mobile Toggle animations when active */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-primary);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-primary);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(9, 9, 13, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(243, 156, 18, 0.15);
    z-index: 99;
    padding: 7rem 2rem 2rem;
    transition: right var(--transition-normal) cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-title);
    display: block;
}

.mobile-link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.mobile-cta {
    margin-top: 2rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    z-index: 10;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo-wrapper {
    margin-bottom: 2rem;
    max-width: 480px;
    position: relative;
}

/* Subtle fire portal glow behind logo */
.hero-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.2) 0%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, #fff, #ebd3a3, #ebd3a3, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 750px;
    color: var(--color-text-body);
    margin-bottom: 3.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Connection Widget */
.connection-widget {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 1.25rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    backdrop-filter: blur(5px);
    transition: border var(--transition-normal);
}

.connection-widget:hover {
    border-color: var(--color-border-glow);
}

.ip-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border-radius: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.ip-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.ip-address {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    user-select: all;
}

.ip-copy-btn {
    background: var(--color-primary);
    color: #09090d;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.ip-copy-btn:hover {
    background: #fff;
    box-shadow: var(--glow-gold);
}

.copy-icon {
    width: 14px;
    height: 14px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online .status-dot {
    background-color: var(--color-online);
    box-shadow: 0 0 8px var(--color-online);
}

.status-indicator.online .status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-online);
    animation: statusPulse 1.5s infinite ease-out;
}

.status-indicator.offline .status-dot {
    background-color: var(--color-offline);
}

.status-indicator.error .status-dot {
    background-color: var(--color-secondary);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    color: var(--color-text-muted);
    animation: arrowBounce 2s infinite ease-in-out;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.scroll-arrow:hover {
    color: var(--color-primary);
}

/* --- About Section --- */
.about-section {
    z-index: 5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text-content h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.about-text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-body);
}

.about-cta-wrapper {
    margin-top: 2rem;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: rgba(18, 18, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all var(--transition-slow);
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.05) 0%, transparent 60%);
    pointer-events: none;
    transition: all var(--transition-slow);
}

.visual-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.15), var(--shadow-lg);
    transform: translateY(-5px);
}

.visual-card:hover::before {
    background: radial-gradient(circle, rgba(243, 156, 18, 0.12) 0%, transparent 65%);
}

.visual-logo {
    width: 70%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
    z-index: 2;
    transition: transform var(--transition-slow);
}

.visual-card:hover .visual-logo {
    transform: scale(1.05) rotate(2deg);
}

/* --- Features Section --- */
.features-section {
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 13, 0.6) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    background: var(--color-bg-panel-hover);
    border-color: var(--color-border-glow);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), var(--glow-gold);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--color-primary);
    color: #09090d;
    box-shadow: var(--glow-gold);
}

.feature-icon {
    width: 28px;
    height: 28px;
}

.feature-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.feature-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Subtle radial glow under card that is visible on hover */
.card-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.08) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

/* --- How to Join Section --- */
.join-section {
    z-index: 5;
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step-card {
    background: rgba(13, 13, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: border var(--transition-normal), transform var(--transition-normal);
}

.step-card:hover {
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f39c12, #d35400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
    border: 3px solid var(--color-bg);
}

.step-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.step-card strong {
    color: var(--color-primary);
}

/* Custom interactive input mimic for copying IP */
.step-ip-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(243, 156, 18, 0.4);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 1.5rem 0 0;
}

.step-ip-box:hover {
    border-color: var(--color-primary);
    background: rgba(243, 156, 18, 0.05);
}

.step-ip-text {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #fff;
}

.step-ip-copy-hint {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Rules Section (Accordion) --- */
.rules-section {
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 13, 0.7) 100%);
}

.rules-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    border-color: rgba(243, 156, 18, 0.3);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    color: #fff;
    transition: all var(--transition-fast);
}

.rule-index {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-right: 1.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 4px;
}

.rule-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    flex-grow: 1;
}

.accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

/* Accordion plus/minus icon with pseudo elements */
.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-primary);
    transition: transform var(--transition-normal);
}

/* Horizontal line */
.accordion-icon::before {
    top: 7px;
    left: 0;
    width: 100%;
    height: 2px;
}

/* Vertical line */
.accordion-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
    transform: rotate(90deg) scaleY(0);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header:hover .rule-title {
    color: var(--color-primary);
    text-shadow: var(--glow-gold);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1);
}

.accordion-inner {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.25rem;
}

/* Active accordion open state managed via JS modifying max-height inline */

/* --- Footer --- */
.main-footer {
    background: #06060a;
    border-top: 1px solid rgba(243, 156, 18, 0.1);
    padding-top: 5rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.footer-brand-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

.footer-brand-text span {
    color: var(--color-primary);
}

.footer-desc {
    color: var(--color-text-muted);
    max-width: 380px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
    border-left: 2px solid var(--color-primary);
    padding-left: 10px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-normal);
}

.social-icon.discord {
    color: #fff;
    border-color: rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.1);
}

.social-icon.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #030305;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.disclaimer {
    font-size: 0.75rem;
    color: #555c70;
    max-width: 550px;
    line-height: 1.4;
    text-align: right;
}

/* --- Clipboard Toast System --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #14141d;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: var(--shadow-lg), var(--glow-gold);
    z-index: 1000;
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Animation Keyframes --- */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}


/* --- Responsive Media Queries --- */

/* Tablet Layout (Landscape & Portrait) */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        order: -1; /* visual on top for mobile */
    }
    
    .main-nav, .nav-cta {
        display: none; /* Hide standard nav on mobile */
    }
    
    .mobile-toggle {
        display: flex; /* Show hamburger button */
    }
    
    .join-steps {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .step-card {
        padding-top: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .disclaimer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .connection-widget {
        padding: 1rem;
    }
    
    .ip-container {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .ip-address {
        font-size: 1rem;
    }
    
    .rule-title {
        font-size: 1rem;
    }
    
    .rule-index {
        margin-right: 0.75rem;
    }
    
    .accordion-header {
        padding: 1rem 1.25rem;
    }
}
