/* ========================================
   HOW IT WORKS PAGE - Page-specific styles
   ======================================== */

/* ========================================
   HERO SECTION (How It Works variant)
   ======================================== */
.hero {
    min-height: 60vh;
    padding: 140px 0 80px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background: var(--warm-white);
}

.section-gray {
    background: linear-gradient(180deg, #f1f5f9 0%, var(--warm-white) 100%);
}

.section-dark {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue-dark) 100%);
    color: white;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-dark .section-header h2 {
    color: white;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   EVOLUTION SECTION
   ======================================== */
.evolution-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .evolution-timeline {
        flex-direction: row;
        align-items: flex-start;
    }
}

.evolution-step {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--card-shadow);
    position: relative;
}

.evolution-step::after {
    display: none;
}

@media (min-width: 768px) {
    .evolution-step::after {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        right: -20px;
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-blue), transparent);
    }

    .evolution-step:last-child::after {
        display: none;
    }
}

.evolution-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.evolution-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.evolution-step h3 {
    font-size: 20px;
    color: var(--deep-blue);
    margin-bottom: 8px;
}

.evolution-step p {
    color: var(--soft-gray);
    font-size: 15px;
}

.evolution-step.highlight {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue-dark) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.evolution-step.highlight h3 {
    color: white;
}

.evolution-step.highlight p {
    color: rgba(255, 255, 255, 0.7);
}

.evolution-step.highlight .evolution-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   ARCHITECTURE SECTION
   ======================================== */
.architecture-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .architecture-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.arch-layer {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-layer:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.arch-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.arch-layer h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 4px;
}

.arch-subtitle {
    font-size: 14px;
    color: var(--accent-blue-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.arch-layer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.arch-example {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.arch-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.arch-icon svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   SKEPTICISM SECTION
   ======================================== */
.skepticism-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .skepticism-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skeptic-card {
    padding: 32px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skeptic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.skeptic-question {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.skeptic-question::before {
    content: 'Q';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--accent-blue);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.skeptic-answer {
    color: var(--soft-gray);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 40px;
}

/* ========================================
   DAY IN LIFE SECTION
   ======================================== */
.day-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.day-event {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.day-event::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, transparent 100%);
}

.day-event:last-child::before {
    display: none;
}

.day-time {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.day-time svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.day-content {
    flex: 1;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--card-shadow);
}

.day-trigger {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

.day-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--soft-gray);
}

.day-step:last-child {
    margin-bottom: 0;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.step-label.brain {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.step-label.playbook {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.step-label.hands {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

/* ========================================
   AGENTS SECTION
   ======================================== */
.agents-network {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.network-diagram {
    position: relative;
    padding: 15px 0 60px 0;
}

.central-agent {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 2;
}

.central-agent .agent-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.central-agent .agent-role {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specialist-agents {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.specialist-agent {
    padding: 16px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.specialist-agent:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.specialist-agent .agent-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 4px;
}

.specialist-agent .agent-role {
    font-size: 13px;
    color: var(--soft-gray);
}

.network-description {
    max-width: 600px;
    margin: 40px auto 0;
    color: var(--soft-gray);
    font-size: 16px;
}

.chat-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 500px;
    margin: 32px auto 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue-dark) 100%);
    border-radius: 16px;
    text-align: left;
}

.chat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-blue-light);
}

.chat-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

.chat-text strong {
    color: white;
    font-weight: 600;
}

/* ========================================
   DATA CONTROL SECTION
   ======================================== */
.control-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .control-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .control-features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1350px;
    }
}

.control-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.control-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.control-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue-light);
    fill: none;
    stroke-width: 2;
}

.control-card h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
}

.control-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: 100px 0;
    background: var(--warm-white);
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 64px 48px;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue-dark) 100%);
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: rotateGlow 30s linear infinite;
}

.cta-card h2 {
    position: relative;
    font-size: clamp(28px, 4vw, 36px);
    color: white;
    margin-bottom: 16px;
}

.cta-card p {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-buttons {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ========================================
   FOOTER OVERRIDE (How It Works page variant)
   ======================================== */
.footer {
    padding: 60px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    justify-content: center;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    font-size: 15px;
    margin-bottom: 32px;
}

.footer-social {
    justify-content: center;
    margin-bottom: 32px;
}

.social-link {
    border-radius: 50%;
}
