@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
    --bg: #F4EBD9;
    --text: #3B2E25;
    --primary: #E85D26;
    --secondary: #E0A526;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Archivo', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .archivo-black {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
}

.mono {
    font-family: 'DM Mono', monospace;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Nav */
.navbar {
    border-bottom: 2px solid var(--text);
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-text {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.8rem;
    color: var(--text);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Archivo Black', sans-serif;
}
.nav-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes spin-cw { 100% { transform: rotate(360deg); } }
@keyframes spin-ccw { 100% { transform: rotate(-360deg); } }
@keyframes ping-anim { 
    0% { transform: scale(1); opacity: 1; } 
    100% { transform: scale(3); opacity: 0; } 
}
.logo-mark { display: block; }
.logo-mark .ring, .logo-mark .ping { transform-origin: 50px 50px; }
.logo-mark .ring-cw { animation: spin-cw 20s linear infinite; }
.logo-mark .ring-ccw { animation: spin-ccw 25s linear infinite; }
.logo-mark .ping { animation: ping-anim 2s ease-out infinite; }

/* Buttons */
.btn {
    background-color: var(--primary);
    color: var(--bg);
    padding: 15px 30px;
    border: 2px solid var(--text);
    box-shadow: 3px 3px 0 var(--text);
    text-decoration: none;
    display: inline-block;
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover, .btn:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}
.btn-secondary {
    background-color: var(--bg);
    color: var(--text);
}

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    border-bottom: 2px solid var(--text);
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FM Dial */
.fm-dial-container {
    max-width: 600px;
    margin: 0 auto 50px auto;
    background: var(--bg);
    border: 2px solid var(--text);
    padding: 20px;
    position: relative;
    user-select: none;
}
.fm-dial-container::before, .fm-dial-container::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--text);
    top: 10px;
}
.fm-dial-container::before { left: 10px; }
.fm-dial-container::after { right: 10px; }

.fm-dial-display {
    display: flex;
    justify-content: space-between;
    font-family: 'DM Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}
.latency { color: var(--primary); }

.fm-dial {
    height: 60px;
    border: 2px solid var(--text);
    background-color: #EADDC3; /* slightly darker cream */
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
    overflow: hidden;
}
.dial-track {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.dial-marks {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 19px, var(--text) 19px, var(--text) 20px);
    opacity: 0.3;
}
.dial-needle {
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    position: absolute;
    top: 0;
    left: 20%;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 2px 0 0 rgba(59,46,37,0.3);
}
.fm-frequencies {
    display: flex;
    justify-content: space-between;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 60px 0;
    border-bottom: 2px solid var(--text);
}
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.card-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hi-Fi Spec Card */
.spec-card {
    background-color: var(--bg);
    border: 2px solid var(--text);
    padding: 30px;
    flex: 1 1 300px;
    max-width: 380px;
    position: relative;
}
.spec-card::before, .spec-card::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--text);
}
.spec-card::before { top: 10px; left: 10px; }
.spec-card::after { top: 10px; right: 10px; }

.spec-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--text);
    padding-bottom: 10px;
}

/* Pricing specific */
.price {
    font-family: 'DM Mono', monospace;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary);
}
.price span { font-size: 1.2rem; color: var(--text); }
.spec-card ul {
    list-style: none;
    margin-bottom: 30px;
}
.spec-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
}
.spec-card ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Badge */
.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary);
    color: var(--text);
    padding: 5px 15px;
    font-family: 'Archivo Black', sans-serif;
    border: 2px solid var(--text);
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background: var(--text);
    color: var(--bg);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--bg);
    text-decoration: none;
    font-family: 'Archivo Black', sans-serif;
}
.footer-links a:hover {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; }
    .fm-dial-display { flex-direction: column; text-align: center; gap: 10px;}
    .spec-card { max-width: 100%; }
}

/* Floating Button */
.floating-btn { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: var(--bg); padding: 15px; font-family: 'Archivo Black', sans-serif; text-decoration: none; border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); transition: transform 0.1s, box-shadow 0.1s; z-index: 1000; font-size: 1.2rem; }
.floating-btn:hover { transform: translate(3px, 3px); box-shadow: none; }
