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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e7ff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Header */
.header {
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo span {
    color: #94a3b8;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Hero Section */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
}

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

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    max-width: 400px;
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.cta-button.secondary:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.risk-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 0.85rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.risk-warning svg {
    flex-shrink: 0;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-top: 3rem;
}

.section-header svg {
    color: #60a5fa;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
}

/* Topics Section */
.topics {
    padding: 3rem 0 4rem;
}

.topics .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.topic-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.topic-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.topic-icon svg {
    color: white;
}

.topic-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.topic-card p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Skills Section */
.skills {
    padding: 3rem 0 4rem;
    background: rgba(15, 23, 42, 0.5);
}

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

.skill-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.skill-number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    color: #94a3b8;
    position: relative;
}

.skill-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* Community Section */
.community {
    padding: 4rem 0;
    text-align: center;
}

.community .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.community-image {
    margin: 3rem 0 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 900px;
}

.community-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: rgba(15, 23, 42, 0.5);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary svg {
    flex-shrink: 0;
    color: #60a5fa;
    transition: transform 0.3s ease;
}

.faq-item[open] summary svg {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* Disclaimer */
.disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.disclaimer svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-links svg {
    flex-shrink: 0;
}

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo span {
        font-size: 0.8rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding-top: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        max-width: 100%;
    }

    .risk-warning {
        font-size: 0.8rem;
        padding: 0.65rem 1.25rem;
        text-align: center;
        max-width: 100%;
    }

    .disclaimer {
        font-size: 0.8rem;
        padding: 0.65rem 1.25rem;
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .community-image {
        margin: 2rem 0 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .topics-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.topics,
.skills,
.community,
.faq {
    animation: fadeIn 0.8s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Legal Pages Styles */
.legal-content {
    padding: 4rem 0 5rem;
    min-height: calc(100vh - 300px);
}

.legal-content .container {
    max-width: 900px;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: #64748b;
    font-size: 0.9rem;
}

.legal-intro {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.legal-intro p {
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.legal-section p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-section ul li {
    color: #94a3b8;
    line-height: 1.8;
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 0.75rem;
    color: #60a5fa;
    font-weight: 700;
    font-size: 1.2rem;
}

.legal-section ul li strong {
    color: #cbd5e1;
}

.legal-section ol {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 1rem 0;
}

.legal-section ol li {
    color: #94a3b8;
    line-height: 1.8;
    padding: 0.5rem 0 0.5rem 2.5rem;
    position: relative;
    counter-increment: item;
}

.legal-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0.75rem;
    color: #60a5fa;
    font-weight: 600;
}

.legal-section ol li ul {
    margin-top: 0.75rem;
}

.contact-info {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.contact-info p {
    margin: 0;
    color: #cbd5e1;
}

.contact-info strong {
    color: #f1f5f9;
}

.legal-notice {
    display: flex;
    gap: 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 3rem 0;
}

.notice-icon {
    flex-shrink: 0;
}

.notice-icon svg {
    color: #fbbf24;
    width: 32px;
    height: 32px;
}

.notice-content h3 {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.notice-content p {
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
}

.legal-back {
    margin-top: 4rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    transform: translateY(-2px);
}

.back-link svg {
    flex-shrink: 0;
}

/* Legal Pages - Make logo clickable */
.legal-content .logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.legal-content .logo:hover {
    opacity: 0.8;
}

/* Legal Pages - Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 3rem 0 4rem;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section ul li,
    .legal-section ol li {
        padding-left: 1.75rem;
    }

    .legal-notice {
        flex-direction: column;
        padding: 1.5rem;
    }

    .notice-icon svg {
        width: 28px;
        height: 28px;
    }

    .back-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}
