@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@400;600;700;900&family=Patrick+Hand&display=swap');

:root {
    /* Color Palette - Deeper and more cohesive */
    --bg-color: #020617;
    --bg-surface: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.5);
    --accent-pink: #d946ef;
    --accent-pink-glow: rgba(217, 70, 239, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-hand: 'Patrick Hand', cursive;
    
    /* Spacing & Radii */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max-width: 1280px;
    --radius-lg: 32px;
    --radius-md: 16px;
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Background & Grid */
.bg-dots {
    position: fixed;
    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;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.handwritten {
    font-family: var(--font-hand);
    color: var(--accent-pink);
    font-size: 1.4rem;
    display: inline-block;
    opacity: 0.9;
}

.label-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 700; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    width: 30px;
    height: 30px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    text-decoration: none;
    color: white;
}

.logo span { color: var(--accent-blue); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-base);
}

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

@media (max-width: 850px) {
    .mobile-menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
        z-index: 1000;
    }

    .nav-links.active { right: 0; }
    
    .nav-links a { font-size: 1.5rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 10px 20px -5px var(--accent-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px var(--accent-blue-glow);
}

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

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

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

/* Sections */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('public/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
    z-index: -1;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Marquee */
.marquee-container {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee-spin 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-pink);
    opacity: 0.6;
}

@keyframes marquee-spin {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Filter Section */
.filter-card {
    position: relative;
    overflow: hidden;
}

.filter-card.negative { border-left: 4px solid #ef4444; }
.filter-card.positive { border-left: 4px solid #22c55e; }

.filter-list {
    list-style: none;
    margin-top: 2rem;
}

.filter-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
}

.filter-list li::before {
    font-weight: bold;
}

.negative .filter-list li::before { content: '×'; color: #ef4444; font-size: 1.5rem; line-height: 1; }
.positive .filter-list li::before { content: '✓'; color: #22c55e; }

/* Method Pillars */
.pillar-card {
    text-align: left;
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-blue);
    opacity: 0.15;
    margin-bottom: -1rem;
}

.pillar-card h3 {
    margin-bottom: 1rem;
    color: white;
}

/* Mentor Section */
.mentor-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.mentor-image-container {
    position: relative;
}

.mentor-image-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--accent-blue-glow);
    border-radius: var(--radius-md);
    z-index: -1;
}

.mentor-image {
    width: 100%;
    border-radius: var(--radius-md);
    filter: grayscale(20%);
    transition: var(--transition-base);
}

.mentor-image:hover { filter: grayscale(0%); }

.mentor-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.stat-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-pink);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* Book Section Styles */
.section-book {
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.03));
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.book-image-container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.book-3d-wrap {
    width: 300px;
    height: 420px;
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.book-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(10deg);
    transition: var(--transition-base);
}

.book-3d:hover {
    transform: rotateY(-10deg) rotateX(5deg);
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2;
    transform: translateZ(20px);
    box-shadow: 5px 5px 20px rgba(0,0,0,0.5);
    border-radius: 2px 5px 5px 2px;
    object-fit: cover;
}

.book-spine {
    position: absolute;
    width: 40px;
    height: 100%;
    background: #1a1a1a;
    left: 0;
    transform: rotateY(-90deg) translateZ(20px);
    z-index: 1;
    border-radius: 2px 0 0 2px;
    background: linear-gradient(to right, #0f172a, #1e293b);
}

.book-side {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    right: 0;
    transform: rotateY(0deg) translateZ(-20px);
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.2);
    border-radius: 0 5px 5px 0;
}

.book-3d-wrap::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: rgba(0,0,0,0.4);
    filter: blur(15px);
    border-radius: 50%;
    transform: translateZ(-50px);
}

.book-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.book-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.book-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.book-feature-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 12px;
}

.book-feature-item h4 {
    color: white;
    margin-bottom: 0.25rem;
    text-transform: none;
    letter-spacing: normal;
}

.book-feature-item p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

@media (max-width: 1024px) {
    .book-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .book-mockup { max-width: 350px; }
    .book-feature-item { text-align: left; }
    .book-actions { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
    .book-actions .handwritten { margin-left: 0 !important; }
}

/* IA Support Section */
.support-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ia-terminal {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 6px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
}

.msg-user { color: var(--text-dim); margin-bottom: 1.5rem; }
.msg-ai { color: var(--accent-blue); }

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

.faq-card {
    padding: 2rem;
    cursor: pointer;
}

.faq-card h4 {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-blue);
}

/* Footer */
.footer {
    padding: 5rem 0 3rem;
    background: #010413;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

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

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-col ul li a:hover { color: white; }

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

/* Responsive */
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mentor-wrap { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .mentor-stats { justify-content: center; }
    .support-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem 1.5rem; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        align-items: center;
        gap: 1rem;
    }
    .hero-actions .btn { 
        width: 100%; 
        max-width: 320px;
        margin: 0 auto;
    }
    h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
    .glass-card { padding: 1.5rem; }
    
    .footer-top { flex-direction: column; gap: 3rem; text-align: center; }
    .footer-brand { margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Animations - Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}
