/* Landing Page - Consistent with main app design */

:root {
    --color-bg: #1a1a1a;
    --color-bg-section: #141414;
    --color-bg-card: rgba(30, 30, 30, 0.85);
    --color-bg-elevated: rgba(255, 255, 255, 0.05);
    --color-text: rgba(255, 255, 255, 0.9);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-faint: rgba(255, 255, 255, 0.3);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent: #a0da00;
    --color-accent-muted: rgba(160, 218, 0, 0.7);
    --color-theorem: rgba(212, 184, 0, 0.1);
    --color-theorem-text: rgb(212, 184, 0);
    --font-serif: CMSerif, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 900px;
    --section-padding: 80px 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Typography */
h1, h2, h3 {
    font-weight: normal;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--color-text);
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

p {
    margin-bottom: 16px;
}

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

a:hover {
    text-decoration: underline;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.header-content .logo-icon,
.footer-brand .logo-icon {
    filter: invert(1) brightness(2);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.3em;
    color: var(--color-text);
}

.beta-tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

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

.header-nav a {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--color-text);
    text-decoration: none;
}

.btn-login {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text) !important;
}

.btn-login:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
}

.btn-login.btn-green {
    background: var(--color-accent);
    color: #000;
    border-top-color: rgba(255, 255, 255, 0.3);
}

.btn-login.btn-green:hover {
    background: #b8f000;
    color: #000 !important;
}

/* Hero */
.hero {
    padding: 180px 24px 120px;
    text-align: center;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('../img/logo-icon.svg') center/contain no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 8px;
    color: var(--color-text);
    letter-spacing: 0.3em;
    font-weight: bold;
}

.motto {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 32px;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 40px;
    color: var(--color-text-muted);
}

.hero-targets {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.hero-targets span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.2), 0 0 24px inset rgba(255, 255, 255, 0.05), 0 0 2px inset rgba(255, 255, 255, 0.1);
}

.hero-targets span:nth-child(4) {
    background: transparent;
    border: none;
    border-top: none;
    padding: 6px 4px;
    color: var(--color-text-faint);
    box-shadow: none;
}

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

/* Graph Section */
.graph-section {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.graph-section-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 40px 24px 20px;
    text-align: center;
    background: linear-gradient(to bottom, var(--color-bg-section) 0%, rgba(20, 20, 20, 0.8) 40%, transparent 100%);
    pointer-events: none;
}

.graph-section-header h2,
.graph-section-header .section-intro {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.landing-graph-container {
    width: 100%;
    height: 500px;
    background: var(--color-bg-section);
}

.section-dark {
    background: var(--color-bg-section);
}

.section-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 720px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature h3 {
    color: var(--color-accent);
    font-weight: bold;
}

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

/* Preview Frames */
.preview-frame {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
}

.preview-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.preview-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.placeholder-text {
    color: var(--color-text-faint);
    font-style: italic;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 88px;
}

.carousel-track {
    position: relative;
    min-height: 280px;
    flex: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    right: 0;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.2);
    padding-bottom: 3px;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.carousel-arrow:active {
    transform: translateY(2px);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* Sample chapters */
.sample-chapters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.sample-label {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.sample-link {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.2), 0 0 24px inset rgba(255, 255, 255, 0.05), 0 0 2px inset rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.sample-link:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.sample-link:active {
    transform: translateY(2px);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2), 0 0 24px inset rgba(255, 255, 255, 0.05), 0 0 2px inset rgba(255, 255, 255, 0.1);
}

/* Proof Sample - uses real document.css styles */
.proof-sample {
    text-align: left;
    width: 100%;
    max-width: 640px;
}

/* Structure Grid */
.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.structure-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
}

.structure-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.structure-item h3 {
    font-weight: bold;
    margin-bottom: 8px;
}

.structure-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Coverage Table */
.coverage-table {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
}

.coverage-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    font-family: var(--font-serif);
    font-size: 0.95rem;
}

.coverage-row span {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.coverage-row:last-child span {
    border-bottom: none;
}

.coverage-header {
    background: var(--color-bg-elevated);
    font-weight: 500;
}

.coverage-header span {
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.coverage-section-header span {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
    padding: 10px 16px;
}

.coverage-partial {
    color: var(--color-accent);
}

.coverage-planned {
    color: var(--color-text-muted);
}

.coverage-na {
    color: var(--color-text-faint);
}

.coverage-note {
    font-size: 0.9rem;
    color: var(--color-text-faint);
    font-style: italic;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
}

.pricing-card h3 {
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--color-text);
}

.price {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.price span {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.pricing-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.pricing-scholarship {
    /* Same style as other cards */
}

.pricing-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-faint);
    margin-bottom: 40px;
}

/* CTA Buttons - match main app style */
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.btn-primary,
.btn-secondary {
    font-family: var(--font-serif);
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--color-accent);
    color: #000;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: #b8f000;
    text-decoration: none;
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.2), 0 0 32px inset rgba(255, 255, 255, 0.05), 0 0 3px inset rgba(255, 255, 255, 0.1);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

/* Footer */
.landing-footer {
    padding: 60px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand .logo-text {
    color: var(--color-text);
}

.footer-brand p {
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    margin-left: -2px;
    color: var(--color-text-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-right a,
.footer-right .footer-contact,
.footer-right .footer-legal,
.footer-legal-links a {
    color: var(--color-text-faint);
    font-family: var(--font-serif);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-right a:hover,
.footer-right .footer-contact:hover,
.footer-legal-links a:hover {
    color: var(--color-text-muted);
}

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

/* Protected email - click to reveal */
.email-protect {
    cursor: pointer;
}

.email-protect:not(.footer-contact) {
    text-decoration: underline;
}

.email-protect:hover {
    color: var(--color-accent);
}

.email-protect.revealed {
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .header-nav a:not(.btn-login) {
        display: none;
    }

    .hero {
        padding: 140px 20px 80px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .coverage-row {
        grid-template-columns: 1fr 1fr;
    }

    .coverage-row span:nth-child(3),
    .coverage-row span:nth-child(4) {
        display: none;
    }

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

    .footer-brand {
        justify-content: center;
    }

    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-targets {
        gap: 8px;
    }

    .hero-targets span {
        padding: 4px 10px;
        font-size: 0.85rem;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
