:root {
    --bg-color: #0d1117;
    --primary-color: #161b22;
    --border-color: #30363d;
    --text-color: #c9d1d9;
    --text-color-light: #ffffff;
    --accent-color: #238636;
    --accent-glow: rgba(35, 134, 54, 0.5);
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    cursor: none;
    overflow-x: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(35, 134, 54, 0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 998;
    transition: transform 0.1s ease-out;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: bg-pan 20s linear infinite;
}

@keyframes bg-pan {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem 0;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color-light);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-color-light);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 2s 0.5s ease-out forwards;
    opacity: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 700;
    color: var(--text-color-light);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.ip-copy-wrapper {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1.1rem;
}

#ip-address {
    padding: 0 1.5rem;
    font-weight: 600;
    color: var(--text-color-light);
}

#ip-copy-btn {
    background-color: var(--accent-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#ip-copy-btn:hover {
    background-color: #2ea043;
}

#ip-copy-btn svg {
    width: 20px;
    height: 20px;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 6rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

.section-paragraph {
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.join-section {
    padding: 6rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.join-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-light);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #2ea043;
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #8b949e;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}