:root {
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #3b82f6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.globe-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    left: -100px;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.3);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

/* Glass Components */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Typography & Layout */
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 8rem auto 4rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

section {
    scroll-margin-top: 6rem;
}

.card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Calculator specific */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.input-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #059669);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.results {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.hidden {
    display: none !important;
}

.result-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 8px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.result-circle span {
    font-size: 2.5rem;
    font-weight: 700;
}

.result-circle p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.breakdown {
    width: 100%;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.row.total {
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}

/* Roadmap */
.timeline-container {
    position: relative;
    padding: 2rem 0;
    overflow-x: auto;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    min-width: 600px;
}

.step-node {
    background: var(--bg-dark);
    border: 2px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.step-node:hover, .step-node.active {
    border-color: var(--primary);
    background: var(--primary);
    transform: scale(1.1);
}

.step-details {
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    animation: fadeIn 0.4s ease;
}

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

/* Market Trends Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.market-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.market-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.market-card.featured {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(2, 6, 23, 0.5));
    border-color: var(--primary);
}

.tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: black;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    border-bottom-left-radius: 8px;
}

.market-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.market-card .rate {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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