/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    --bg-main: #0B0F19;
    --bg-secondary: #131A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-primary: #3B82F6;
    --accent-secondary: #8B5CF6;
    --gradient-glow: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-glow-hover: linear-gradient(90deg, #4F90FF 0%, #9F75FF 100%);
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

span {
    color: transparent;
    background: var(--gradient-glow);
    background-clip: text;
    -webkit-background-clip: text;
}

/* =========================================
   TYPOGRAPHY & BUTTONS
   ========================================= */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-glow-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
}

/* =========================================
   COMPONENTS
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93C5FD;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.visual-card {
    padding: 24px;
    position: relative;
    z-index: 2;
    transform: rotateY(-5deg) rotateX(5deg);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.keyword { color: #8B5CF6; }
.string { color: #10B981; }
.comment { color: #64748B; font-style: italic; }
.number { color: #F59E0B; }

.blur-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: #3B82F6;
    top: -50px;
    left: -50px;
}

.glow-2 {
    width: 250px;
    height: 250px;
    background: #8B5CF6;
    bottom: -50px;
    right: -50px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    color: transparent;
}

.stat-item p {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
}

.section-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 24px;
    margin-bottom: 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* arbitrary height to allow animation */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* makes the '+' become an 'x' */
}
.faq-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Registration section */
.register-section {
    padding: 100px 0 120px;
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23grid)" /></svg>');
    position: relative;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefit-list {
    list-style: none;
    margin-top: 32px;
}

.benefit-list li {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.register-form-wrapper {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.register-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input, select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select {
    appearance: none;
    cursor: pointer;
}

select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-status {
    margin-top: 16px;
    text-align: center;
    font-size: 0.875rem;
    min-height: 20px;
}

.status-success { color: #10B981; }
.status-error { color: #EF4444; }

/* Footer */
.footer {
    background: #06090e;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo p {
    font-size: 0.875rem;
    margin-top: 8px;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .register-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .register-content {
        text-align: center;
    }

    .benefit-list li {
        justify-content: center;
    }

    .stats-container {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}
