@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Deep, warm, soft */
    --bg-deep: #161312; /* Espresso / almost black warm */
    --bg-mocha: #251e1c; /* Soft mocha dark */
    --text-latte: #f2ebe5; /* Warm off-white */
    --text-muted: #b5a9a4; /* Dusty beige */
    --accent-purple: #877485; /* Muted dusty purple */
    --accent-purple-light: #9d8b9b;
    --accent-warm: #bc9986; /* Latte / copper tone */
    
    /* Glassmorphism & UI */
    --glass-bg: rgba(43, 36, 35, 0.4);
    --glass-border: rgba(242, 235, 229, 0.06);
    --glass-blur: blur(16px);
    
    /* Shadows & Glows */
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.25);
    --glow-subtle: 0 0 25px rgba(135, 116, 133, 0.15);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    
    /* Layout & Spacing */
    --max-width: 1400px;
    --section-spacing: 100px;
    --header-height: 80px;
}

@media (max-width: 1024px) {
    :root {
        --section-spacing: 70px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 50px;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-latte);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 50% 0%, var(--bg-mocha) 0%, var(--bg-deep) 70%);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }
a { color: var(--accent-warm); text-decoration: none; transition: all 0.3s ease; }

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.container-restricted {
    max-width: 90%;
    margin: 0 auto;
}

@media (max-width: 1024px) { .container-restricted { max-width: 95%; } }
@media (max-width: 768px) { .container-restricted { max-width: 100%; } }

.section-padding {
    padding: var(--section-spacing) 0;
}

/* Glass UI Component */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(242, 235, 229, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #6b5a69);
    color: #fff;
    box-shadow: var(--shadow-soft), var(--glow-subtle);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-purple));
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft), 0 0 30px rgba(135, 116, 133, 0.3);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-latte);
    border: 1px solid var(--glass-border);
}

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

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(22, 19, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-latte);
    letter-spacing: -0.03em;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-warm);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--text-latte);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-latte);
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(22, 19, 18, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .main-nav.active {
        opacity: 1;
        visibility: visible;
    }
    .main-nav a {
        font-size: 1.5rem;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .header-actions .btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    text-align: center;
}

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

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Background elements for Hero */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%; left: 30%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(135, 116, 133, 0.15) 0%, rgba(22, 19, 18, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 10%; right: 20%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(188, 153, 134, 0.1) 0%, rgba(22, 19, 18, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
}

/* Main Feature Section - The Lounge */
.lounge-ui {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lounge-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
}

.lounge-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.status-badge {
    background: rgba(188, 153, 134, 0.15);
    color: var(--accent-warm);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-warm);
    animation: pulse 2s infinite;
}

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

.lounge-content {
    position: relative;
    width: 100%;
    padding-bottom: 50%; /* Aspect ratio */
}

.lounge-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mix-blend-mode: luminosity;
    transition: all 0.5s ease;
}

.lounge-ui:hover .lounge-image {
    opacity: 0.8;
    mix-blend-mode: normal;
}

.lounge-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-deep) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.lounge-text-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lounge-text-content p {
    color: var(--text-latte);
    max-width: 500px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .lounge-content { padding-bottom: 75%; }
    .lounge-overlay { padding: 1.5rem; }
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}

/* Value Cards */
.value-card {
    text-align: left;
    height: 100%;
}

.value-icon {
    width: 50px;
    height: 50px;
    background: rgba(135, 116, 133, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
}

.value-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(to bottom, transparent, rgba(22, 19, 18, 0.8), transparent);
}

.trust-card {
    text-align: center;
    padding: 2rem;
    background: rgba(37, 30, 28, 0.3);
}

.trust-card h3 {
    color: var(--accent-warm);
    font-size: 1.25rem;
}

.trust-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: var(--section-spacing);
    background: rgba(10, 8, 8, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 1rem;
}

.footer-links h4 {
    color: var(--text-latte);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-warm);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-latte);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-latte);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Standard Pages (Legal, Terms, etc) */
.page-header {
    padding: calc(var(--header-height) + 60px) 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    background: radial-gradient(ellipse at center, rgba(135, 116, 133, 0.08) 0%, transparent 70%);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    margin-top: 2.5rem;
    color: var(--accent-warm);
}

.content-block ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility to stagger children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }