/* ============================================
   Booksify - Main Stylesheet
   Warm Amber/Gold Theme on Dark Background
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: rgb(18, 15, 10);
    --bg-secondary: rgb(24, 20, 14);
    --accent-primary: rgb(255, 191, 64);
    --accent-secondary: rgb(255, 214, 128);
    --accent-tertiary: rgb(255, 225, 160);
    --text-primary: rgb(250, 248, 245);
    --text-secondary: rgb(180, 175, 165);
    --text-muted: rgb(130, 125, 115);
    --card-bg: rgba(255, 191, 64, 0.05);
    --card-border: rgba(255, 191, 64, 0.15);
    --card-hover: rgba(255, 191, 64, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-button: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

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

a:hover {
    color: var(--accent-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-button);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(255, 191, 64, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 191, 64, 0.4);
    color: var(--bg-primary);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

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

.apple-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(18, 15, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 191, 64, 0.1);
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(18, 15, 10, 0.95);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--accent-secondary);
}

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

.nav-links a {
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

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

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

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

.hero-title {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    padding-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2a2520, #1a1510);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 191, 64, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 30px;
    overflow: hidden;
}

.app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 191, 64, 0.1) 0%, transparent 100%);
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 24px;
}

.preview-book {
    width: 140px;
    height: 200px;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(255, 191, 64, 0.2);
}

.preview-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 80%;
}

.preview-line {
    height: 8px;
    background: rgba(255, 191, 64, 0.2);
    border-radius: 4px;
}

.preview-line.short {
    width: 60%;
    margin: 0 auto;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: auto;
    padding-bottom: 20px;
}

.control-dot {
    width: 40px;
    height: 40px;
    background: rgba(255, 191, 64, 0.2);
    border-radius: 50%;
}

.control-dot.large {
    width: 56px;
    height: 56px;
    background: var(--accent-primary);
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 191, 64, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-medium);
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-family: var(--font-button);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-secondary);
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: var(--section-padding);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-primary);
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(255, 191, 64, 0.3);
}

.step-title {
    font-family: var(--font-button);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    margin-top: 52px;
    flex-shrink: 0;
}

/* ============================================
   Privacy Section
   ============================================ */
.privacy-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.privacy-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(255, 191, 64, 0.3);
}

.privacy-icon svg {
    width: 48px;
    height: 48px;
    color: var(--bg-primary);
}

.privacy-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.privacy-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.privacy-link {
    font-family: var(--font-button);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.privacy-link:hover {
    color: var(--accent-secondary);
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: var(--section-padding);
}

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

.pricing-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    transition: all var(--transition-medium);
}

.pricing-card:hover {
    border-color: var(--accent-primary);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(255, 191, 64, 0.1) 0%, var(--card-bg) 100%);
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    font-family: var(--font-button);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 20px;
}

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

.pricing-name {
    font-family: var(--font-button);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-primary);
}

.pricing-price .amount {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-price .period {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-savings {
    font-size: 14px;
    color: var(--accent-primary);
    margin-top: 8px;
}

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

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

.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(18, 15, 10)' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

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

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

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 191, 64, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    font-size: 15px;
    color: var(--text-secondary);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

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

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: right var(--transition-medium);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 0;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--accent-primary), transparent);
        margin: 0 auto;
    }

    .privacy-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        border-radius: 32px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
    animation: float 6s ease-in-out infinite;
}

/* Scroll animations */
.feature-card,
.step,
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate,
.step.animate,
.pricing-card.animate {
    opacity: 1;
    transform: translateY(0);
}
