/* ============================================
   Script2Sequence Landing Page
   A bold, editor-focused design
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #1c1c1f;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.4);
    
    --success: #22c55e;
    --warning: #f59e0b;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.nav.scrolled {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.125rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 8px;
    font-size: 0.875rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px 0 var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-disabled {
    background: #3f3f46 !important;
    color: #71717a !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px var(--container-padding) 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
}

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

.hero-container {
    max-width: var(--container-max);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    margin-top: 60px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

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

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.window-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.window-content {
    padding: 24px;
}

.demo-script {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.script-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

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

.script-line.matched .line-marker {
    color: var(--success);
}

.script-line.current .line-marker {
    color: var(--accent-primary);
}

.script-line.current .line-marker.pulse {
    animation: pulse 1s infinite;
}

.line-text {
    flex: 1;
    color: var(--text-secondary);
}

.script-line.matched .line-text,
.script-line.current .line-text {
    color: var(--text-primary);
}

.line-match {
    color: var(--success);
    font-size: 0.75rem;
}

.line-match.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--accent-primary);
    margin-left: 4px;
    animation: blink 0.8s infinite;
}

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

.demo-timeline {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 16px;
}

.timeline-track {
    display: flex;
    gap: 4px;
    height: 48px;
}

.clip {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
}

.clip-1 {
    flex: 2;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.clip-2 {
    flex: 1.5;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.clip-3 {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    opacity: 0.6;
    animation: build 1.5s infinite;
}

@keyframes build {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ============================================
   Trust Section
   ============================================ */

.trust {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   Problem/Solution Section
   ============================================ */

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

.problem-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.solution-tag {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.problem-content h2,
.solution-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.2;
}

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

.problem-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.problem-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.problem-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.problem-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.solution-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.before-after {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.before, .after {
    text-align: center;
}

.before .label, .after .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.before .time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
}

.after .time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.before-after .arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header .section-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-secondary);
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: var(--section-padding) 0;
}

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

.how-header {
    text-align: center;
    margin-bottom: 80px;
}

.how-header .section-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-secondary);
}

.how-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 16px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.3;
    font-family: var(--font-mono);
}

.step-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-icon {
    font-size: 2rem;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.pricing-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.pricing-header {
    margin-bottom: 48px;
}

.pricing-header .section-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-secondary);
}

.pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0 12px;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-card {
    position: relative;
    padding: 48px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 24px;
    box-shadow: 0 0 60px -12px var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.pricing-amount .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-amount .price {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-amount .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

.pricing-guarantee {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   FAQ Section
   ============================================ */

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

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

.faq-header {
    text-align: center;
    margin-bottom: 64px;
}

.faq-header .section-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-secondary);
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 16px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.faq-item {
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Final CTA
   ============================================ */

.final-cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.cta-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-container p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

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

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

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

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .problem-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .step-icon {
        margin: 0 auto;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

