/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-wine: #2c0a15;
    --burgundy: #4a1528;
    --cream: #f5e6d3;
    --copper: #c4956a;
    --earth: #8b6355;
    --dark: #1a0a0f;
    --neon: #7fff7f;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-wine);
    color: var(--cream);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === LINEN TEXTURE === */
.hero, .portfolio-section, .about-section {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(245, 230, 211, 0.02) 2px,
        rgba(245, 230, 211, 0.02) 4px
    );
}

/* === NAV === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: rgba(26, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 149, 106, 0.15);
}

.nav-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.logo-dot {
    color: var(--neon);
    text-shadow: 0 0 8px rgba(127, 255, 127, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--copper);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--cream);
}

.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--copper);
    transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
    background: var(--copper);
    color: var(--dark) !important;
}

/* === SECTION TITLES === */
.section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--deep-wine);
    overflow: hidden;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--copper);
    display: block;
    margin-bottom: 24px;
}

.hero-price {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 96px;
    color: var(--cream);
    line-height: 1;
    text-shadow: 0 0 10px rgba(127, 255, 127, 0.15);
    box-shadow: inset 0 -3px 0 rgba(127, 255, 127, 0.3);
    display: inline-block;
    padding: 16px 32px;
    transition: text-shadow 0.6s;
}

.hero-price.glow {
    text-shadow: 0 0 10px #7fff7f, 0 0 30px rgba(127, 255, 127, 0.3);
}

.hero-change {
    margin-top: 16px;
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    color: var(--neon);
}

.hero-change .change-arrow {
    margin-right: 4px;
}

.hero-timestamp {
    display: block;
    margin-top: 24px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--earth);
    letter-spacing: 0.1em;
}

/* === SKYLINE SVG === */
.skyline-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.skyline-svg path {
    fill: var(--burgundy);
    opacity: 0.12;
}

.hero-skyline {
    height: 120px;
}

.footer-skyline {
    position: relative;
    height: 80px;
    display: block;
}

.footer-skyline path {
    fill: var(--earth);
    opacity: 0.1;
}

/* === MARKETS === */
.markets-section {
    padding: 120px 48px;
    background-color: var(--dark);
}

.markets-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.market-card {
    position: relative;
    overflow: hidden;
    background: var(--burgundy);
    border: 1px solid rgba(196, 149, 106, 0.12);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s, transform 0.3s;
}

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

.card-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--copper);
}

.card-price {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    color: var(--cream);
    line-height: 1.1;
}

.card-change {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
}

.card-change.up {
    color: var(--neon);
}

.card-change.down {
    color: #ff6b6b;
}

/* === PORTFOLIO === */
.portfolio-section {
    padding: 120px 48px;
    background-color: var(--deep-wine);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.portfolio-stat {
    position: relative;
    overflow: hidden;
    padding: 32px 24px;
    border: 1px solid rgba(196, 149, 106, 0.1);
    transition: border-color 0.3s;
}

.portfolio-stat:hover {
    border-color: var(--copper);
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--earth);
    display: block;
    margin-bottom: 12px;
}

.stat-value {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    color: var(--cream);
}

.stat-value.positive {
    color: var(--neon);
}

/* === ABOUT === */
.about-section {
    padding: 120px 48px;
    background-color: var(--dark);
}

.about-inner {
    max-width: 640px;
    margin: 0 auto;
}

.about-text {
    font-size: 18px;
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* === TRADE CTA === */
.trade-section {
    position: relative;
    overflow: hidden;
    padding: 120px 48px;
    background-color: var(--burgundy);
    text-align: center;
}

.trade-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px;
    color: var(--cream);
    margin-bottom: 16px;
}

.trade-sub {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--copper);
    margin-bottom: 48px;
    letter-spacing: 0.08em;
}

.trade-btn {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 16px 48px;
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--copper);
    cursor: pointer;
    transition: background 0.4s, color 0.4s;
}

.trade-btn:hover {
    background: var(--copper);
    color: var(--dark);
}

/* === FOOTER === */
.site-footer {
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    border-top: 1px solid rgba(196, 149, 106, 0.1);
}

.footer-brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    color: var(--cream);
}

.footer-copy {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--earth);
    letter-spacing: 0.05em;
}

/* === RIPPLE === */
.ripple-container {
    position: relative;
    overflow: hidden;
}

span.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 149, 106, 0.4);
    transform: scale(0);
    animation: rippleAnim 600ms ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .top-nav {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero-price {
        font-size: 56px;
    }

    .markets-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-price {
        font-size: 32px;
    }

    .trade-heading {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .markets-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-price {
        font-size: 44px;
    }

    .nav-links {
        display: none;
    }
}
