/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

* {
    margin:  0;
    padding: 0;
    box-sizing:  border-box;
}

:root {
    /* Colors */
    --primary:  #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning:  #f59e0b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border:  #475569;
    
    /* Spacing */
    --container-width: 1200px;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width:  var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color:  var(--primary-dark);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 80px 20px;
    text-align:  center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size:  1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background:  linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 80px 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color:  var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom:  15px;
    color:  var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background:  linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.last-updated {
    font-style: italic;
    color: var(--text-muted);
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.content-section {
    padding: 60px 20px;
}

.guide-content,
.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.guide-section,
.policy-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.guide-section h2,
.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.guide-section p,
.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.guide-section ul,
.guide-section ol,
.policy-section ul {
    margin-left: 25px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.guide-section li,
.policy-section li {
    margin-bottom: 10px;
}

.guide-section strong,
.policy-section strong {
    color: var(--text-primary);
}

/* ============================================
   CODE BLOCKS
   ============================================ */

code {
    background-color: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family:  'Courier New', monospace;
    color: var(--primary);
    font-size: 0.95em;
}

.code-block {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius:  8px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
    overflow-x: auto;
}

.code-block code {
    background:  transparent;
    padding: 0;
    display: block;
    color: var(--text-primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 60px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom:  15px;
    color:  var(--text-primary);
}

.contact-info {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info a {
    color: var(--primary);
    word-break: break-all;
}

.contact-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-info-section,
.contact-notes-section {
    padding: 40px 20px;
    background-color: var(--bg-secondary);
}

.contact-info-section h2,
.contact-notes-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-topics,
.contact-notes {
    max-width: 800px;
    margin: 0 auto;
}

.contact-topics ul,
.contact-notes ul {
    list-style: none;
}

.contact-topics li,
.contact-notes li {
    padding: 15px;
    margin-bottom:  15px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom:  20px;
    color: var(--text-primary);
}

.footer-column p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border:  none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width:  768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features h2,
    .about h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .guide-section,
    .policy-section {
        padding: 20px;
    }

        .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width:  480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .features,
    .about,
    .cta-section,
    .content-section {
        padding: 40px 20px;
    }

    .features h2,
    .about h2,
    .cta-section h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 20px;
    }

    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size:  1.75rem;
    }

    .guide-section h2,
    .policy-section h2 {
        font-size:  1.5rem;
    }

    .contact-card {
        padding: 20px;
    }

    .footer {
        padding: 30px 20px 15px;
    }
}