/* ============================================
   CAMINO AI — MARKETING COMPONENTS
   Shared layout primitives for marketing pages
   (currently home.html + research.html). Anything
   used by exactly one page stays in that template's
   <style> block; promote here on second use.
   ============================================ */

/* ----------------------------------------
   Feature grid — the 3xN cards on the home
   page "Capabilities" section and the research
   page "How It Works" section.
   ---------------------------------------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: var(--black);
    border: 4px solid var(--black);
}

.feature-card {
    background: var(--white);
    padding: var(--space-lg);
}

.feature-card.highlight {
    background: var(--yellow);
    /* On home the highlight card spans two columns to emphasize
       the lead feature. On research we have 4 cards of equal
       weight so the highlight modifier isn't applied — this only
       kicks in when explicitly used. */
    grid-column: span 2;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-md);
}

.feature-icon.circle { background: var(--red); border-radius: 50%; }
.feature-icon.square { background: var(--blue); }
.feature-icon.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid var(--yellow);
}
/* `.line` is the fourth geometric variant — a thick black bar.
   Used on the research page's "Synthesize" step where we needed
   a non-triangle/circle/square shape. */
.feature-icon.line {
    height: 8px;
    background: var(--black);
    margin-top: 21px;
    margin-bottom: 21px;
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.feature-card.highlight h3 {
    font-size: var(--text-2xl);
}

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


/* ----------------------------------------
   Code section — split-screen layout with a
   dark left panel showing code and a colored
   right panel for visual balance.
   ---------------------------------------- */

.code-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.code-content {
    background: var(--black);
    color: var(--white);
    padding: var(--space-xl) var(--space-lg);
}

.code-content .section-title { color: var(--yellow); }

.code-section .code-block {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--yellow);
    padding: var(--space-md);
    margin-top: var(--space-md);
    overflow-x: auto;
    max-width: 100%;
}

.code-section .code-block pre {
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: var(--text-sm);
    color: #d4d4d4;
}

.code-visual {
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ----------------------------------------
   CTA block — full-width red banner with
   yellow accent circle. Lives at the bottom
   of marketing pages.
   ---------------------------------------- */

.cta {
    background: var(--red);
    color: var(--white);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--yellow);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta .section-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta p {
    font-size: var(--text-xl);
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.cta .cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}


/* ----------------------------------------
   Responsive — these breakpoints mirror what
   home.html used before extraction so existing
   behavior is preserved.
   ---------------------------------------- */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr; }
    .feature-card.highlight { grid-column: span 1; }
    .code-section { grid-template-columns: 1fr; }
    .code-visual { min-height: 150px; }
}

@media (max-width: 768px) {
    .code-content { padding: var(--space-lg) var(--space-md); }
}
