/* WU Insight Engine - v5.0 Design System (Magazine/Editorial) */

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

:root {
    /* Colors: Void & Starlight */
    --bg-void: #080808;
    --bg-panel: #111111;
    --text-primary: #F2F2F2;
    --text-secondary: #999999;
    --accent-gold: #D4B875; /* Muted Champagne */
    --accent-gold-dim: rgba(212, 184, 117, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-serif: 'Spectral', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Layout */
    --header-height: 72px;
    --container-width: 1100px;
    --radius-sm: 4px;
    --radius-lg: 12px;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
}

.text-gold { color: var(--accent-gold); }
.text-subtle { color: var(--text-secondary); }

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

/* --- Header (Clean & Minimal) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    height: 40px;
    border-radius: 6px; /* Slightly rounded, not pill */
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: #E5C985;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 0 0.75rem;
}

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

.btn-lg {
    height: 48px;
    padding: 0 2rem;
    font-size: 1rem;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 50% 30%, rgba(212, 184, 117, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, var(--bg-void), #0d0d0d);
}

.hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent-gold-dim);
    border: 1px solid rgba(212, 184, 117, 0.2);
    border-radius: 100px;
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-footer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* --- Features Grid --- */
.section {
    padding: 6rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-item {
    padding: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 184, 117, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Gallery Strip --- */
.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 24px 2rem;
    margin: 0 -24px;
    scroll-snap-type: x mandatory;
}

.gallery-card {
    flex: 0 0 300px;
    aspect-ratio: 3/4;
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid var(--border-subtle);
}

.gallery-card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #151515, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* --- Pricing --- */
.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
}

.pricing-card.highlight {
    border-color: var(--accent-gold);
    background: linear-gradient(to bottom, rgba(212, 184, 117, 0.05), var(--bg-panel));
}

.tag-popular {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.price-large {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-primary);
    line-height: 1;
    margin: 1.5rem 0 0.5rem;
}

.price-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.check-list {
    margin: 2rem 0;
    list-style: none;
}

.check-list li {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.check-list li::before {
    content: "•";
    color: var(--accent-gold);
}

/* --- Forms (Waitlist) --- */
.form-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 480px;
    margin: 0 auto;
}

.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
}

.tab-btn.active {
    color: var(--text-primary);
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px; /* Align with border-bottom */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group.stacked {
    flex-direction: column;
}

.form-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0 1rem;
    height: 40px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

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

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 184, 117, 0.05);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-lg);
}

.success-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .pricing-wrapper { flex-direction: column; }
    .gallery-card { flex: 0 0 80vw; }
    .input-group { flex-direction: column; }
}

/* Loading */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-void);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}
.loader.hidden { opacity: 0; pointer-events: none; }
