/* ==========================================================================
   pAiCoder — Premium Modern Design (Tesla / Apple / Rivian inspired)
   White / Orange / Black palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600&display=swap');

:root {
    --orange: #E85D04;
    --orange-dark: #D84A02;
    --black: #0A0A0A;
    --gray: #555555;
    --light-gray: #F7F7F7;
    --border: #E8E8E8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    color: var(--black);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo img {
    height: 34px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 42px;
    align-items: center;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hero */
.hero {
    padding: 160px 0 140px;
    text-align: center;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 82px;
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -4.5px;
    margin-bottom: 28px;
}

.hero .tagline {
    font-size: 23px;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 56px;
    line-height: 1.35;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.badge {
    background: var(--light-gray);
    color: var(--black);
    padding: 9px 22px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.badge.orange {
    background: #FFF1E6;
    color: var(--orange);
}

/* Sections */
section {
    padding: 110px 0;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 46px;
    font-weight: 600;
    letter-spacing: -1.8px;
    margin-bottom: 24px;
}

/* Intro */
.intro p {
    font-size: 20px;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    color: #444;
    line-height: 1.55;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 60px;
}

.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.08);
    border-color: #ddd;
}

.feature h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature p {
    color: var(--gray);
    font-size: 16.5px;
    line-height: 1.7;
}

/* Code Blocks */
pre {
    background: #0F0F0F;
    color: #E5E5E5;
    padding: 36px;
    border-radius: 18px;
    overflow-x: auto;
    font-size: 15.5px;
    line-height: 1.65;
    margin: 36px 0;
    box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.2);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.workflow-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px;
}

.workflow-card h3 {
    font-size: 21px;
    margin-bottom: 16px;
}

.workflow {
    background: var(--light-gray);
    padding: 28px;
    border-radius: 14px;
    margin-top: 24px;
    font-family: ui-monospace, monospace;
    font-size: 15px;
    color: var(--black);
    line-height: 1.7;
}

/* Quick Start */
.quickstart-list {
    font-size: 18.5px;
    line-height: 2.3;
    max-width: 640px;
    margin-top: 36px;
    padding-left: 64px;
    list-style-position: outside;
}

/* Hint / License */
.hint, .license-text {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

.license-text a {
    color: var(--orange);
    text-decoration: none;
}

.license-text a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 72px 0;
    color: var(--gray);
    font-size: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.links a {
    color: var(--black);
    margin-left: 36px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Mobile */
@media (max-width: 768px) {
    .nav {
        height: 68px;
    }
    
    .nav-links {
        gap: 26px;
    }
    
    .hero {
        padding: 110px 0 90px;
    }
    
    .hero h1 {
        font-size: 52px;
        letter-spacing: -2.5px;
    }
    
    .hero .tagline {
        font-size: 19px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    pre {
        padding: 26px;
        font-size: 14.5px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .links a {
        margin-left: 0;
        margin-right: 28px;
    }
}