/* Base Variables & Setup */
:root {
    --bg-dark: #0a0a0c;
    --bg-surface: rgba(25, 25, 30, 0.4);
    --bg-surface-hover: rgba(40, 40, 50, 0.6);
    --color-primary: #E9C46A;
    --color-primary-hover: #f4d382;
    --color-text: #ABABAB;
    --color-text-bright: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(233, 196, 106, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: rgba(20, 20, 24, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-top: none;
    border-left: none;
    border-right: none;
}

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

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

.logo {
    width: 32px;
    height: 32px;
}

.brand-name {
    color: var(--color-text-bright);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s var(--transition);
}

.nav-links a:hover {
    color: var(--color-text-bright);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: #1a1a1a;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 196, 106, 0.3);
}

.btn-primary-small {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

.btn-primary-small:hover {
    background-color: var(--color-primary);
    color: #1a1a1a;
}

.btn-secondary {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-bright);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(233, 196, 106, 0.15);
    top: 20%;
    left: 20%;
    animation: float 20s infinite alternate;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(171, 171, 171, 0.1);
    bottom: 10%;
    right: 25%;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.title {
    color: var(--color-text-bright);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #9b2626;
    border-radius: 50%;
    box-shadow: 0 0 10px #9b2626;
}

.online-text {
    font-size: 0.85rem;
    color: #9b2626;
    font-weight: 500;
}

/* Info Section */
.info-section {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 3rem;
    border-radius: 24px;
}

.section-title {
    color: var(--color-text-bright);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.4s var(--transition), background 0.4s var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    background: rgba(30, 30, 36, 0.7);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(233, 196, 106, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--color-text-bright);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

/* Showroom / Changelog Card */
.showroom-section {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 3rem;
    border-radius: 24px;
}

.showroom-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showroom-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
}

.showroom-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.showroom-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple CSS Art for Placeholder Image (mimicking provided image concept) */
.showroom-banner-placeholder::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.4), transparent);
}

.tree {
    position: absolute;
    right: 15%;
    bottom: 0;
    width: 40px;
    height: 120px;
    background: #5c4033;
    border-radius: 4px 4px 0 0;
}

.tree::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -50px;
    width: 140px;
    height: 120px;
    background: #2e8b57;
    border-radius: 50%;
    box-shadow: 20px 10px 0 -10px #3cb371, -20px 20px 0 -15px #228b22;
}

.clouds {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 80px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 100px -20px 0 -10px rgba(255, 255, 255, 0.6), 180px 10px 0 -5px rgba(255, 255, 255, 0.7);
}

.clouds::before,
.clouds::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.clouds::before {
    width: 40px;
    height: 40px;
    top: -15px;
    left: 10px;
}

.clouds::after {
    width: 50px;
    height: 50px;
    top: -25px;
    right: 10px;
}

.showroom-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showroom-header h3 {
    color: var(--color-text-bright);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.showroom-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

.tag-update {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text);
}

.showroom-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showroom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231a1a1a"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.author-name {
    font-weight: 500;
    color: var(--color-text-bright);
    font-size: 0.9rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-left: 0.5rem;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--color-text-bright);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s var(--transition);
}

.btn-text:hover {
    color: var(--color-primary);
}

/* Modal Overlay Structure */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--transition), visibility 0.4s var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(30px) scale(0.98);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--color-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-bright);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    color: var(--color-text-bright);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    color: var(--color-text);
    line-height: 1.7;

    /* Standard / Firefox Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 196, 106, 0.6) rgba(0, 0, 0, 0.2);
}

/* Webkit Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(233, 196, 106, 0.6);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.modal-body h3 {
    color: var(--color-text-bright);
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body strong {
    color: var(--color-text-bright);
}

.modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 20px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .title {
        font-size: 2.25rem;
    }

    .info-section,
    .showroom-section {
        margin: 0 1rem 3rem;
        padding: 2rem 1.5rem;
    }

    .modal-container {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }

    .showroom-image-wrapper {
        height: 180px;
    }
}