:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --bg-dark: #020617;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-serif: "Playfair Display", serif;
    --font-sans: "Plus Jakarta Sans", sans-serif;
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-serif);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding-top: 8rem;
    gap: 4rem;
    overflow: hidden;
}

.hero-content {
    padding-left: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

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

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #e5c354;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--accent);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    border-radius: 40px 0 0 40px;
    box-shadow: -40px 40px 80px rgba(0,0,0,0.5);
}

/* Content Section */
.content-section {
    padding: 100px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 6rem;
}

.toc {
    position: sticky;
    top: 120px;
    height: fit-content;
    padding: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

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

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 1.2rem;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.toc a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.main-text h2 {
    font-size: 2.5rem;
    margin: 4rem 0 2rem;
    color: var(--accent);
}

.main-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    text-align: justify;
}

/* Calculator */
.calculator-section {
    margin: 100px 2rem;
    padding: 5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.calculator-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: center;
}

.input-group label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
}

.result-box {
    padding: 3rem;
    background: var(--accent);
    border-radius: 24px;
    text-align: center;
    color: var(--bg-dark);
}

.result-box .label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-box .value {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-serif);
}

/* Footer */
.footer {
    background: #01040f;
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.footer-links h4, .footer-legal h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 1rem;
}

.footer-links a, .footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 10rem;
        text-align: center;
    }
    .hero-content {
        padding: 0 2rem;
    }
    .hero-image img {
        border-radius: 40px;
        height: 50vh;
        width: 90%;
        margin: 0 auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .toc {
        display: none;
    }
}
