:root {
    --bg-color: #f5f5f4; /* Warm Zen Grey */
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.05);
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --gradient-primary: linear-gradient(135deg, #44403c 0%, #1c1917 100%);
    --font-main: 'Outfit', sans-serif;
}

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

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

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.15;
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #e7e5e4;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #d6d3d1;
    bottom: -50px;
    left: -50px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    padding: 2rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-img {
    height: 32px;
    width: auto;
    opacity: 0.8;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #000;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Calculator Section */
.calculator-section {
    padding: 3rem 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.asset-breakdown-toggle, /* Scenario Simulator */
.scenarios-section {
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header label {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-small {
    background: #000;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
}

.event-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    background: rgba(0,0,0,0.02);
    padding: 0.75rem;
    border-radius: 12px;
    align-items: center;
}

.event-row input {
    padding: 0.5rem;
    font-size: 0.85rem;
}

.event-name { flex: 2; }
.event-amount { flex: 2; }
.event-year { flex: 1; }

.remove-event {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0 4px;
}

.settings-toggle {
    margin: 1.5rem 0;
}

#toggleBreakdown, #toggleSettings {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: underline;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group.half {
    flex: 1;
}

.rsu-alert {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.4;
    font-style: italic;
}

/* Results Display */
.calc-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.progress-display {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.circular-progress circle.bg {
    stroke: rgba(0, 0, 0, 0.05);
}

.circular-progress circle.progress {
    stroke: #1c1917;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.8s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.progress-text span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
}

.progress-text .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.stat {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    padding: 1.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.prophecy {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    width: 100%;
    font-style: italic;
}

/* Philosophy */
.philosophy {
    padding: 2rem 0 6rem;
}

.glass {
    background: rgba(255, 255, 255, 0.4);
}

footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.heart {
    color: #ef4444;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2.5rem; }
    .card { padding: 1.5rem; }
}
