@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #030805; /* Rich Deep Forest Green-Black */
    --bg-panel: rgba(8, 18, 12, 0.7); /* Deep British Emerald Panel */
    --bg-glass: rgba(255, 255, 255, 0.02);
    
    --accent-gold: #d4af37; /* Heritage Gold */
    --accent-gold-dim: rgba(212, 175, 55, 0.15);
    --accent-mint: #10b981; /* Glowing Mint Green */
    --accent-mint-dim: rgba(16, 185, 129, 0.15);
    
    --text-main: #f3f6f4; /* Crisp Pale Bone */
    --text-muted: #a3b8aa; /* Muted Sage Sage */
    --text-stone: #5f7466; /* Clean sage-grey borders */
    
    --border-glass: 1px solid rgba(212, 175, 55, 0.12);
    --border-glass-hover: 1px solid rgba(212, 175, 55, 0.4);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.12);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Emerald Depth & Pinstripes */
.background-effects {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
}

.glow {
    position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.28;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent-gold-dim); top: -200px; left: -100px; animation: floatBanking 25s ease-in-out infinite alternate; }
.glow-2 { width: 500px; height: 500px; background: var(--accent-mint-dim); bottom: -100px; right: -50px; animation: floatBanking 20s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 400px; height: 400px; background: rgba(16, 185, 129, 0.08); top: 35%; left: 30%; animation: floatBanking 30s ease-in-out infinite; }

.grid-overlay {
    position: absolute; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

@keyframes floatBanking {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.08); }
}

/* Prestigious Private Navigation Header */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 6%; position: fixed; width: 100%; top: 0; z-index: 100;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-glass); background: rgba(3, 8, 5, 0.85);
    transition: all 0.3s;
}

.logo { 
    display: flex; align-items: center; gap: 10px; 
    font-family: var(--font-serif); font-weight: 900; 
    font-size: 1.45rem; color: var(--text-main); text-decoration: none; 
    letter-spacing: -0.5px;
}
.logo .highlight { 
    color: var(--accent-gold); 
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { 
    color: var(--text-muted); text-decoration: none; font-size: 13px; 
    font-weight: 500; transition: all 0.3s; letter-spacing: 1.5px; 
    text-transform: uppercase; font-family: var(--font-sans);
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--text-main); text-shadow: 0 0 8px rgba(212, 175, 55, 0.35); 
}

/* UI Buttons with Heritage Gold/Mint accents */
.btn-primary, .btn-secondary, .btn {
    padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
    font-family: var(--font-sans); letter-spacing: 0.5px;
}
.btn-primary, .btn {
    background: var(--accent-gold); color: #030805; border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-primary:hover, .btn:hover {
    background: #f3f6f4; transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}
.btn-secondary {
    background: var(--bg-glass); color: var(--text-main); border: var(--border-glass);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1); border-color: var(--accent-gold); transform: translateY(-2px);
}

/* Hero Section with Pinstripes */
.hero {
    min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; padding: 160px 6% 60px; position: relative;
    border-bottom: var(--border-glass);
}

.private-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 30px; background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2); font-size: 11px; font-weight: 700;
    color: var(--accent-gold); margin-bottom: 24px; font-family: var(--font-mono);
    text-transform: uppercase; letter-spacing: 1.5px;
}

.private-badge .pulse {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent-mint);
    box-shadow: 0 0 8px var(--accent-mint);
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800; line-height: 1.2; max-width: 850px; margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title .highlight {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem); color: var(--text-muted);
    max-width: 620px; margin-bottom: 36px; font-weight: 300; line-height: 1.7;
}

.hero-screen-wrap {
    width: 100%; max-width: 800px; border-radius: 16px;
    background: var(--bg-panel); border: var(--border-glass);
    padding: 6px; box-shadow: 0 25px 60px rgba(0,0,0,0.55);
    margin-bottom: 40px; overflow: hidden;
}
.hero-screen {
    width: 100%; height: auto; border-radius: 12px;
    object-fit: cover; border: var(--border-glass);
}

/* Glassmorphic Container & Layout Widgets */
.container {
    max-width: 1100px; margin: 0 auto; padding: 60px 6%;
}

.section-header {
    text-align: center; margin-bottom: 48px;
}
.section-title {
    font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-title .highlight { color: var(--accent-gold); }
.section-subtitle {
    color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 auto; font-weight: 300;
}

.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px; margin: 28px 0;
}

/* Private Wealth Card Widget */
.glass-card {
    background: var(--bg-panel); border: var(--border-glass);
    border-radius: 16px; padding: 28px; backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}

.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 70%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-3px); border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}
.glass-card:hover::before { opacity: 1; }

.card-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 4px; background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.18); font-size: 10px; font-weight: 700;
    color: var(--accent-gold); margin-bottom: 16px; text-transform: uppercase;
    letter-spacing: 1px; font-family: var(--font-mono);
}

.card-title {
    font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
    line-height: 1.35; margin-bottom: 12px; letter-spacing: -0.2px;
}
.card-title a {
    color: var(--text-main); text-decoration: none; transition: color 0.3s;
}
.card-title a:hover {
    color: var(--accent-gold);
}

.card-desc {
    color: var(--text-muted); font-size: 14.5px; line-height: 1.6;
    margin-bottom: 20px; font-weight: 300;
}

/* Distressed Tip-Box / private note layout */
.tip-box {
    background: rgba(212, 175, 55, 0.03); border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 3px solid var(--accent-gold); border-radius: 12px; padding: 24px; margin: 32px 0;
}
.tip-box .label {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.tip-box p { font-size: 14.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* AI Matchmaker private banker terminal */
.matchmaker-workspace {
    background: var(--bg-panel); border: var(--border-glass);
    border-radius: 18px; padding: 36px; box-shadow: 0 15px 45px rgba(0,0,0,0.3);
}
.matchmaker-workspace label {
    display: block; font-family: var(--font-serif); font-size: 1.15rem;
    font-weight: 700; color: var(--accent-gold); margin-bottom: 12px;
}
.matchmaker-workspace textarea {
    width: 100%; min-height: 120px; padding: 16px; border-radius: 8px;
    background: rgba(3, 8, 5, 0.8); border: var(--border-glass);
    color: var(--text-main); font-family: var(--font-sans); font-size: 15.5px;
    line-height: 1.6; outline: none; transition: all 0.3s; resize: vertical;
}
.matchmaker-workspace textarea:focus {
    border-color: var(--accent-gold); box-shadow: var(--shadow-gold);
}

.usage-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.03);
}
.usage-dots { display: flex; gap: 6px; }
.usage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-gold); transition: all 0.3s; }
.usage-dot.used { background: var(--text-stone); opacity: 0.3; }

/* Loader diagnostic spinner */
.loader {
    display: none; flex-direction: column; align-items: center; gap: 14px;
    margin: 24px 0;
}
.loader.active { display: flex; }
.spinner {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.1); border-top-color: var(--accent-gold);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Wealth Console terminal result */
.result-card {
    display: none; background: rgba(3, 8, 5, 0.9); border: 1px solid var(--accent-mint);
    border-radius: 14px; padding: 28px; margin-top: 24px; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}
.result-card.visible { display: block; }
.console-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Newsletter private club form */
.newsletter {
    background: var(--bg-panel); border: var(--border-glass);
    border-radius: 18px; padding: 40px; text-align: center; margin: 48px 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.newsletter h2 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 12px; }
.newsletter p { color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 auto 24px; font-weight: 300; }
.newsletter form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter input[type="email"] {
    padding: 14px 24px; background: rgba(3, 8, 5, 0.8); border: var(--border-glass);
    border-radius: 50px; color: var(--text-main); font-size: 15px; outline: none;
    min-width: 280px; transition: border-color 0.3s;
}
.newsletter input:focus { border-color: var(--accent-gold); }

/* Editorial Deep Dive Layout */
.content-block { margin-bottom: 60px; }
.content-block h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 16px; }
.content-block p { font-size: 16.5px; line-height: 1.85; margin-bottom: 20px; color: #cbd5e1; font-weight: 300; }
.content-block img { width: 100%; border-radius: 14px; margin: 28px 0; border: var(--border-glass); }
.content-block ul { margin: 24px 0 24px 28px; }
.content-block li { margin-bottom: 10px; font-size: 16px; color: #cbd5e1; }
blockquote {
    border-left: 3px solid var(--accent-gold); padding: 18px 24px;
    margin: 32px 0; background: rgba(212, 175, 55, 0.03); border-radius: 0 12px 12px 0;
    font-style: italic; font-size: 17px; color: #e2e8f0;
}

/* Elegant Slate Private Footer */
footer {
    padding: 60px 6% 30px; text-align: center; border-top: var(--border-glass);
    background: #020403; color: var(--text-stone); font-size: 13.5px; font-weight: 300;
}
footer .links { display: flex; justify-content: center; gap: 28px; margin-bottom: 24px; }
footer .links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
footer .links a:hover { color: var(--text-main); }

@media (max-width: 768px) {
    nav { padding: 16px 4%; flex-direction: column; gap: 12px; }
    nav .nav-links { gap: 20px; }
    .hero { padding: 180px 4% 60px; min-height: auto; }
    .container { padding: 40px 4%; }
    .glass-card { padding: 24px; }
    .matchmaker-workspace { padding: 24px; }
    .newsletter { padding: 32px 20px; }
}
