/* ========================================
   RSCServers v2 — Premium Dark Fantasy
   ======================================== */

:root {
    --bg-void: #050508;
    --bg-deep: #0a0a10;
    --bg-card: #0f0f18;
    --bg-card-hover: #141420;
    --bg-glass: rgba(15, 15, 24, 0.75);

    --gold: #d4a843;
    --gold-light: #f0d078;
    --gold-dim: #8a6d2b;
    --gold-glow: rgba(212, 168, 67, 0.25);
    --gold-gradient: linear-gradient(135deg, #c9a44a 0%, #f0d078 50%, #c9a44a 100%);

    --text-bright: #f0eff5;
    --text-mid: #9b9ab0;
    --text-dim: #55546a;

    --border: rgba(212, 168, 67, 0.1);
    --border-hover: rgba(212, 168, 67, 0.3);

    --discord: #5865f2;
    --success: #34d399;
    --red: #ef4444;
    --yellow: #fbbf24;

    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-bright);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

::selection { background: var(--gold); color: var(--bg-void); }

/* ── Three.js Canvas ── */
#three-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-rune {
    image-rendering: pixelated;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.logo-accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 4px; }

.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: all 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-bright);
    background: rgba(212, 168, 67, 0.07);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-mid);
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span {
    width: 22px; height: 2px;
    background: var(--text-bright);
    border-radius: 2px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center; gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border: none; cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-void);
    background-size: 200% 200%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--gold-glow), 0 0 0 1px rgba(212, 168, 67, 0.3);
}

.btn-glow { box-shadow: 0 4px 20px var(--gold-glow); }

.btn-glass {
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold-light);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(212, 168, 67, 0.14);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.06);
    transform: translateY(-1px);
}

.btn-large { padding: 14px 32px; font-size: 0.95rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 60%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center; gap: 10px;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gold-light);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    animation: fadeUp 0.8s var(--ease);
}

.badge-pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.title-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
    animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center; gap: 4px;
    padding: 16px 28px;
    background: rgba(212, 168, 67, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    min-width: 100px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* Floating items */
.floating-items {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    left: var(--x);
    top: var(--y);
    opacity: 0.15;
    animation: floatItem 8s ease-in-out infinite var(--delay);
    filter: blur(0.5px);
}

@keyframes floatItem {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(-8px) rotate(-3deg) scale(0.98); }
    75% { transform: translateY(-25px) rotate(4deg) scale(1.02); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center; gap: 8px;
    z-index: 2;
    animation: fadeUp 1s var(--ease) 0.6s both;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 48px; }
    50% { opacity: 1; height: 56px; }
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Sections Shared
   ======================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* Card shine effect */
.card-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.03), transparent);
    transition: left 0.6s var(--ease);
    pointer-events: none;
    z-index: 0;
}

*:hover > .card-shine { left: 100%; }

/* ========================================
   Play Section
   ======================================== */
.play-section {
    padding: 120px 0;
    position: relative;
}

.play-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.play-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.play-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.play-card-browser {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.05), rgba(212, 168, 67, 0.01));
    border-color: rgba(212, 168, 67, 0.15);
}

.play-card-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--gold-gradient);
    color: var(--bg-void);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center; justify-content: center;
    margin-bottom: 24px;
}

.play-icon { font-size: 1.8rem; }

.play-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.play-card p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.check-list {
    list-style: none;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.check-list li {
    font-size: 0.85rem;
    color: var(--text-mid);
    padding-left: 20px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.download-row { display: flex; gap: 8px; flex-wrap: wrap; }

.os-icon { font-size: 1.1rem; }

/* ========================================
   Features — Bento Grid
   ======================================== */
.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-void), var(--bg-deep), var(--bg-void));
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    cursor: default;
}

.bento-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    min-height: 320px;
}

.bento-wide { grid-column: span 2; }

.bento-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(1px);
    image-rendering: pixelated;
}

.bento-large .bento-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(to top, rgba(5, 5, 8, 0.95), rgba(5, 5, 8, 0.3));
}

.bento-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.bento-item h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.bento-item p {
    color: var(--text-mid);
    font-size: 0.88rem;
    line-height: 1.6;
}

.bento-large h3 { font-size: 1.4rem; }
.bento-large p { font-size: 0.95rem; }

/* ========================================
   Skills
   ======================================== */
.skills-section {
    padding: 120px 0;
}

.skills-orbit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.orbit-center {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 12px var(--gold-glow)); }
    50% { filter: drop-shadow(0 0 28px var(--gold-glow)) drop-shadow(0 0 48px rgba(212, 168, 67, 0.1)); }
}

.orbit-logo {
    width: 100px;
    height: auto;
    image-rendering: auto;
    animation: slowSpin 30s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.skills-grid-alt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: all 0.3s var(--ease);
    cursor: default;
}

.skill-chip span { font-size: 1.1rem; }

.skill-chip:hover {
    border-color: var(--gold);
    color: var(--text-bright);
    background: rgba(212, 168, 67, 0.06);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Server Info — Terminal
   ======================================== */
.server-info-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-void), var(--bg-deep));
}

.terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(212, 168, 67, 0.04);
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--success); }

.terminal-title {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-body {
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 2;
}

.terminal-line { color: var(--text-dim); }

.term-prompt { color: var(--gold); font-weight: 700; }

.term-cmd { color: var(--text-mid); }

.terminal-output {
    color: var(--text-bright);
    padding-left: 20px;
    margin-bottom: 4px;
}

.terminal-output.copyable {
    cursor: pointer;
    transition: color 0.2s;
}

.terminal-output.copyable:hover { color: var(--gold-light); }

.copy-hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.2s;
}

.copyable:hover .copy-hint { opacity: 1; }

.term-online {
    color: var(--success);
    font-weight: 600;
}

.term-free {
    color: var(--gold-light);
    font-weight: 600;
}

.term-cursor {
    color: var(--gold);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ========================================
   Community
   ======================================== */
.community-section { padding: 120px 0; }

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    display: block;
}

.community-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.discord-card:hover {
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 16px 48px rgba(88, 101, 242, 0.1);
}

.community-svg {
    color: var(--gold);
    margin-bottom: 20px;
}

.discord-card .community-svg { color: var(--discord); }

.community-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.community-card p {
    color: var(--text-mid);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    transition: color 0.2s;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center; gap: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-brand img { image-rendering: pixelated; }

.footer-nav { display: flex; gap: 24px; }

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-mid);
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .features-bento { grid-template-columns: repeat(2, 1fr); }
    .bento-large { min-height: 240px; }
}

@media (max-width: 768px) {
    .nav-links, .server-status { display: none; }
    .mobile-toggle { display: flex; }
    .play-grid { grid-template-columns: 1fr; }
    .features-bento { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
    .community-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 10px; }
    .stat-card { padding: 12px 20px; min-width: 80px; }
    .stat-number { font-size: 1.4rem; }
    .footer-top { flex-direction: column; gap: 20px; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
    .check-list { grid-template-columns: 1fr; }
}

/* Authentic Skill Icons */
.skill-icon-img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 4px rgba(212, 168, 67, 0.4));
    vertical-align: middle;
    margin-right: 4px;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 6px;
}
