/* Notebook/Academic Chic Landing Page */

:root {
    /* Warm Academic Palette */
    --cream: #FDF8F3;
    --paper: #F5F0E8;
    --paper-lines: #E8E0D5;
    --ink: #2D2A26;
    --pencil: #6B6560;
    --pencil-light: #9A948D;
    --highlight-yellow: #FFE066;
    --highlight-blue: #7DD3FC;
    --highlight-pink: #FCA5C4;
    --accent-coral: #FF6B6B;
    --accent-teal: #2DD4BF;
    --accent-purple: #A78BFA;

    /* Shadows */
    --shadow-paper: 0 2px 8px rgba(45, 42, 38, 0.08), 0 1px 2px rgba(45, 42, 38, 0.04);
    --shadow-paper-hover: 0 8px 24px rgba(45, 42, 38, 0.12), 0 4px 8px rgba(45, 42, 38, 0.08);
    --shadow-lift: 0 20px 40px rgba(45, 42, 38, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Subtle dot grid pattern background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, var(--paper-lines) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* Selection */
::selection {
    background: var(--highlight-yellow);
    color: var(--ink);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--ink);
}

.handwritten {
    font-family: 'Caveat', cursive;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: rgba(253, 248, 243, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--paper-lines);
    z-index: 100;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-paper);
}

.nav-link-cta {
    color: var(--cream);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    background: var(--ink);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-paper);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-paper-hover);
    background: var(--pencil);
}

/* Hero */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 32px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--paper-lines);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    color: var(--pencil);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 12px;
    background: var(--highlight-yellow);
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--pencil);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hero-footnote {
    font-size: 14px;
    color: var(--pencil-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-footnote svg {
    width: 16px;
    height: 16px;
    color: var(--accent-teal);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-container {
    position: relative;
}

/* Decorative elements around phone */
.phone-deco {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-size: 18px;
    color: var(--pencil);
    white-space: nowrap;
}

.phone-deco-1 {
    top: -20px;
    right: -80px;
    transform: rotate(8deg);
}

.phone-deco-2 {
    bottom: 60px;
    left: -100px;
    transform: rotate(-5deg);
}

.phone-deco svg {
    width: 40px;
    height: 40px;
    stroke: var(--pencil);
    fill: none;
    stroke-width: 1.5;
}

.phone-mockup {
    width: 280px;
    background: var(--ink);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lift);
    position: relative;
}

/* Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--ink);
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    aspect-ratio: 9/19;
    background: var(--paper);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Chat header */
.chat-header {
    background: var(--cream);
    padding: 40px 16px 12px;
    border-bottom: 1px solid var(--paper-lines);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--highlight-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.screen-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-row {
    display: flex;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.4s ease-out forwards;
}

.message-row:nth-child(1) { animation-delay: 0.5s; }
.message-row:nth-child(2) { animation-delay: 1.2s; }
.message-row:nth-child(3) { animation-delay: 1.9s; }

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-row.left {
    justify-content: flex-start;
}

.message-row.right {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
}

.message-bubble.bot {
    background: var(--cream);
    color: var(--ink);
    border-bottom-left-radius: 4px;
}

.message-bubble.user {
    background: var(--ink);
    color: var(--cream);
    border-bottom-right-radius: 4px;
}

.message-bubble.solution {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #14B8A6 100%);
    color: white;
    border-bottom-left-radius: 4px;
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.photo-preview svg {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.math-text {
    font-family: 'Source Sans 3', monospace;
    font-size: 12px;
}

.solution-text {
    margin: 8px 0 0;
    font-family: 'Source Sans 3', monospace;
    font-size: 12px;
    line-height: 1.5;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out 2.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--pencil-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Buttons */
.button-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--cream);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-paper);
    border: none;
    cursor: pointer;
}

.button-primary svg {
    width: 20px;
    height: 20px;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-paper-hover);
    background: var(--pencil);
}

.button-primary.large {
    font-size: 18px;
    padding: 18px 36px;
}

/* Stats */
.stats {
    background: var(--paper);
    border-top: 1px solid var(--paper-lines);
    border-bottom: 1px solid var(--paper-lines);
    padding: 48px 32px;
    margin: 40px 0;
}

.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--paper-lines);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--ink);
}

.stat-label {
    font-size: 15px;
    color: var(--pencil);
    font-weight: 500;
}

/* Features */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 32px;
}

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

.features-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.features-subtitle {
    font-size: 18px;
    color: var(--pencil);
    max-width: 500px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--cream);
    border: 1px solid var(--paper-lines);
    border-radius: 20px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--highlight-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-paper-hover);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:nth-child(2)::before {
    background: var(--highlight-blue);
}

.feature-card:nth-child(3)::before {
    background: var(--highlight-pink);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--paper);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.5;
}

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.feature-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--pencil);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pencil);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
}

/* Pricing */
.pricing {
    background: var(--paper);
    padding: 80px 32px;
    position: relative;
}

/* Notebook lines effect */
.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        var(--paper-lines) 31px,
        var(--paper-lines) 32px
    );
    opacity: 0.3;
    pointer-events: none;
}

.pricing-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 12px;
}

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

.pricing-card {
    background: var(--cream);
    border: 2px solid var(--paper-lines);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-paper);
    position: relative;
}

/* Paper clip decoration */
.pricing-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 40px;
    width: 24px;
    height: 48px;
    border: 3px solid var(--pencil-light);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    transform: rotate(-5deg);
}

.pricing-icon {
    width: 72px;
    height: 72px;
    background: var(--highlight-yellow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transform: rotate(-3deg);
}

.pricing-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.5;
}

.pricing-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--pencil);
    margin-bottom: 28px;
}

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

.pricing-benefits li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
}

.pricing-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232DD4BF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* CTA */
.cta {
    padding: 100px 32px;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 44px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-title .highlight {
    position: relative;
    display: inline-block;
}

.cta-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 10px;
    background: var(--highlight-blue);
    z-index: -1;
    transform: rotate(1deg);
    border-radius: 2px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--pencil);
    margin-bottom: 32px;
}

/* Handwritten note decoration */
.cta-note {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: var(--pencil);
    margin-top: 24px;
    transform: rotate(-2deg);
}

.cta-note svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Footer */
.footer {
    padding: 40px 32px;
    background: var(--paper);
    border-top: 1px solid var(--paper-lines);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--ink);
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.footer-links a {
    color: var(--pencil);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-copy {
    font-size: 13px;
    color: var(--pencil-light);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 24px 40px;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

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

    .hero-title {
        font-size: 42px;
    }

    .phone-deco {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-value {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .nav-content {
        padding: 0 16px;
        height: 56px;
    }

    .nav-logo {
        font-size: 18px;
        gap: 8px;
    }

    .nav-logo-img {
        width: 32px;
        height: 32px;
    }

    .nav-link-cta {
        font-size: 13px;
        padding: 8px 14px;
    }

    .hero {
        padding: 40px 16px 32px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .phone-mockup {
        width: 240px;
    }

    .stats {
        padding: 32px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-value {
        font-size: 40px;
    }

    .features {
        padding: 48px 16px;
    }

    .features-title,
    .section-title {
        font-size: 28px;
    }

    .features-subtitle,
    .section-subtitle {
        font-size: 15px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .pricing {
        padding: 48px 16px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-card::before {
        left: 24px;
    }

    .pricing-title {
        font-size: 24px;
    }

    .cta {
        padding: 60px 16px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-subtitle {
        font-size: 15px;
    }

    .button-primary {
        font-size: 15px;
        padding: 12px 24px;
    }

    .button-primary.large {
        font-size: 16px;
        padding: 14px 28px;
    }

    .footer {
        padding: 24px 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        gap: 20px;
    }
}
