/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Color Palette */
    --primary-color: #1f2937;
    --primary-dark: #111827;
    --secondary-color: #1e3a8a;
    --accent-color: #059669;
    --danger-color: #dc2626;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    font-size: 16px;
    font-weight: 400;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header and Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-lg);
    max-width: 1280px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    transition: none;
}

.logo-link:hover,
.logo-link:focus,
.logo-link:active,
.logo-link:visited {
    color: inherit;
    text-decoration: none;
    background: none;
    outline: none;
    box-shadow: none;
}

.logo-image {
    height: 40px;
    width: auto;
}

.nav-logo h1 {
    color: var(--primary-color);
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.025em;
}

.nav-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gray-100);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) 0;
    z-index: 1001;
    border: 1px solid var(--gray-200);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: var(--gray-700);
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    padding-left: var(--space-xl);
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-sm);
}

.bar {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: var(--gray-50);
    color: var(--primary-color);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.hero h1,
.hero h2 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    font-weight: 800;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 1;
}

.hero p {
    color: var(--gray-600);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.hero-links {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sections */
section {
    padding: var(--space-3xl) 0;
}

.boards-section {
    background: white;
}

.guides-section {
    background: var(--gray-50);
}

.support-section {
    background: white;
}

.content-section {
    background: white;
}

section h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    font-size: 2.5rem;
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Grid layouts */
.boards-grid,
.guides-grid,
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    max-width: 1280px;
    margin: 0 auto;
}

/* Cards */
.board-card,
.guide-card,
.support-item {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.board-card::before,
.guide-card::before,
.support-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.board-card:hover,
.guide-card:hover,
.support-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.board-card h3,
.guide-card h3,
.support-item h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.board-card p,
.guide-card p,
.support-item p {
    margin-bottom: var(--space-lg);
    color: var(--gray-600);
    line-height: 1.7;
}

.board-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.guide-card ul {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.guide-card li {
    padding: var(--space-sm) 0;
    color: var(--gray-600);
    position: relative;
    padding-left: var(--space-lg);
}

.guide-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: calc(80px + var(--space-lg));
}

.sidebar-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: var(--space-sm);
}

.quick-links,
.external-links {
    list-style: none;
}

.quick-links li,
.external-links li {
    margin-bottom: var(--space-sm);
}

.quick-links a,
.external-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    display: block;
}

.quick-links a:hover,
.external-links a:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
    padding-left: var(--space-md);
}

/* Main Content */
.main-content {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.guide-article h2 {
    color: var(--gray-900);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    font-size: 2rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--space-sm);
}

.guide-article h2:first-of-type {
    margin-top: 0;
}

.guide-article h3 {
    color: var(--gray-800);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    font-weight: 600;
}

.guide-article h4 {
    color: var(--gray-700);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
}

.guide-article p {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    color: var(--gray-600);
}

.guide-article ul,
.guide-article ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.guide-article li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    color: var(--gray-600);
}

/* Info Boxes */
.info-box {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    border-left: 4px solid;
}

.info-box.warning {
    background: #fef3cd;
    border-color: var(--secondary-color);
    color: #8b5a00;
}

.info-box.tip {
    background: #d1fae5;
    border-color: var(--accent-color);
    color: #064e3b;
}

.info-box.legal {
    background: #fee2e2;
    border-color: var(--danger-color);
    color: #7f1d1d;
}

.info-box h3,
.info-box h4 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

/* Steps */
.steps-container {
    margin: var(--space-xl) 0;
}

.step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
    font-weight: 600;
}

/* Mini Steps */
.steps-mini {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.step-mini {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.step-num {
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-mini p {
    margin: 0;
    color: var(--gray-700);
    font-weight: 500;
}

/* Video Section */
.video-section {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.video-link {
    margin-top: var(--space-lg);
}

.video-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.video-embed {
    margin: var(--space-lg) 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

/* Component Cards */
.component-card {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    border: 1px solid var(--gray-200);
}

.component-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Code Blocks */
.code-block {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    overflow-x: auto;
}

code {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* Footer */
/* Store Section */
.stores-section {
    background: var(--gray-50);
    padding: var(--space-3xl) 0;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.store-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.store-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.store-card p {
    margin-bottom: var(--space-lg);
    color: var(--gray-600);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: var(--space-sm);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .sidebar {
        order: -1;
    }

    .sidebar-card {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--space-xl) 0;
        gap: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: var(--space-md) 0;
    }

    .nav-link {
        color: white;
        font-size: 1rem;
        padding: var(--space-sm) var(--space-md);
        margin: 0 var(--space-lg);
        border-radius: var(--radius-md);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1,
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .boards-grid,
    .guides-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .dropdown-content {
        position: static;
        display: block;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        padding: 0;
        margin-top: var(--space-sm);
        border: none;
    }

    .dropdown-content a {
        color: white;
        padding: var(--space-sm) var(--space-lg);
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: var(--space-lg);
    }

    .main-content {
        padding: var(--space-lg);
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        align-self: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .nav-container {
        padding: var(--space-md);
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero h1,
    .hero h2 {
        font-size: 2rem;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .board-card,
    .guide-card,
    .support-item,
    .main-content,
    .sidebar-card {
        padding: var(--space-lg);
    }
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Antenna Section Styles */
.antenna-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.antenna-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.antenna-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.antenna-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    font-weight: 600;
}

.antenna-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.antenna-card p {
    margin: var(--space-sm) 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.antenna-card p strong {
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .antenna-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .antenna-card {
        padding: var(--space-lg);
    }

    .antenna-image {
        width: 90px;
        height: 90px;
    }
}