/* AI Development Framework — Landing Page Styles */

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

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-accent: #f59e0b;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;
    --color-card: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --max-width: 1100px;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: #f1f5f9;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #f1f5f9;
}

.nav-github {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.nav-github:hover {
    color: #f1f5f9;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #f1f5f9;
    padding: 8rem 0 5rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.accent {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Sections === */
.section {
    padding: 5rem 0;
}

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

.section-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f1f5f9;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* === Problem Grid === */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.problem-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.problem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.problem-card p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

/* === Solution Banner === */
.solution-banner {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 2.5rem;
}

.solution-banner h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mechanism {
    text-align: center;
}

.mechanism-num {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 0.75rem;
}

.mechanism h4 {
    margin-bottom: 0.4rem;
}

.mechanism p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* === How It Works Diagram === */
.workflow-visual {
    max-width: 900px;
    margin: 0 auto;
}

.workflow-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.workflow-box {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.workflow-box h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workflow-box p,
.workflow-box li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.workflow-box ul {
    list-style: none;
    padding: 0;
}

.workflow-box ul li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.workflow-box ul li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.wf-input {
    background: #fefce8;
    border: 1px solid #fde68a;
}

.wf-knowledge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.wf-code {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.wf-wiki {
    background: #faf5ff;
    border: 1px solid #d8b4fe;
}

.workflow-connector {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    padding: 0.25rem 0;
}

.workflow-single {
    display: flex;
    justify-content: center;
}

/* === Principles === */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.principle-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.principle-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.principle-list {
    list-style: none;
    padding: 0;
}

.principle-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.principle-list li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.principle-list li strong {
    color: var(--color-text);
}

/* === Agents Table === */
.agents-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-secondary);
}

.data-table td {
    font-size: 0.92rem;
}

.data-table .highlight {
    font-weight: 700;
    color: var(--color-primary);
}

/* === Phase Cards === */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.phase-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.phase-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.phase-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-primary);
    background: #eff6ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.phase-card h4 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.phase-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* === Structure === */
.structure-block {
    background: #1e293b;
    border-radius: var(--radius);
    padding: 2rem;
    overflow-x: auto;
    max-width: 700px;
    margin: 0 auto;
}

.structure-block pre {
    margin: 0;
}

.structure-block code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.tree-folder {
    color: #60a5fa;
}

.tree-comment {
    color: #64748b;
}

/* === Quick Start === */
.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.quickstart-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.quickstart-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quickstart-card p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.code-snippet {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

.code-snippet code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre;
}

/* === Tools Grid === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tool-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.tool-config {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-primary);
    background: #eff6ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.tool-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
}

/* === Commands === */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.command-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.command-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.command-example {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--color-primary);
    background: #eff6ff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: block;
}

/* === CTA === */
.cta-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-description {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Footer === */
.footer {
    background: #0f172a;
    color: #64748b;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.88rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
}

.footer a:hover {
    color: #f1f5f9;
}

.footer-note {
    font-size: 0.78rem;
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Validation Section === */
.validation-content {
    max-width: 800px;
    margin: 0 auto;
}

.validation-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.validation-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.validation-card p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.validation-card ul {
    list-style: none;
    padding: 0;
}

.validation-card ul li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.validation-card ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* === Customization Section === */
.customization-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.customization-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.customization-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.customization-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 1rem 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .workflow-row {
        flex-direction: column;
        align-items: center;
    }

    .workflow-box {
        max-width: 100%;
    }

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

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
