/* ============================================================================
   OPENCLAW EBOOK - SUPER MODERN DARK THEME
   Responsive, glassmorphic, high-conversion landing page
   ============================================================================ */

/* CSS Custom Properties (Variables) */
:root {
    /* Colors */
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --secondary-glow: #a855f7;
    --success: #10b981;
    --accent: #00f2fe;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --bg-darker: #020617;
    --bg-primary: #040914;
    --bg-secondary: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.6);
    --bg-glass-hover: rgba(30, 41, 59, 0.8);

    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);

    --gradient-neon: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
    --gradient-text: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-neon: 0 0 20px rgba(56, 189, 248, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 60%);
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

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

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Components */

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-normal);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-neon);
    color: #fff;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    z-index: -1;
    transition: opacity 0.3s ease-in-out;
    border-radius: inherit;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-glow {
    box-shadow: var(--shadow-neon);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    }
}

/* Glass Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-medium);
    transform: translateY(-5px);
}

/* Badges */
.badge-pill {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: 50px;
    font-size: 0.875rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    color: var(--accent);
    backdrop-filter: blur(4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

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

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-medium);
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    width: 140px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-glass);
    overflow: hidden;
}

.lang-dropdown.active {
    display: flex;
}

.lang-dropdown a {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections */

/* Hero */
.hero {
    padding: 10rem 0 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

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

/* 3D Book Mockup CSS */
.ebook-mockup {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.book-cover.modern {
    width: 280px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    box-shadow: -20px 20px 30px rgba(0, 0, 0, 0.6);
    border-radius: 4px 8px 8px 4px;
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #090e17 0%, #1e1b4b 100%);
    border-radius: 2px 8px 8px 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(15px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.5);
}

.book-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(0,242,254,0.3)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.bk-title {
    font-size: 2.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.bk-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    z-index: 1;
}

.book-spine {
    position: absolute;
    width: 30px;
    height: 100%;
    background: #0f172a;
    transform: rotateY(-90deg) translateZ(15px);
    left: 0;
    border-radius: 4px 0 0 4px;
    box-shadow: inset -2px 0 5px rgba(255, 255, 255, 0.1);
}

.floating-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-medium);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-neon);
}

.floating-card .fc-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

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

.fc-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

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

.fc-1 {
    top: 10%;
    right: -20px;
}

.fc-2 {
    bottom: 20%;
    left: -40px;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.bounce-1 {
    animation: bounceSlow 4s ease-in-out infinite;
}

.bounce-2 {
    animation: bounceSlow 5s ease-in-out infinite 1s;
}

/* Social Proof */
.social-proof {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.sp-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.logo-cloud {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-cloud span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition-normal);
    filter: grayscale(100%);
}

.logo-cloud span:hover {
    opacity: 1;
    color: var(--accent);
    filter: grayscale(0%);
}

/* Benefits */
.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.gradient-1 {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.gradient-2 {
    background: var(--gradient-neon);
}

.gradient-3 {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Chapters */
.chapters-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chapter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.chapter-list li {
    display: flex;
    gap: 1.5rem;
}

.ch-icon {
    font-size: 2rem;
    color: var(--accent);
}

.ch-icon i {
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.chapter-list h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.chapter-list p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.glow-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    border: 1px solid var(--border-medium);
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.case-roi {
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.case-quote {
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.case-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--border-medium);
    font-family: Georgia, serif;
}

/* Pricing */
.pricing-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
}

.price-display {
    margin: 2.5rem 0;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.price-current {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
    font-family: var(--font-heading);
    color: #fff;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

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

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.text-success {
    color: var(--success);
}

.guarantee-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: left;
    border: 1px solid var(--border-light);
}

.guarantee-box i {
    font-size: 2rem;
    color: var(--warning);
}

.guarantee-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 500;
}

.faq-question i {
    color: var(--accent);
    transition: transform var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Final CTA */
.cta-banner {
    padding: 4rem 2rem;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.urgency-text {
    font-size: 0.875rem;
    color: var(--warning);
    font-weight: 500;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .chapters-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .chapters-image {
        order: -1;
    }

    .chapter-list {
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .ebook-mockup {
        transform: scale(0.8);
    }
}