/* ========================================
   Terminal-Style Workshop Landing Page
   Inspired by claudecodecamp.com
   ======================================== */

:root {
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Terminal colors */
    --terminal-bg: hsl(0, 0%, 10%);
    --terminal-bg-dark: hsl(0, 0%, 8%);
    --terminal-text: hsl(0, 0%, 89%);
    --terminal-text-muted: hsl(0, 0%, 60%);
    --terminal-border: hsl(0, 0%, 20%);
    
    /* Accent colors */
    --terminal-orange: #8b5cf6; /* Obsidian purple */
    --terminal-green: hsl(142, 69%, 58%);
    --terminal-red: hsl(0, 100%, 67%);
    --terminal-yellow: hsl(43, 96%, 58%);
    --terminal-traffic-green: hsl(133, 81%, 52%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--terminal-bg);
    color: var(--terminal-text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Terminal Window
   ======================================== */

.terminal-window {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--terminal-bg-dark);
    border-bottom: 1px solid var(--terminal-border);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: var(--terminal-red); }
.dot.yellow { background: var(--terminal-yellow); }
.dot.green { background: var(--terminal-traffic-green); }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--terminal-text-muted);
}

.header-cta {
    background: var(--terminal-orange);
    color: var(--terminal-bg-dark);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-cta:hover {
    opacity: 0.9;
}

.terminal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 32px 16px;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section {
        padding: 48px 24px;
    }
}

/* ========================================
   Typography
   ======================================== */

h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

p {
    margin-bottom: 8px;
}

.muted {
    color: var(--terminal-text-muted);
}

.white {
    color: var(--terminal-text);
}

.orange {
    color: var(--terminal-orange);
}

.green {
    color: var(--terminal-green);
}

.bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.mono {
    font-family: var(--font-mono);
}

.small {
    font-size: 13px;
}

.text-lg {
    font-size: 1.25rem;
}

.center {
    text-align: center;
}

.indent {
    padding-left: 20px;
}

/* ========================================
   ASCII Art
   ======================================== */

.ascii-art {
    color: var(--terminal-orange);
    font-size: 0.5rem;
    line-height: 1.1;
    overflow-x: auto;
    margin-bottom: 24px;
    white-space: pre;
}

@media (min-width: 640px) {
    .ascii-art {
        font-size: 0.65rem;
    }
}

@media (min-width: 768px) {
    .ascii-art {
        font-size: 0.75rem;
    }
}

/* ========================================
   Components
   ======================================== */

.divider {
    border-top: 1px solid var(--terminal-border);
    margin: 24px 0;
}

.info-block {
    margin: 16px 0;
}

.info-block p {
    margin-bottom: 4px;
}

.cta-button {
    display: inline-block;
    background: var(--terminal-orange);
    color: var(--terminal-bg-dark);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-top: 16px;
}

.cta-button:hover {
    opacity: 0.9;
}

/* ========================================
   Curriculum
   ======================================== */

.curriculum {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.curriculum-block {
    margin-bottom: 8px;
}

.tree {
    list-style: none;
    padding-left: 16px;
}

.tree li {
    color: var(--terminal-text-muted);
    margin-bottom: 8px;
}

.branch {
    color: var(--terminal-text);
    margin-right: 8px;
}

.takeaway {
    border-top: 1px solid var(--terminal-border);
    padding-top: 24px;
    margin-top: 24px;
}

.takeaway ul {
    list-style: none;
}

.takeaway li {
    color: var(--terminal-text-muted);
    margin-bottom: 8px;
}

.takeaway li .green {
    margin-right: 8px;
}

/* ========================================
   Testimonials
   ======================================== */

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.testimonial {
    border-left: 2px solid var(--terminal-green);
    padding-left: 16px;
}

.testimonial p {
    margin-bottom: 8px;
}

.social-proof-image {
    margin: 24px 0;
}

.social-proof-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--terminal-border);
    margin-top: 8px;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--terminal-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terminal-orange);
}

/* ========================================
   Instructor
   ======================================== */

.instructor-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .instructor-grid {
        grid-template-columns: 200px 1fr;
    }
}

.instructor-photo img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid var(--terminal-border);
}

.instructor-highlights {
    margin: 16px 0;
}

.instructor-highlights p {
    margin-bottom: 8px;
}

/* ========================================
   Guarantee & FAQ
   ======================================== */

.guarantee-list {
    margin-bottom: 32px;
}

.guarantee-item {
    margin-bottom: 16px;
}

.guarantee-item p:first-child {
    margin-bottom: 4px;
}

.faq {
    margin-bottom: 32px;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-item p:first-child {
    margin-bottom: 4px;
}

/* ========================================
   Checkout
   ======================================== */

.checkout-box {
    border: 1px solid var(--terminal-border);
    padding: 24px;
    margin: 24px 0;
}

#checkout-form label {
    display: block;
    margin-bottom: 4px;
}

#checkout-form input,
.waitlist-form input {
    width: 100%;
    padding: 12px;
    background: var(--terminal-bg-dark);
    border: 1px solid var(--terminal-border);
    color: var(--terminal-text);
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 12px;
}

#checkout-form input:focus,
.waitlist-form input:focus {
    outline: none;
    border-color: var(--terminal-orange);
}

#checkout-form input::placeholder,
.waitlist-form input::placeholder {
    color: var(--terminal-text-muted);
}

.checkout-button {
    display: block;
    width: 100%;
    background: var(--terminal-orange);
    color: var(--terminal-bg-dark);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
}

.checkout-button:hover {
    opacity: 0.9;
}

.checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.waitlist-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.waitlist-form input {
    flex: 1;
    margin-bottom: 0;
}

.waitlist-form button {
    background: var(--terminal-orange);
    color: var(--terminal-bg-dark);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.waitlist-form button:hover {
    opacity: 0.9;
}

.waitlist-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Links
   ======================================== */

.link {
    color: var(--terminal-text);
    text-decoration: underline;
    transition: color 0.2s;
    margin-right: 16px;
}

.link:hover {
    color: var(--terminal-orange);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 32px 16px;
    max-width: 680px;
    margin: 0 auto;
    border-top: 1px solid var(--terminal-border);
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

/* ========================================
   Scroll Hint
   ======================================== */

.scroll-hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--terminal-text-muted);
    font-size: 13px;
    animation: pulse 2s ease-in-out infinite;
    z-index: 50;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-hint .desktop {
    display: none;
}

@media (min-width: 640px) {
    .scroll-hint .desktop {
        display: inline;
    }
    .scroll-hint .mobile {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   Side Navigation Dots (Minimal)
   ======================================== */

.side-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terminal-text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.side-nav-dot:hover {
    opacity: 0.7;
}

.side-nav-dot.active {
    background: var(--terminal-orange);
    opacity: 1;
}

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

/* ========================================
   Page-like Sections with Snap
   ======================================== */

.section {
    min-height: calc(100vh - 45px);
    min-height: calc(100dvh - 45px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--terminal-border);
    padding-top: 16px;
    padding-bottom: 16px;
}

.section:last-of-type {
    border-bottom: none;
}

.footer {
    min-height: auto;
    scroll-snap-align: end;
}

/* ========================================
   Subtle Hover Effects (Minimal)
   ======================================== */

.cta-button:hover,
.checkout-button:hover,
.header-cta:hover {
    opacity: 0.85;
}

.link:hover {
    color: var(--terminal-orange);
}

/* ========================================
   Hide scrollbar but keep functionality
   ======================================== */

.terminal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.terminal-content::-webkit-scrollbar {
    display: none;
}

/* ========================================
   Mobile Adjustments
   ======================================== */

@media (max-width: 640px) {
    .terminal-title {
        display: none;
    }
    
    .header-cta {
        margin-left: auto;
    }
    
    .stats {
        flex-direction: column;
        gap: 16px;
    }
}
