@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette: "Neon-Vedic" Tech-AI */
    --bg-dark: #07080e;
    --bg-darker: #040508;
    --bg-card: rgba(13, 17, 30, 0.7);
    --bg-card-hover: rgba(22, 28, 48, 0.85);
    --primary: #ff7a00; /* Glowing Saffron */
    --primary-rgb: 255, 122, 0;
    --secondary: #6366f1; /* Electric Indigo */
    --secondary-rgb: 99, 102, 241;
    --accent: #10b981; /* Mint Teal */
    --accent-rgb: 16, 185, 129;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.25);
    
    /* Layout Tokens */
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
    --shadow-saffron: 0 0 25px rgba(255, 122, 0, 0.2);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.text-gradient-saffron {
    background: linear-gradient(135deg, #ff9e00 0%, #ff5500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-indigo {
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-dual {
    background: linear-gradient(135deg, #ff8a00 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-padding {
    padding: 100px 0;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

/* Background Grid Overlay */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -10;
    pointer-events: none;
}

.bg-radial {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    z-index: -9;
    pointer-events: none;
}

.bg-radial-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.06) 0%, transparent 70%);
    z-index: -9;
    pointer-events: none;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 8, 14, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(4, 5, 8, 0.85);
    border-bottom-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.logo-text span {
    color: var(--primary);
}

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

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #ff5500 100%);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.25);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 122, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.25);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Interactive Hero Book Shell */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

.terminal-shell {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 11, 16, 0.8);
}

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

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #eab308; }
.terminal-dot.green { background-color: #22c55e; }

.terminal-title {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.terminal-body {
    padding: 24px;
    font-family: monospace;
    font-size: 0.9rem;
    background: rgba(6, 7, 10, 0.95);
    min-height: 280px;
}

.terminal-line {
    margin-bottom: 12px;
    word-break: break-all;
}

.terminal-prompt {
    color: var(--accent);
}

.terminal-input {
    color: var(--text-main);
}

.terminal-output {
    color: var(--primary);
    opacity: 0.9;
}

.terminal-editor {
    color: #cbd5e1;
    border-left: 2px solid var(--secondary);
    padding-left: 12px;
    margin-top: 16px;
    font-family: var(--font-body);
    font-style: italic;
    min-height: 100px;
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--accent);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: var(--accent) }
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.bento-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bento-card.col-2 {
    grid-column: span 2;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.bento-card:hover .card-icon {
    background: var(--secondary);
    color: var(--text-main);
    transform: scale(1.05);
}

.bento-card.saffron-theme .card-icon {
    background: rgba(255, 122, 0, 0.08);
    border-color: rgba(255, 122, 0, 0.2);
    color: var(--primary);
}

.bento-card.saffron-theme:hover .card-icon {
    background: var(--primary);
    color: var(--text-main);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Custom interactive graphic in Bento Card */
.card-visual-element {
    margin-top: auto;
    background: rgba(4, 5, 8, 0.4);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 16px;
    overflow: hidden;
}

/* AI Sandbox Section */
.sandbox-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tool-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tool-pill:hover, .tool-pill.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--secondary);
    color: var(--text-main);
}

/* Sandbox Console Graphic */
.sandbox-console {
    overflow: hidden;
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.console-actions {
    display: flex;
    gap: 8px;
}

.console-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.console-action-btn:hover, .console-action-btn.active {
    background: var(--secondary);
    color: var(--text-main);
    border-color: var(--secondary);
}

.console-body {
    padding: 24px;
    min-height: 250px;
    position: relative;
}

.editor-textarea {
    width: 100%;
    height: 180px;
    background: transparent;
    border: none;
    resize: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    outline: none;
}

.sandbox-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 8, 14, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border-radius: 0 0 24px 24px;
}

.sandbox-loader.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-saffron {
    border-top-color: var(--primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.console-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* AI Book Cover Studio Widget */
.studio-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.studio-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

.option-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-align: left;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.option-btn.active {
    background: rgba(255, 122, 0, 0.08);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.1);
}

.studio-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
}

.cover-container {
    width: 250px;
    height: 380px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    transition: var(--transition-smooth);
}

/* Futuristic Scan Line Animation */
.cover-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 10px var(--primary);
    opacity: 0;
    z-index: 5;
}

.cover-scan-line.scanning {
    animation: scan 2s linear infinite;
    opacity: 1;
}

@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.cover-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.cover-author {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.cover-genre-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Interactive Slider & Royalty Calculator */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.slider-title {
    font-weight: 600;
    font-size: 1rem;
}

.slider-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Custom Styled Input Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    border: none;
}

input[type=range]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
    transition: var(--transition-smooth);
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #ffaa00;
}

/* Royalty Stats Card Display */
.calc-results {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.calc-row-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.calc-lbl-lg {
    font-size: 1rem;
    color: var(--text-muted);
}

.calc-val-lg {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.calc-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.metric-card {
    background: rgba(4, 5, 8, 0.4);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
}

.metric-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

/* Traditional vs WriteYouth Comparison Bar */
.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comp-bar-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comp-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}

.comp-bar-fill {
    height: 100%;
}

.comp-bar-fill.traditional {
    width: 10%;
    background: #ef4444;
}

.comp-bar-fill.writeyouth {
    width: 85%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* UPI Instant Badge */
.upi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Publishing Pathway Section (Interactive Timeline) */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 0 15px var(--primary);
    z-index: 3;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-node {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}

.timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    padding: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Bookstore Showcase (3D Rotating Cards) */
.bookstore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.book-card {
    perspective: 1000px;
    cursor: pointer;
}

.book-inner {
    position: relative;
    width: 100%;
    height: 340px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.book-card:hover .book-inner {
    transform: rotateY(-15px) rotateX(10px) translateY(-10px);
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
}

.book-front-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.book-author {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.book-badge {
    background: rgba(99, 102, 241, 0.85);
    backdrop-filter: blur(4px);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    width: max-content;
}

.book-details {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.book-genre {
    color: var(--primary);
    font-weight: 600;
}

.book-price {
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.faq-item:hover .faq-question {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content {
    padding-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Footer Pitch */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.12) 0%, transparent 70%);
    filter: blur(30px);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 20px 0;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--secondary);
    color: var(--text-main);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* Intersection Observer Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.col-2 {
        grid-column: span 2;
    }
    .bookstore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-desc {
        margin: 0 auto 36px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 999;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .sandbox-split, .studio-layout, .calc-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.col-2 {
        grid-column: span 1;
    }
    .timeline-line {
        left: 20px;
    }
    .timeline-node {
        left: 20px;
    }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
        text-align: left;
        padding-left: 50px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
