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

:root {

    --bg-main: #050706; /* Botanical Cream-Dark Green */
    --bg-panel: rgba(12, 18, 14, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --accent-primary: #a3e635; /* Bamboo Green */
    --accent-primary-dim: rgba(163, 230, 53, 0.12);
    --accent-highlight: #eab308; /* Soft Bronze/Sunlight Gold */
    --accent-highlight-dim: rgba(234, 179, 8, 0.12);
    --text-main: #f4f6f5;
    --text-muted: #98a69f;
    --text-stone: #4c5c53;
    --border-glass: 1px solid rgba(163, 230, 53, 0.12);
    --border-glass-hover: 1px solid rgba(234, 179, 8, 0.35);
    --font-display: 'Outfit', sans-serif;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
        
    --shadow-glow: 0 0 25px var(--accent-primary-dim);
    --shadow-glow-highlight: 0 0 25px var(--accent-highlight-dim);
}

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

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

/* Atmospheric Layer */
.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.25;
}
.glow-1 { width: 550px; height: 550px; background: var(--accent-primary-dim); top: -100px; left: -100px; animation: floatTheme 20s ease-in-out infinite alternate; }
.glow-2 { width: 450px; height: 450px; background: var(--accent-highlight-dim); bottom: -100px; right: -50px; animation: floatTheme 18s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 350px; height: 350px; background: var(--accent-primary-dim); top: 40%; left: 35%; opacity: 0.08; animation: floatTheme 25s ease-in-out infinite; }

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

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

/* Premium Layout Bar Navigation */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 6%; position: fixed; width: 100%; top: 0; z-index: 100;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: var(--border-glass); background: rgba(5, 7, 12, 0.85);
    transition: all 0.3s;
}

.logo { 
    display: flex; align-items: center; gap: 10px; 
    font-family: var(--font-display); font-weight: 800; 
    font-size: 1.35rem; color: var(--text-main); text-decoration: none; 
    letter-spacing: -0.5px;
}
.logo .highlight { 
    color: var(--accent-primary);
    text-shadow: 0 0 12px var(--accent-primary-dim);
}

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { 
    color: var(--text-muted); text-decoration: none; font-size: 13.5px; 
    font-weight: 500; transition: all 0.3s; letter-spacing: 0.5px; 
    font-family: var(--font-sans); text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--text-main); text-shadow: 0 0 8px var(--accent-primary); 
}

/* UI Buttons styling */
.btn-primary, .btn-secondary, .btn {
    padding: 13px 26px; border-radius: 50px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all 0.3s 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.3px;
}
.btn-primary, .btn {
    background: var(--accent-primary); color: #000; border: none;
    box-shadow: 0 4px 15px var(--accent-primary-dim);
}
.btn-primary:hover, .btn:hover {
    background: #fff; transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-primary-dim);
}
.btn-secondary {
    background: var(--bg-glass); color: var(--text-main); border: var(--border-glass);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05); border-color: var(--accent-primary); transform: translateY(-2px);
}

/* Hero Section */
.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);
}

.badge, .private-badge, .dashboard-badge, .terminal-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 30px; background: var(--bg-panel);
    border: var(--border-glass); font-size: 11px; font-weight: 700;
    color: var(--accent-primary); margin-bottom: 24px; font-family: var(--font-mono);
    text-transform: uppercase; letter-spacing: 1px;
}

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

@keyframes themePulse {
    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-display); font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.2; max-width: 850px; margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title .highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-primary-dim);
}

.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 Grid */
.container {
    max-width: 1100px; margin: 0 auto; padding: 60px 6%;
}

.section-header {
    text-align: center; margin-bottom: 48px;
}
.section-title {
    font-family: var(--font-display); 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-primary); }
.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;
}

/* Premium Widget Card */
.glass-card, .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; text-align: left;
}

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

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

.card-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 4px; background: var(--accent-primary-dim);
    border: var(--border-glass); font-size: 10px; font-weight: 700;
    color: var(--text-main); margin-bottom: 16px; text-transform: uppercase;
    letter-spacing: 1px; font-family: var(--font-mono);
}

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

.card-desc, .card p {
    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: var(--accent-primary-dim); border: 1px solid var(--border-glass);
    border-left: 3px solid var(--accent-primary); 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-primary); 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 Interactive Tool Workspace */
.curator-workspace, .tool-card, .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);
}
.curator-workspace label, .tool-card label, .matchmaker-workspace label {
    display: block; font-family: var(--font-display); font-size: 1.15rem;
    font-weight: 700; color: var(--accent-primary); margin-bottom: 12px;
}
.curator-workspace textarea, .tool-card textarea, .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;
}
.curator-workspace textarea:focus, .tool-card textarea:focus, .matchmaker-workspace textarea:focus {
    border-color: var(--accent-primary); box-shadow: var(--shadow-glow);
}

.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-primary); 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 var(--accent-primary-dim); border-top-color: var(--accent-primary);
    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-highlight);
    border-radius: 14px; padding: 28px; margin-top: 24px; box-shadow: 0 10px 30px var(--accent-highlight-dim);
}
.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-display); 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-primary); }

/* Editorial Deep Dive Layout */
.content-block { margin-bottom: 60px; text-align: left; }
.content-block h2 { font-family: var(--font-display); 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-primary); padding: 18px 24px;
    margin: 32px 0; background: var(--accent-primary-dim); 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: #020305; 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 .links, nav .nav-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .hero { padding: 180px 4% 60px; min-height: auto; }
    .container { padding: 40px 4%; }
    .glass-card, .card { padding: 24px; }
    .curator-workspace, .tool-card, .matchmaker-workspace { padding: 24px; }
    .newsletter { padding: 32px 20px; }
}
