:root {
    --bg-color: #0f172a; /* Deep slate */
    --surface-color: rgba(30, 41, 59, 0.6);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #74b9ff; /* Novamet light blue */
    --accent-blue-hover: #5aa1e8;
    --accent-dark: #1a242f; /* Novamet dark slate */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(116,185,255,0.15) 0%, rgba(15,23,42,0) 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26,36,47,0.4) 0%, rgba(15,23,42,0) 70%);
    bottom: -100px;
    left: -200px;
    animation-delay: -5s;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--accent-blue);
    -webkit-text-fill-color: var(--accent-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    position: relative;
    width: 32px;
    height: 32px;
}

/* CSS approximation of the logo */
.shape-dark {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--accent-dark);
    transform: skew(-20deg);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.shape-blue {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 22px;
    background: var(--accent-blue);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-text small {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:not(.btn-primary):hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(116, 185, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Live Markets Section */
.markets {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(to bottom, rgba(15,23,42,0) 0%, rgba(30,41,59,0.3) 50%, rgba(15,23,42,0) 100%);
}

.markets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.markets-header .section-title {
    margin-bottom: 0;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-display {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 2px;
}

.market-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.market-card {
    background: linear-gradient(145deg, rgba(40, 55, 75, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-blue);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.market-card:hover {
    transform: translateY(-8px);
    border-color: rgba(116, 185, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.market-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-blue);
}

.market-card .metal-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-card .symbol {
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.market-card .metal-price {
    font-size: 3rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-primary);
    line-height: 1;
}

.metal-price.loading, .metal-price.pending {
    font-size: 1.2rem !important;
    font-weight: 500;
    color: var(--text-secondary) !important;
    font-family: var(--font-main) !important;
    font-style: italic;
}

.metal-change-wrapper {
    display: inline-flex;
    align-items: center;
}

.metal-change {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-up { 
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71; 
}
.price-down { 
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c; 
}
.tbd { 
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary); 
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.link-arrow:hover .arrow {
    transform: translateX(5px);
}

.arrow {
    transition: transform 0.3s ease;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 55, 75, 0.8);
    border-color: rgba(116, 185, 255, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0 8rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-details {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.5rem;
    background: rgba(116, 185, 255, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
}

.detail-item h4 {
    margin-bottom: 0.2rem;
}

.detail-item p {
    color: var(--text-secondary);
}

.glass-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.glass-form input,
.glass-form textarea {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--surface-border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.glass-form input:focus,
.glass-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 24px;
}

.status-success { color: #2ecc71; }
.status-error { color: #e74c3c; }

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 0 2rem;
    background: rgba(10, 15, 30, 0.9);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--surface-border);
}

.social-icon:hover {
    background: var(--accent-blue);
    color: #0f172a;
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h3, .footer-newsletter h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--surface-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--surface-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations initially hidden for GSAP */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-wrapper {
        padding: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* In a real app, we'd add a hamburger menu */
    }
    .hero-actions {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

/* Custom Portal Button */
.btn-portal {
    background: rgba(116, 185, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(116, 185, 255, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.btn-portal:hover {
    background: rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.6);
    color: #fff;
    box-shadow: 0 0 15px rgba(116, 185, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Background Animation */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.floating-logo {
    position: absolute;
    opacity: 0.05;
    filter: blur(4px);
    will-change: transform;
    pointer-events: none;
}

/* Specific positioning and scaling for parallax depth */
.m-logo-1 { width: 50vw; top: -15%; left: -10%; opacity: 0.04; filter: blur(6px); }
.m-logo-2 { width: 35vw; top: 55%; left: 15%; opacity: 0.06; filter: blur(3px); }
.m-logo-3 { width: 60vw; top: 10%; right: -25%; opacity: 0.03; filter: blur(8px); }
.m-logo-4 { width: 40vw; bottom: -25%; right: 10%; opacity: 0.05; filter: blur(4px); }
.m-logo-5 { width: 25vw; top: 40%; left: 45%; opacity: 0.07; filter: blur(2px); }

@media (max-width: 768px) { .nav-links { display: flex !important; gap: 0.5rem !important; } .nav-link { display: none !important; } .btn-portal { display: inline-block !important; padding: 0.4rem 1rem !important; font-size: 0.85rem !important; margin-left: auto; } .navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; } }
