:root {
    --primary: #dc2626; /* Acaders Red */
    --primary-hover: #b91c1c;
    --primary-glow: rgba(220, 38, 38, 0.2);
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --bg-main: #ffffff;
    --bg-card: #f8fafc;
    --bg-darker: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Responsive Spacing Tokens */
    --section-spacing: clamp(3rem, 8vw, 8rem);
    --container-width: 1300px;
}

.desktop-only { display: block !important; }
.mobile-only { display: none !important; }

@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}

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

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

/* TYPOGRAPHY */
h1 { font-size: clamp(2rem, 9vw, 4.5rem); font-weight: 900; line-height: 1; }
h2 { font-size: clamp(1.75rem, 6vw, 3rem); }
h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
p { font-size: clamp(0.95rem, 2.5vw, 1.1rem); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

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

.gradient-text { color: var(--primary); }

.bg-darker { background-color: var(--bg-darker); }

/* TOP BAR */
.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.top-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    justify-content: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.top-bar-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

/* HEADER & NAV */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: block;
    height: 45px;
    width: auto;
    z-index: 2100;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* HAMBURGER */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 3000;
    padding: 10px;
    border-radius: 4px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
}

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

.enter-lab {
    background: var(--bg-card);
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* HERO */
.hero {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subheadline {
    color: var(--text-secondary);
    margin: 2rem 0 3.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.visual-mockup {
    background: white;
    border-radius: 20px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
    width: 100%;
}

#hero-img, #profile-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px var(--primary-glow); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }

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

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

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    height: 100%;
}

/* STATS */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

/* OUTCOME TAG - FIXED FOR MOBILE */
.outcome-tag-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.outcome-tag {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* PRESENTATION VIEWER STYLES */
.presentation-body {
    background: #0f172a;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.presentation-container {
    position: relative;
    width: 90vw;
    height: calc(90vw * 9 / 16);
    max-height: 90vh;
    max-width: calc(90vh * 16 / 9);
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
}

.slide-logo {
    position: absolute;
    top: 2rem;
    left: 4rem;
    z-index: 1000;
    pointer-events: none;
}

.slide-logo img {
    height: 30px; /* Made slightly smaller for better fit */
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Shifted to top alignment */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.slide-content {
    padding-top: 4rem; /* Added padding to clear the logo */
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* PROMPT SHEET SPECIAL STYLES */
.slide[data-index="14"] .slide-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding-bottom: 2rem;
}

   /* Slide 15: GitHub Submission Styles */
.github-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.workshop-input {
    flex-grow: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.workshop-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-msg {
    font-size: 0.95rem;
    margin-top: 1rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.status-msg.success {
    color: #22c55e;
}

.status-msg.error {
    color: #ef4444;
}

/* Slide 14: Prompt Sheet Scroll Adjustments (Keep context) */
.prompt-scroll-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    min-height: 0;
}

.prompt-scroll-container::-webkit-scrollbar { width: 6px; }
.prompt-scroll-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.prompt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 120px; /* Massive buffer to ensure it clears the absolute-positioned nav-bar */
}

.prompt-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.prompt-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.prompt-body {
    background: rgba(0,0,0,0.2);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.prompt-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    font-family: inherit;
    line-height: 1.5;
}

.copy-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.copy-btn:hover { 
    background: var(--primary); 
    border-color: var(--primary);
}

.copy-btn.copied-permanent {
    background: #22c55e !important;
    color: white !important;
    border-color: #22c55e !important;
    pointer-events: none; /* Make it sticky and non-interactive */
}

.slide-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.slide-content p, .slide-content ul {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
}

.slide-content ul {
    margin-left: 2rem;
}

.slide-content ul li {
    margin-bottom: 1rem;
}

.slide-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary);
}

.nav-btn.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(255,255,255,0.1) !important;
    pointer-events: none; /* Secondary fallback */
}

.progress-container {
    flex-grow: 1;
    margin: 0 3rem;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.slide-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
}

/* MOBILE MEDIA QUERIES */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .subheadline { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    
    .mobile-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 2050;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 1.5rem; display: block; padding: 1rem; }
    
    /* Hamburger Animation */
    .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .proof-grid { grid-template-columns: 1fr; gap: 3rem; }
    .social-proof { border-bottom: 1px solid var(--border); }
    .top-bar .container { gap: 1rem; }
    .section-padding { padding: 4rem 0; }
    
    .slide { padding: 2rem; }
    .slide-nav { bottom: 1rem; padding: 0 1rem; }
    .progress-container { margin: 0 1rem; }

    .prompt-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .copy-btn { width: 100%; }
}

@media (max-width: 480px) {
    .headline { font-size: 2.2rem; }
    .subheadline { font-size: 1rem; }
    .btn { width: 100%; }
    .hero-btns { flex-direction: column; width: 100%; }
}
