/* ==========================================================================
   Vibe Coaching - Raycast-Inspired Clean Design
   ========================================================================== */

:root {
    /* Colors - Clean dark palette */
    --bg-primary: #0c0c0c;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #18181b;
    --bg-card-hover: #1f1f23;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-subtle: rgba(139, 92, 246, 0.1);
    --accent-glow: rgba(139, 92, 246, 0.4);
    
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Sizing */
    --max-w: 1100px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    padding: var(--space-20) 0;
}

@media (min-width: 768px) {
    section { padding: var(--space-24) 0; }
}

/* Typography */
.section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 15px;
    border-radius: var(--radius);
}

.btn-nav {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-size: 13px;
}

.btn-nav:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 18px;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: var(--space-8);
    margin-left: auto;
}

.nav-menu {
    display: flex;
}

.nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.15s;
    white-space: nowrap;
}

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


/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--accent-subtle) 0%, transparent 60%);
    opacity: 0.6;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #c4b5fd 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: var(--space-16);
}

/* Code Window */
.hero-code {
    max-width: 700px;
    margin: 0 auto;
}

.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

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

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.code-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
}

.code-body {
    padding: var(--space-5);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
}

.code-line {
    margin-bottom: var(--space-4);
}

.code-line:last-child { margin-bottom: 0; }

.code-prompt {
    color: var(--accent);
    margin-right: var(--space-2);
}

.code-text {
    color: var(--text-secondary);
}

.code-response .code-text {
    color: var(--text-tertiary);
}

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
}

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

/* Vibe Intro */
.vibe-intro {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    gap: var(--space-12);
}

@media (min-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.intro-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.intro-text.accent {
    color: var(--text-primary);
    font-weight: 500;
}

.intro-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.skill-card {
    padding: var(--space-5);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.skill-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 24px;
    margin-bottom: var(--space-3);
}

.skill-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.skill-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* What You'll Build */
.what-you-build {
    background: var(--bg-primary);
}

.builds-grid {
    display: grid;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .builds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .builds-grid { grid-template-columns: repeat(4, 1fr); }
}

.build-card {
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.build-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.build-icon {
    font-size: 28px;
    margin-bottom: var(--space-4);
}

.build-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.build-card p {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.build-examples {
    padding: var(--space-6);
    background: var(--accent-subtle);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius);
}

.build-examples h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.example-list {
    display: grid;
    gap: var(--space-2);
}

@media (min-width: 640px) {
    .example-list { grid-template-columns: repeat(2, 1fr); }
}

.example-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: var(--space-5);
    position: relative;
}

.example-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Experience */
.experience {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.experience-grid {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exp-main {
        grid-column: span 2;
    }
}

.exp-card {
    padding: var(--space-6);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.exp-main {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .exp-main {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.exp-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.image-placeholder {
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.exp-icon {
    font-size: 28px;
    display: block;
    margin-bottom: var(--space-4);
}

.exp-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.exp-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Coaches */
.coaches {
    background: var(--bg-primary);
}

.coaches-grid {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .coaches-grid { grid-template-columns: repeat(3, 1fr); }
}

.coach-card {
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.coach-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.coach-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #c4b5fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: white;
}

.coach-info h4 {
    font-size: 16px;
    font-weight: 600;
}

.coach-info span {
    font-size: 13px;
    color: var(--text-tertiary);
}

.coach-creds li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.coach-creds li:last-child { border-bottom: none; }

/* Schedule */
.schedule {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.schedule-grid {
    display: grid;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

.day-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.day-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.day-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 600;
    color: var(--accent);
}

.day-meta h4 {
    font-size: 14px;
    font-weight: 600;
}

.day-meta span {
    font-size: 13px;
    color: var(--text-tertiary);
}

.day-items {
    padding: var(--space-4) var(--space-6);
}

.day-items li {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.day-items li:last-child { border-bottom: none; }

.day-items time {
    flex-shrink: 0;
    width: 50px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
}

.day-items span {
    color: var(--text-secondary);
}

.outcomes {
    padding: var(--space-6);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.outcomes h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.outcomes-grid {
    display: grid;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .outcomes-grid { grid-template-columns: repeat(3, 1fr); }
}

.outcome {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Guarantee */
.guarantee {
    padding: var(--space-12) 0;
}

.guarantee-box {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    text-align: center;
}

.guarantee-icon {
    font-size: 40px;
    margin-bottom: var(--space-4);
}

.guarantee-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.guarantee-box p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ */
.faq {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 700px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-5) 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.faq-q:hover { color: var(--accent); }

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}

.faq-icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s;
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

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

.faq-item.active .faq-a {
    max-height: 200px;
    padding-bottom: var(--space-5);
}

.faq-a p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Final CTA */
.final-cta {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center top, var(--accent-subtle) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.cta-box p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.cta-date {
    display: block;
    margin-top: var(--space-4);
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Footer */
.footer {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-size: 14px;
    font-weight: 500;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-12);
    }
    
    .hero-container {
        padding: var(--space-8) var(--space-4);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-code {
        margin: 0 calc(-1 * var(--space-4));
    }
    
    .code-window {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .code-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .code-line {
        white-space: nowrap;
    }
    
    section {
        padding: var(--space-12) 0;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn {
        min-height: 44px;
        padding: 14px 24px;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .intro-visual {
        grid-template-columns: 1fr;
    }
    
    .builds-grid {
        grid-template-columns: 1fr;
    }
    
    .coaches-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
    
    .faq-q {
        min-height: 44px;
        padding: var(--space-4) 0;
    }
    
}
