/* * Theme: LEO CDP - Clean Layout Fix
* Author: Refined by AI
*/

/* --- Variables --- */
:root {
  --primary-color: #0d6efd; /* Bootstrap Primary Blue */
  --primary-dark: #0a58ca;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Global Resets --- */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

section {
    padding: 60px 0;
}

/* --- Navigation --- */
#header {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 15px 0;
  transition: all 0.3s ease-in-out;
}

.navbar-brand img {
    max-height: 45px; /* Fix logo size */
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- Hero Section --- */
#hero {
  /* CRITICAL FIX: Add padding to top so fixed header doesn't cover text */
  padding-top: 140px; 
  padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(248,249,250,0) 0%, rgba(248,249,250,1) 100%);
}

.hero-badge {
    display: inline-block;
    background-color: #e7f1ff;
    color: #0d6efd;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

#hero .btn-lg {
    padding: 12px 30px;
    font-weight: 600;
}

.hero-img img {
    width: 100%;
    max-width: 600px; /* Constrain image size */
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* --- Feature Cards (Philosophy) --- */
.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #eee;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: transparent;
}

.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e7f1ff;
    color: var(--primary-color);
    font-size: 28px;
}

/* --- Experience-to-Action Steps --- */
#features {
    display: grid;
    gap: 12px;
}

.feature-head,
.feature-step {
    grid-template-columns: minmax(180px, 0.8fr) minmax(250px, 1.2fr) minmax(260px, 1fr);
    gap: 28px;
}

.feature-head {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0 24px 4px;
    text-transform: uppercase;
}

.feature-step {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    padding: 22px 24px;
}

.feature-concept {
    align-items: center;
    display: flex;
    gap: 10px;
}

.step-number {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.feature-concept i {
    color: var(--primary-color);
    font-size: 1.35rem;
}

.feature-concept h3,
.persona-connector h3 {
    font-size: 1.05rem;
    margin: 0;
}

.feature-step p,
.persona-connector p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.feature-step pre,
.persona-connector pre {
    background: #f1f6ff;
    border: 1px solid #d6e5ff;
    border-radius: 6px;
    color: #123d80;
    font-size: 0.75rem;
    line-height: 1.45;
    margin: 0;
    overflow-x: auto;
    padding: 10px 12px;
    white-space: pre-wrap;
}

.persona-connector {
    align-items: center;
    background: #e7f1ff;
    border: 1px solid #9ec5fe;
    border-radius: 8px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(180px, 0.8fr) minmax(250px, 1.2fr) minmax(260px, 1fr);
    margin-top: 16px;
    padding: 24px;
}

.persona-connector > div {
    align-items: center;
    color: var(--primary-dark);
    display: flex;
    gap: 10px;
}

.persona-connector i {
    font-size: 1.5rem;
}

/* --- Decision Loop --- */
#decision-loop-steps {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.decision-step {
    background: #fff;
    border: 1px solid #dce5f1;
    border-radius: 8px;
    display: grid;
    gap: 5px;
    min-height: 110px;
    padding: 16px;
}

.decision-step-number {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.decision-step strong {
    font-size: 0.98rem;
    line-height: 1.25;
}

.decision-step small {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.decision-step--outcome {
    background: #e7f1ff;
    border-color: #9ec5fe;
    grid-column: 1 / -1;
}

.decision-loop-return {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 0.82rem;
    gap: 8px;
    line-height: 1.45;
    margin-top: 14px;
}

.decision-loop-return i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* --- Capability Pills (Core Features) --- */
.capability-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    height: 100%;
}

.capability-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.capability-card i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.capability-card span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

/* --- Section Headers --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* --- Responsive fixes --- */
@media (max-width: 991px) {
    #hero {
        padding-top: 120px; /* Less padding on mobile */
        text-align: center;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-img {
        margin-top: 40px;
    }

    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-top: 1px solid #eee;
    }
    
    .nav-link {
        padding: 10px 0;
    }

    .feature-step,
    .persona-connector {
        gap: 14px;
        grid-template-columns: 1fr;
    }

    #decision-loop-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decision-step--outcome {
        grid-column: auto;
    }
}