/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background: #0d1117;
}

/* Waitlist page styles */
.waitlist-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    position: relative;
    overflow-x: hidden;
}

.waitlist-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.waitlist-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 0;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #58a6ff;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #58a6ff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.highlight {
    color: #f85149;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #c9d1d9;
    margin-bottom: 3.5rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: #e6edf3;
    font-weight: 600;
}

/* Terminal Demo */
.demo-preview {
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.screenshot-container {
    max-width: 1100px;
    width: 100%;
}

.demo-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(88, 166, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.demo-screenshot:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.7),
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(88, 166, 255, 0.3),
        0 0 40px rgba(88, 166, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.screenshot-container {
    max-width: 1150px;
    width: 100%;
}

.app-mockup {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.app-header {
    background: rgba(33, 38, 45, 0.8);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #30363d;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8b949e;
}

.terminal-dots span:first-child {
    background: #f85149;
}

.terminal-dots span:nth-child(2) {
    background: #d29922;
}

.terminal-dots span:last-child {
    background: #3fb950;
}

.app-title {
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 500;
}

.terminal-content {
    padding: 16px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.prompt {
    color: #58a6ff;
    font-weight: 600;
}

.terminal-line.blocked {
    color: #f85149;
    font-weight: 500;
}

.terminal-line.quiz {
    color: #f59e0b;
    font-weight: 500;
}

.terminal-line .icon {
    font-size: 1rem;
}

/* App interface preview */
.app-screenshot {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #1e2a3a 0%, #2d4a5b 100%);
}

.mock-interface {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interface-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 700px;
}

.code-section, .assessment-section {
    background: rgba(13, 17, 23, 0.7);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 8px;
    padding: 16px;
}

.section-header {
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: center;
}

.mock-code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.code-line {
    margin-bottom: 4px;
    padding: 2px 4px;
    border-radius: 2px;
}

.code-line.added {
    background: rgba(35, 134, 54, 0.15);
    color: #3fb950;
}

.code-line.removed {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.question-preview {
    text-align: left;
}

.question {
    color: #58a6ff;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.options {
    font-size: 0.7rem;
    line-height: 1.4;
}

.option {
    color: #c9d1d9;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .interface-split {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .app-screenshot {
        height: 350px;
    }
}

/* Waitlist form */
.waitlist-form {
    background: rgba(22, 27, 34, 0.7);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(88, 166, 255, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #8b949e;
    font-size: 1rem;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 12px;
    color: #e6edf3;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.email-input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.1);
}

.email-input::placeholder {
    color: #8b949e;
}

.submit-btn {
    padding: 16px 28px;
    background: linear-gradient(135deg, #58a6ff 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    color: #8b949e;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.check {
    color: #3fb950;
    font-weight: 600;
}

/* Features section */
.features-section {
    padding: 80px 0;
    margin-top: -10vh;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #8b949e;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.feature-card.full-width {
    grid-column: 1 / -1;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #58a6ff;
    box-shadow: 0 12px 30px rgba(88, 166, 255, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.feature-header div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.feature-icon.terminal {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.2);
}

.feature-icon.github {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.2);
}

.feature-icon.quiz {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.2);
}

.feature-tag {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
}

.feature-card p {
    color: #8b949e;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-card code {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.9em;
}

/* Code snippet in feature cards */
.code-snippet {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.code-snippet .prompt {
    color: #58a6ff;
    font-weight: 600;
}

.code-snippet .blocked {
    color: #f85149;
    margin-top: 4px;
}

/* GitHub Bot Mockup */
.github-bot-mockup {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.bot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(35, 134, 54, 0.2);
    border: 2px solid #238636;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #e6edf3;
}

.bot-tag {
    background: rgba(58, 134, 255, 0.2);
    color: #58a6ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.bot-description {
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* GitHub status */
.github-status {
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #58a6ff;
    font-weight: 500;
}

.status-icon {
    font-size: 1rem;
}

/* Quiz preview */
.quiz-preview {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.quiz-question {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #e6edf3;
}

.q-icon {
    background: rgba(88, 166, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #58a6ff;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    padding: 8px 12px;
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #c9d1d9;
    transition: all 0.2s ease;
}

.option.correct {
    background: rgba(35, 134, 54, 0.1);
    border-color: rgba(35, 134, 54, 0.3);
    color: #3fb950;
}

/* Testimonials section */
.testimonials-section {
    padding: 80px 0;
    margin-top: -5vh;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(22, 27, 34, 0.7);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 12px 30px rgba(88, 166, 255, 0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.8rem;
    left: 1.8rem;
    font-size: 2rem;
    color: rgba(88, 166, 255, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-quote {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.testimonial-quote p {
    color: #e6edf3;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: normal;
    margin: 0;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #58a6ff 0%, rgba(88, 166, 255, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    border: 2px solid rgba(88, 166, 255, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: #e6edf3;
    font-size: 1rem;
}

.author-role {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonials-section {
        margin-top: -2vh;
        padding: 40px 0;
    }
}

/* FAQ section */
.faq-section {
    padding: 80px 0;
    margin-top: -5vh;
}

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

.faq-item {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(33, 38, 45, 0.5);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
    flex: 1;
    padding-right: 16px;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #8b949e;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform-origin: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #58a6ff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(13, 17, 23, 0.6);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 20px 24px;
    margin: 0;
    color: #c9d1d9;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Success message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.success-message.hidden {
    display: none;
}

.success-content {
    background: rgba(33, 38, 45, 0.95);
    border: 1px solid #30363d;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
    animation: scaleIn 0.5s ease-out;
}

.success-icon {
    font-size: 3rem;
    color: #3fb950;
    margin-bottom: 1rem;
}

.success-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e6edf3;
}

.success-content p {
    color: #8b949e;
    font-size: 1rem;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .terminal-mockup {
        max-width: 100%;
    }
    
    .waitlist-form {
        margin: 0 20px;
        padding: 1.5rem;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .submit-btn {
        justify-content: center;
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .features-section {
        margin-top: -5vh;
        padding: 40px 0;
    }
    
    .faq-section {
        margin-top: -2vh;
        padding: 40px 0;
    }
    
    .faq-question {
        padding: 16px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 12px;
    }
    
    .faq-answer p {
        padding: 16px 20px;
        font-size: 0.9rem;
    }
}