/* OpenClaw Guide Landing Page Styles */
/* Tech theme with cyan accents */

:root {
    --primary: #00D4FF;
    --primary-dark: #00A8CC;
    --primary-light: #5CE1FF;
    --gradient: linear-gradient(135deg, #00D4FF, #0099CC, #00D4FF);
    --bg-dark: #0D1117;
    --bg-card: #161B22;
    --bg-elevated: #21262D;
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --text-muted: #6E7681;
    --border: #30363D;
    --success: #3FB950;
    --warning: #D29922;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 20px 0;
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    background: radial-gradient(ellipse at top, #1a2a3a 0%, var(--bg-dark) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 600;
}

.badge-icon {
    font-size: 16px;
}

.badge-text {
    color: var(--primary);
    letter-spacing: 0.5px;
}

.badge-value {
    color: var(--warning);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.hero-form input::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg-dark);
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* Book Cover */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover {
    display: flex;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.book-front {
    width: 280px;
    height: 380px;
    background: linear-gradient(145deg, #0D1117 0%, #161B22 100%);
    border-radius: 4px 12px 12px 4px;
    position: relative;
    box-shadow: 
        20px 20px 60px rgba(0, 0, 0, 0.5),
        inset -1px 0 0 rgba(255, 255, 255, 0.1);
    transform: rotateY(-15deg);
    transition: transform 0.3s;
}

.book-cover:hover .book-front {
    transform: rotateY(-5deg);
}

.book-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 0 12px 12px 0;
}

.book-content {
    position: relative;
    z-index: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.book-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.book-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.book-divider {
    width: 60px;
    height: 2px;
    background: var(--gradient);
    margin-bottom: 24px;
}

.book-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: auto;
}

.book-author {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.book-spine {
    width: 20px;
    height: 380px;
    background: linear-gradient(90deg, #0a0e13 0%, #161B22 100%);
    position: relative;
    transform: rotateY(90deg) translateX(-10px);
    transform-origin: left center;
    border-radius: 2px 0 0 2px;
}

/* Problem Section */
.problem {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

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

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.2s, border-color 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Solution Section */
.solution {
    padding: 100px 0;
    background: var(--bg-card);
}

.solution-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

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

.solution-list {
    list-style: none;
    text-align: left;
}

.solution-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}

.solution-list li:last-child {
    border-bottom: none;
}

.check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* Inside Section */
.inside {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.chapter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.chapter:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chapter-number {
    display: inline-block;
    background: var(--gradient);
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.chapter h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.chapter p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Audience Section */
.audience {
    padding: 100px 0;
    background: var(--bg-card);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.audience-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.audience-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.audience-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.audience-item strong {
    color: var(--text-primary);
}

/* Proof Section */
.proof {
    padding: 100px 0;
    background: var(--bg-dark);
    text-align: center;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 32px;
}

.proof-stat {
    display: flex;
    flex-direction: column;
}

.proof-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proof-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: radial-gradient(ellipse at bottom, #1a2a3a 0%, var(--bg-dark) 70%);
    text-align: center;
}

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

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-row input::placeholder {
    color: var(--text-muted);
}

.cta-form .btn {
    width: 100%;
}

.cta-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.footer-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-form {
        max-width: 500px;
        margin: 0 auto 16px;
    }
    
    .form-note {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 40px;
    }
    
    .chapters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .hero-form {
        flex-direction: column;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .proof-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .book-front {
        width: 240px;
        height: 320px;
    }
    
    .book-spine {
        height: 320px;
    }
    
    .book-title {
        font-size: 26px;
    }
}

/* Success Animation */
.success-message {
    display: none;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    text-align: center;
}

.success-message.show {
    display: block;
}

.success-message h3 {
    color: var(--primary);
    margin-bottom: 8px;
}