/* === VARIABLES === */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --accent: #10b981; /* Muted Emerald */
    --accent-hover: #059669;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-heading: 'Poppins', sans-serif;
    --font-accent: 'Space Mono', monospace;
    
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { font-weight: 800; }
p { font-weight: 400; color: var(--text-muted); }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 60px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-accent);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-login:hover {
    background: var(--accent);
    color: #fff;
}

/* === NAVIGATION === */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

#navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links li a:hover::after { width: 100%; }

.mobile-only-link { display: none; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* === HERO SECTION === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.glow-text {
    font-size: 4.5rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { text-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2); }
    to { text-shadow: 0 0 15px rgba(16, 185, 129, 0.7), 0 0 30px rgba(16, 185, 129, 0.5); }
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-family: var(--font-accent);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* IP Widget */
.ip-widget {
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 5px 5px 5px 20px;
    position: relative;
    backdrop-filter: blur(5px);
}

.ip-text {
    font-family: var(--font-accent);
    color: var(--text-main);
    margin-right: 15px;
    font-size: 1rem;
}

.btn-copy {
    background: var(--bg-card);
    border: none;
    color: var(--accent);
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--accent);
    color: #fff;
}

.tooltip {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--accent);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-accent);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
}

.tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === FEATURES GRID === */
.grid {
    display: grid;
    gap: 30px;
}

.features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before { transform: scaleX(1); }

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 { margin-bottom: 15px; font-size: 1.3rem; }

/* === GALLERY === */
.gallery-swiper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.swiper-slide {
    position: relative;
    aspect-ratio: 16/9;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(15,23,42,1) 0%, rgba(15,23,42,0) 100%);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.swiper-button-next, .swiper-button-prev { color: var(--accent); }
.swiper-pagination-bullet-active { background: var(--accent); }

/* === RULES === */
.rules-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rule-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.rule-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(16, 185, 129, 0.2);
}

.rule-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.rule-content h3 { margin-bottom: 5px; }

/* === FOOTER === */
footer {
    background: #0b1120;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.copyright { font-size: 0.9rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .glow-text { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li { text-align: center; margin-bottom: 15px; }
    .nav-links li:last-child { margin-bottom: 0; }
    .mobile-only-link { display: block; }
    .mobile-only-link a { color: var(--accent); font-weight: bold; }

    /* Content adjustments */
    .features-grid { grid-template-columns: 1fr; }
    .glow-text { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .rule-item { flex-direction: column; text-align: center; align-items: center; }
}