/* ============================================
   StellaSMP — Modern Minimal Design
   Full BG Hero | No glow | Full animations
   Color: Golden Yellow
   ============================================ */

:root {
    --bg: #0a0a0b;
    --bg-elevated: #141416;
    --bg-card: #1a1a1e;
    --accent: #facc15;
    --accent-secondary: #eab308;
    --accent-dim: rgba(250, 204, 21, 0.08);
    --accent-border: rgba(250, 204, 21, 0.15);
    --text: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION — Full Background Image
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 2rem 2rem;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 11, 0.55) 0%,
            rgba(10, 10, 11, 0.7) 50%,
            rgba(10, 10, 11, 0.92) 100%);
    z-index: 1;
}

/* Centered content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Animation Items - initial state */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
}

.anim-item.visible {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Tag / Player Count */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
    max-width: 600px;
}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow {
    transform: translateX(3px);
}

/* Copied state for button */
.btn-primary.copied {
    background: #22c55e;
}

/* IP Info row */
.hero-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-ip .ip-label {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.hero-ip .ip-address {
    font-weight: 700;
    color: var(--text);
    font-family: 'Inter', monospace;
    letter-spacing: 0.02em;
}

.hero-ip .ip-divider {
    color: rgba(255, 255, 255, 0.15);
}

.hero-ip .ip-port {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.4);
        transform-origin: top;
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

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

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

.feature-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform var(--bounce);
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .feature-card:nth-child(1) {
    transition-delay: 0s;
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.12s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.24s;
}

/* ============================================
   FOOTER — 3 Column Layout
   ============================================ */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
}

/* Left Column */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.footer-ip-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 0.6rem;
    width: fit-content;
}

.footer-ip-bar:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.07);
}

.footer-ip-bar i {
    color: var(--accent);
    font-size: 0.85rem;
}

.footer-ip-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.04em;
    font-family: 'Inter', monospace;
}

.footer-player-count {
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    min-width: 28px;
    text-align: center;
}

/* Center Column */
.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(250, 204, 21, 0.15));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-logo-img:hover {
    transform: scale(1.06);
}

/* Right Column */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: right;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865F2;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-discord-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background: #4752c4;
}

.footer-discord-btn:active {
    transform: translateY(0) scale(0.97);
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-socials a:hover {
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-3px) scale(1.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-left {
        align-items: center;
    }

    .footer-center {
        order: -1;
    }

    .footer-logo-img {
        width: 90px;
    }

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

    .footer-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.25rem 2rem;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-ip {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-section {
        padding: 5rem 1.25rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   MISC UTILITIES
   ============================================ */
::selection {
    background: rgba(250, 204, 21, 0.3);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2e;
}