@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --secondary: #1F2937;
    --accent-gold: #FCD34D;
    --accent-silver: #E5E7EB;
    --accent-platinum: #A78BFA;
    --accent-palladium: #F97316;
    --accent-copper: #B45309;
    --success: #10B981;
    --danger: #EF4444;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-grey: #F3F4F6;
    --text-dark: #111827;
    --text-grey: #6B7280;
    --text-light: #D1D5DB;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-grey);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-dark);
}

/* Main */
main {
    /* margin-top: 80px; */
}

section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    padding-top: 6rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.metals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.metal-card {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-grey);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
}

.metal-card:hover {
}

.metal-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    /* margin-bottom: 0.5rem; */
}

.metal-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.metal-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Price Section */
.price-section {
    background: var(--bg-white);
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-grey);
}

th {
    padding: 1rem;
    text-align: left;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1.25rem 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

th, td {
    border: 1px solid #e6e6e6;
}

tbody tr:hover {
    background: #FFFAEB;
}

.metal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.metal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.metal-badge-img {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    object-fit: cover;
}

.dot-gold { background: #FCD34D; }
.dot-silver { background: #D1D5DB; }
.dot-platinum { background: #A78BFA; }
.dot-palladium { background: #F97316; }
.dot-copper { background: #B45309; }

.positive {
    color: var(--success);
    font-weight: 600;
}

.negative {
    color: var(--danger);
    font-weight: 600;
}



/* Info Section */
.info-section {
    background: var(--bg-white);
    padding: 4rem 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-grey);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.info-card:hover {
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.75rem;
}

.info-card p {
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Features */
.features-section {
    background: var(--bg-grey);
    padding: 4rem 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.7;
}

/* FAQ */
.faq-section {
    background: var(--bg-white);
    padding: 4rem 1.5rem;
}

.faq-wrapper {
    max-width: 900px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--bg-grey);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--text-dark);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-content p {
    line-height: 1.8;
    color: var(--text-grey);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: #FFFFFF;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #FFFFFF;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        margin-top: 60px;
    }

    header nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 3rem 1rem;
    }

    .hero {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .metals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .swap-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .converter-card {
        padding: 1.5rem;
    }

    .result-amount {
        font-size: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-trigger {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    header nav {
        padding: 0.75rem 0.75rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    section {
        padding: 2rem 0.75rem;
    }

    .metals-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .metal-card {
        padding: 1rem;
    }

    .converter-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .result-box {
        padding: 1.5rem 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-trigger {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .info-card,
    .feature-card {
        padding: 1.5rem;
    }
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F59E0B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

[colspan] {
    text-align: center;
}

@media print {
    header, footer {
        display: none;
    }
}
