:root {
    --bg-dark: #050505;
    --text-main: #f5f5f5;
    --text-muted: #666666;
    --accent-green: #00ff88;
    --accent-red: #ff3366;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Canvas */
#marketChart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
    z-index: 2;
    pointer-events: none;
}

/* Main Content */
.container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 5%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    /* Add a subtle interactive float effect in JS */
    transform-style: preserve-3d;
}

.quote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(255, 255, 255, 0.1);
}

.author {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 3rem;
}

/* Interactive Ticker */
.ticker-wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 20;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-slide 30s linear infinite;
    padding-left: 100%;
}

.ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-symbol {
    color: var(--text-main);
    margin-right: 10px;
}

.ticker-price {
    color: var(--text-muted);
    margin-right: 10px;
}

.ticker-change {
    display: flex;
    align-items: center;
    gap: 4px;
}

.change-up { color: var(--accent-green); }
.change-down { color: var(--accent-red); }

/* Custom cursor interaction */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease-out, border-color 0.3s;
}

body:hover::after {
    border-color: rgba(0, 255, 136, 0.5);
}

/* Financial Tools Section */
.tools-section {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 20px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tools-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
    letter-spacing: 1px;
}

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

.tool-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.tool-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
}

.tool-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.tool-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}
