/* =============================================
   persona.quest - Flat Design with 3D Accents
   Colors: #f0e6ff, #6b7280, #fde8e8, #4f46e5, #e6f4ea, #2d3748, #fff3e0, #fafaf8
   Fonts: EB Garamond (headings), Inter (body), Fira Code (accents)
   ============================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    background-color: #fafaf8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Circuit Pattern Background */
.circuit-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.5em;
}

p {
    color: #6b7280;
    line-height: 1.7;
}

.code-accent {
    font-family: 'Fira Code', monospace;
    color: #4f46e5;
}

.dot {
    color: #4f46e5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #4f46e5;
    color: #fafaf8;
}

.btn-primary:hover {
    background-color: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-secondary:hover {
    background-color: #f0e6ff;
    transform: translateY(-2px);
}

/* Diagonal Sections */
.diagonal-section {
    position: relative;
    padding: 120px 5%;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fafaf8;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    padding-bottom: 160px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
}

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

.hero-tagline {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #4f46e5;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 480px;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 440px;
}

.floating-persona {
    animation: floatAnimation 6s ease-in-out infinite;
}

.persona-3d-render {
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.15));
}

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

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.scroll-indicator span {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 2px;
    height: 24px;
    background: #4f46e5;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* About Section */
.about-section {
    background-color: #f0e6ff;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    padding-top: 160px;
    padding-bottom: 160px;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.about-text strong {
    color: #4f46e5;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: #fafaf8;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform-style: preserve-3d;
}

.stat-number {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;
    min-width: 120px;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Features Section */
.features-section {
    background-color: #fafaf8;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    padding-top: 160px;
    padding-bottom: 160px;
}

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

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 36px 28px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform-style: preserve-3d;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works Section */
.how-section {
    background-color: #fde8e8;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    padding-top: 160px;
    padding-bottom: 160px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    background: #fafaf8;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    max-width: 280px;
    flex: 1;
    min-width: 240px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform-style: preserve-3d;
}

.step-number {
    font-family: 'EB Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #4f46e5;
    opacity: 0.3;
    margin-bottom: 12px;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.step-connector {
    width: 80px;
    flex-shrink: 0;
}

.step-connector svg {
    width: 100%;
    height: auto;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #e6f4ea;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    padding-top: 160px;
    padding-bottom: 160px;
}

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

.testimonial-card {
    background: #fafaf8;
    border-radius: 16px;
    padding: 36px 28px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform-style: preserve-3d;
}

.testimonial-quote {
    font-family: 'EB Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 28px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #4f46e5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.95rem;
    color: #2d3748;
}

.author-info span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* CTA Section */
.cta-section {
    background-color: #fff3e0;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    padding-top: 160px;
    padding-bottom: 100px;
}

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

.cta-box {
    background: #fafaf8;
    border-radius: 20px;
    padding: 48px;
    max-width: 560px;
    margin: 0 auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform-style: preserve-3d;
}

.cta-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cta-email {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(79, 70, 229, 0.15);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #2d3748;
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.cta-email:focus {
    border-color: #4f46e5;
}

.btn-cta {
    white-space: nowrap;
}

.cta-note {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Footer */
.site-footer {
    background-color: #2d3748;
    color: #fafaf8;
    padding: 80px 5% 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #fafaf8;
}

.footer-brand p {
    color: #6b7280;
    max-width: 280px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fafaf8;
    margin-bottom: 6px;
}

.footer-col a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #f0e6ff;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 250, 248, 0.1);
    padding-top: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Tilt Card Hover Effect */
.tilt-card {
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg);
        width: 60px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .diagonal-section {
        padding: 80px 5%;
    }
    
    .hero-section {
        padding-bottom: 120px;
    }
    
    .about-section,
    .features-section,
    .how-section,
    .testimonials-section,
    .cta-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 140px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .stat-number {
        min-width: auto;
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .cta-input-group {
        flex-direction: column;
    }
    
    .cta-box {
        padding: 32px 24px;
    }
    
    .step {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
