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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nebula Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Paper Hero Section (Initial View) */
.paper-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1rem;
    transition: all 0.6s ease;
}

.paper-mockup {
    background: #fff;
    max-width: 8.5in;
    min-height: 11in;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    border-radius: 0;
    font-family: 'Old Standard TT', serif;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 4fr;
    font-size: 11pt;
    line-height: 1.4;
}

.paper-sidebar {
    background: #f8f8f8;
    padding: 1in 0.3in;
    border-right: 1px solid #ddd;
}

.arxiv-id {
    font-family: 'Courier New', monospace;
    font-size: 8pt;
    color: #666;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    line-height: 1.2;
}

.paper-content {
    padding: 1in 0.8in 1in 1in;
    overflow-y: auto;
}

.paper-title {
    font-size: 14pt;
    font-weight: bold;
    text-align: center;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

.paper-authors {
    text-align: center;
    font-size: 10pt;
    margin: 0 0 1.5rem 0;
    font-style: italic;
    line-height: 1.3;
}

.affiliations {
    font-size: 9pt;
    font-style: italic;
    color: #333;
    display: block;
    margin-top: 0.5rem;
}

.paper-abstract {
    margin: 1.5rem 0;
}

.abstract-text {
    text-align: justify;
    font-size: 10pt;
    line-height: 1.45;
    margin: 0;
    text-indent: 1em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.paper-section {
    margin-top: 1.5rem;
}

.paper-section h2 {
    font-size: 11pt;
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paper-section p {
    text-align: justify;
    font-size: 10pt;
    line-height: 1.45;
    margin: 0;
    text-indent: 1em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.paper-cta {
    position: absolute;
    bottom: 0.5in;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.reveal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 11pt;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Nebula Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.reveal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.reveal-btn:hover::before {
    left: 100%;
}

.reveal-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Modern Site (Hidden Initially) */
.modern-site {
    transition: all 0.6s ease;
    animation: fadeInUp 0.8s ease-out;
}

.modern-site.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -2px;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
    font-family: 'Old Standard TT', serif;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Old Standard TT', serif;
}

main {
    flex: 1;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: 'Old Standard TT', serif;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #1a1a1a;
    font-weight: 500;
}

.feature-pill i {
    font-size: 1rem;
    color: #666;
}

.hero-cta {
    margin-top: 2rem;
}

.primary-btn {
    padding: 1rem 2rem;
    font-family: 'Nebula Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

/* Workflow Section */
.workflow {
    margin-bottom: 5rem;
    text-align: center;
}

.workflow h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-family: 'Old Standard TT', serif;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.agent-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f0f0f0;
    animation: slideInLeft 0.6s ease-out;
}

.agent-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.agent-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.agent-icon i {
    display: inline-block;
}

.agent-card h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Old Standard TT', serif;
}

.agent-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Platform Features Section */
.platform-features {
    margin-bottom: 5rem;
    text-align: center;
}

.platform-features h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-family: 'Old Standard TT', serif;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.platform-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.platform-card h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Old Standard TT', serif;
}

.platform-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Features Section */
.features {
    margin-bottom: 5rem;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-family: 'Old Standard TT', serif;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.feature-icon i {
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Old Standard TT', serif;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-block;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #0a0a0a;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #2a2a2a;
    border-bottom-color: #2a2a2a;
}

.coming-soon {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Pricing Section */
.pricing-preview {
    margin-bottom: 5rem;
    text-align: center;
}

.pricing-preview h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-family: 'Old Standard TT', serif;
}

.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.pricing-card.highlight {
    border-color: #0a0a0a;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.highlight:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Old Standard TT', serif;
}

.pricing-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features i {
    color: #10b981;
    font-size: 1rem;
}

.signup-section {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.signup-section h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: 'Old Standard TT', serif;
}

.signup-section p {
    color: #666;
    margin-bottom: 2rem;
}

/* Email Form */
.email-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    font-family: 'Nebula Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: #999;
}

.email-input:focus {
    outline: none;
    border-color: #0a0a0a;
    background: #fff;
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    font-family: 'Nebula Sans', sans-serif;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.form-message .success {
    color: #10b981;
}

.form-message .error {
    color: #ef4444;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    border-top: 1px solid #f0f0f0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
        color: #e0e0e0;
    }
    
    .paper-hero {
        background: #1a1a1a;
    }
    
    .paper-mockup {
        background: #f8f8f8;
    }
    
    h1, .hero h2, .feature-card h3, .signup-section h2, .workflow h2, .features h2, .agent-card h3, .platform-features h2, .platform-card h3, .pricing-preview h2, .pricing-card h3 {
        color: #f0f0f0;
    }
    
    .tagline, .hero p, .feature-card p, .signup-section p, .agent-card p, .platform-card p, .pricing-card p, .pricing-features li {
        color: #9ca3af;
    }
    
    .feature-card, .agent-card, .platform-card, .pricing-card {
        background: rgba(30, 30, 45, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .pricing-card.highlight {
        border-color: #60a5fa;
    }
    
    .pricing-icon {
        color: #60a5fa;
    }
    
    .feature-pill {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: #e0e0e0;
    }
    
    .feature-pill i {
        color: #9ca3af;
    }
    
    .platform-icon {
        color: #60a5fa;
    }
    
    .agent-icon {
        color: #93bbfc;
    }
    
    .feature-icon {
        color: #60a5fa;
    }
    
    .signup-section {
        background: rgba(30, 30, 45, 0.8);
    }
    
    .primary-btn {
        background: #f0f0f0;
        color: #0a0a0a;
    }
    
    .primary-btn:hover {
        background: #d0d0d0;
    }
    
    .feature-link {
        color: #60a5fa;
        border-bottom-color: #60a5fa;
    }
    
    .feature-link:hover {
        color: #93bbfc;
        border-bottom-color: #93bbfc;
    }
    
    .coming-soon {
        background: rgba(255, 255, 255, 0.1);
        color: #9ca3af;
    }
    
    .email-input {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
        color: #e0e0e0;
    }
    
    .email-input:focus {
        border-color: #60a5fa;
        background: rgba(0, 0, 0, 0.5);
    }
    
    footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .paper-hero {
        padding: 0.5rem;
    }
    
    .paper-mockup {
        max-width: 100%;
        min-height: 90vh;
        grid-template-columns: 0.8fr 3fr;
    }
    
    .paper-sidebar {
        padding: 0.5in 0.2in;
    }
    
    .arxiv-id {
        font-size: 7pt;
    }
    
    .paper-content {
        padding: 0.5in 0.4in;
    }
    
    .paper-title {
        font-size: 12pt;
    }
    
    .paper-authors {
        font-size: 9pt;
    }
    
    .affiliations {
        font-size: 8pt;
    }
    
    .abstract-text, .paper-section p {
        font-size: 9pt;
    }
    
    .paper-section h2 {
        font-size: 10pt;
    }
    
    .reveal-btn {
        font-size: 10pt;
        padding: 0.6rem 1rem;
    }
    
    .paper-cta {
        bottom: 0.3in;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-input {
        min-width: 100%;
    }
}