/* ============================================
   EXPONENTIAL AGENTS — Study 4
   Aesthetic: Refined Dark Tech (non-AI-slop)
   Typography: Clash Display + Satoshi
   Colors: Deep ink + Warm amber
   ============================================ */

:root {
    /* Deep, warm palette */
    --bg-deep: #0A0C10;
    --bg-card: #12151C;
    --bg-elevated: #1A1E28;
    
    --text-primary: #F4F4F5;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --accent: #F59E0B;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --accent-soft: #FBBF24;
    
    --border: #1F2937;
    --border-subtle: rgba(255, 255, 255, 0.06);
    
    /* Typography */
    --font-display: 'Clash Display', system-ui, sans-serif;
    --font-body: 'Satoshi', system-ui, sans-serif;
    
    /* Spacing */
    --space-unit: 8px;
    --container: min(1140px, 90vw);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain overlay */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 500; }

p {
    color: var(--text-secondary);
}

/* Section tag */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: calc(var(--space-unit) * 2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1.5);
}

.logo-symbol {
    height: 28px;
    width: 28px;
    color: var(--accent);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-tag {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 4);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.nav-cta {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: calc(var(--space-unit) * 8);
    padding: calc(var(--space-unit) * 10) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
    min-height: 85vh;
    align-items: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1.5);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: calc(var(--space-unit) * 3);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.eyebrow-line {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    margin-bottom: calc(var(--space-unit) * 3);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

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

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: calc(var(--space-unit) * 4);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.hero-actions {
    display: flex;
    gap: calc(var(--space-unit) * 2);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

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

/* Hero image */
.hero-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: calc(var(--space-unit) * -4);
    z-index: 3;
    border: 1px solid var(--border);
}

.hero-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.9;
}

.hero-img-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-deep) 100%);
}

/* Hero Card */
.hero-right {
    position: relative;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1);
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 2.5);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.card-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

.card-status {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-body {
    padding: calc(var(--space-unit) * 2.5);
}

.task-row {
    display: flex;
    justify-content: space-between;
    padding: calc(var(--space-unit) * 1) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

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

.task-label {
    color: var(--text-muted);
}

.task-value {
    color: var(--text-primary);
    font-weight: 500;
}

.card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.metric {
    padding: calc(var(--space-unit) * 2);
    text-align: center;
    border-right: 1px solid var(--border);
}

.metric:last-child {
    border-right: none;
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-decoration {
    position: absolute;
    top: -40px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
}

/* Why Custom */
.why-custom {
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
}

.why-custom-header {
    max-width: 640px;
    margin-bottom: calc(var(--space-unit) * 6);
}

.why-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--space-unit) * 4);
}

.why-item {
    padding: calc(var(--space-unit) * 3);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.why-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 8px;
    margin-bottom: calc(var(--space-unit) * 2);
}

.why-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.why-item h4 {
    margin-bottom: calc(var(--space-unit) * 1);
    color: var(--text-primary);
}

.why-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Proof strip */
.proof-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--space-unit) * 6);
    padding: calc(var(--space-unit) * 5) calc(var(--space-unit) * 4);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-item {
    text-align: center;
}

.proof-stat {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Problem section */
.problem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--space-unit) * 8);
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
}

.problem-left h2 {
    max-width: 400px;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 3);
}

.problem-item {
    display: flex;
    gap: calc(var(--space-unit) * 2);
    align-items: flex-start;
}

.problem-num {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    width: 24px;
}

.problem-item p {
    font-size: 1rem;
}

/* Solution section */
.solution {
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
}

.solution-header {
    max-width: 560px;
    margin-bottom: calc(var(--space-unit) * 6);
}

.solution-header p {
    margin-top: calc(var(--space-unit) * 1.5);
    font-size: 1.1rem;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--space-unit) * 2);
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: calc(var(--space-unit) * 4);
    transition: all 0.25s ease;
}

.agent-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.agent-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 8px;
    margin-bottom: calc(var(--space-unit) * 2);
}

.agent-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.agent-card h3 {
    margin-bottom: calc(var(--space-unit) * 1);
}

.agent-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Examples section */
.examples {
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
}

.examples-header {
    max-width: 560px;
    margin-bottom: calc(var(--space-unit) * 6);
}

.examples-header p {
    margin-top: calc(var(--space-unit) * 1.5);
    font-size: 1.1rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--space-unit) * 2);
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: calc(var(--space-unit) * 4);
    transition: all 0.25s ease;
}

.example-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.example-card.featured {
    background: var(--accent-glow);
    border-color: var(--accent);
}

.example-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: calc(var(--space-unit) * 1.5);
}

.example-card h3 {
    margin-bottom: calc(var(--space-unit) * 1);
}

.example-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: calc(var(--space-unit) * 2);
}

.example-meta {
    display: flex;
    gap: calc(var(--space-unit) * 1);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.example-cta {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    margin-top: calc(var(--space-unit) * 1);
}

.example-cta:hover {
    text-decoration: underline;
}

/* Accelerators section */
.accelerators {
    padding: calc(var(--space-unit) * 10) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
}

.accelerators-header {
    max-width: 560px;
    margin-bottom: calc(var(--space-unit) * 5);
}

.accelerators-header p {
    margin-top: calc(var(--space-unit) * 1.5);
    font-size: 1rem;
}

.accelerator-list {
    display: flex;
    flex-direction: column;
}

.accelerator-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: calc(var(--space-unit) * 3);
    align-items: center;
    padding: calc(var(--space-unit) * 2.5) 0;
    border-bottom: 1px solid var(--border);
}

.accelerator-item:last-child {
    border-bottom: none;
}

.accelerator-name {
    font-weight: 600;
    color: var(--text-primary);
}

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

.accelerator-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 1.5);
    border-radius: 4px;
}

/* Process section */
.process {
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
}

.process-header {
    margin-bottom: calc(var(--space-unit) * 6);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--space-unit) * 3);
}

.step {
    display: flex;
    gap: calc(var(--space-unit) * 2);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: calc(var(--space-unit) * 1);
}

.step-content p {
    font-size: 0.9rem;
}

/* Principles */
.principles {
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
}

.principles-header {
    margin-bottom: calc(var(--space-unit) * 6);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--space-unit) * 4);
}

.principle h4 {
    margin-bottom: calc(var(--space-unit) * 1);
    color: var(--text-primary);
}

.principle p {
    font-size: 0.95rem;
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--space-unit) * 8);
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
}

.contact-left h2 {
    margin-bottom: calc(var(--space-unit) * 2);
}

.contact-left > p {
    margin-bottom: calc(var(--space-unit) * 4);
}

.contact-direct {
    font-size: 0.9rem;
}

.contact-direct span {
    color: var(--text-muted);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2.5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 0.75);
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    padding: calc(var(--space-unit) * 1.5);
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--space-unit) * 4);
    max-width: var(--container);
    margin: calc(var(--space-unit) * 8) auto calc(var(--space-unit) * 4);
    border-top: 1px solid var(--border);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1.5);
}

.footer-symbol {
    height: 24px;
    width: 24px;
    color: var(--accent);
}

.footer-right {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: calc(var(--space-unit) * 6);
    }
    
    .hero-right {
        order: -1;
        max-width: 400px;
    }
    
    .why-custom-grid {
        grid-template-columns: 1fr;
    }
    
    .problem {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .accelerator-item {
        grid-template-columns: 1fr;
        gap: calc(var(--space-unit) * 0.5);
    }
    
    .accelerator-time {
        justify-self: start;
        margin-top: calc(var(--space-unit) * 1);
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .contact {
        grid-template-columns: 1fr;
    }
    
    .proof-strip {
        flex-direction: column;
        gap: calc(var(--space-unit) * 3);
    }
    
    .proof-divider {
        width: 60px;
        height: 1px;
    }
    
    .nav-status {
        display: none;
    }
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-deep);
}
