/* ============================================
   ORCHESTRATION ENGINE PAGE
   Dark theme, teal accents, state-based orchestration
   ============================================ */

/* ===== Page base ===== */
.oe-page {
    background: #020617;
}

/* ===== Container ===== */
.oe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Accent text ===== */
.oe-page .accent {
    color: #14b8a6;
}

/* ===== Label pill ===== */
.oe-label {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.05) 100%);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 100px;
    color: #14b8a6;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
}

/* ============================================
   HERO SECTION - Two Column Layout
   ============================================ */
.oe-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.oe-hero__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.oe-hero__glow {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.oe-hero::after {
    content: '';
    position: absolute;
    top: 40%;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.oe-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.oe-hero__content {
    max-width: 560px;
}

.oe-hero__title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #f8fafc;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.oe-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: 500;
}

.oe-hero__intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 32px;
    max-width: 520px;
}

.oe-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   HERO VISUAL - State Machine Diagram
   ============================================ */
.oe-hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.oe-hero__visual::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 5%;
    width: 6px;
    height: 6px;
    background: #14b8a6;
    border-radius: 50%;
    opacity: 0.5;
    box-shadow: 
        20px 50px 0 rgba(20, 184, 166, 0.3),
        -30px 100px 0 rgba(20, 184, 166, 0.2),
        50px 150px 0 rgba(20, 184, 166, 0.25);
}

.oe-state-diagram {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.oe-action-diagram {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.oe-form-diagram {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* SVG Animations */
@keyframes oePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes oeFlow {
    from { stroke-dashoffset: 10; }
    to { stroke-dashoffset: 0; }
}

@keyframes oeGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(20, 184, 166, 0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.6)); }
}

.oe-pulse {
    animation: oePulse 2.5s ease-in-out infinite;
    transform-origin: center;
}

.oe-flow-line {
    animation: oeFlow 1.5s linear infinite;
}

.oe-glow-node {
    animation: oeGlow 2.5s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .oe-pulse,
    .oe-flow-line,
    .oe-glow-node {
        animation: none;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.oe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #020617;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.oe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.35);
}

.oe-btn--outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
}

.oe-btn--outline:hover {
    border-color: #14b8a6;
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
    box-shadow: none;
}

.oe-btn--large {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

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

.oe-section--alt {
    background: #0f172a;
}

/* Subtle top separator */
.oe-section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.2), transparent);
}

.oe-section__header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.oe-section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 16px;
    line-height: 1.25;
}

.oe-section__subtitle {
    font-size: 1.0625rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

.oe-section__body {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.oe-section__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.oe-section__two-col--reverse {
    direction: rtl;
}

.oe-section__two-col--reverse > * {
    direction: ltr;
}

.oe-section__text {
    max-width: 520px;
}

.oe-section__text .oe-section__title {
    text-align: left;
    margin-bottom: 20px;
}

.oe-section__text .oe-section__subtitle {
    text-align: left;
    margin: 0 0 16px 0;
}

.oe-section__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   MINI CARDS (bullet point style)
   ============================================ */
.oe-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.oe-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.25s ease;
}

.oe-mini-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.05);
}

.oe-mini-card__dot {
    width: 8px;
    height: 8px;
    background: #14b8a6;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

/* ============================================
   DEFINITION INTRO
   ============================================ */
.oe-definition-intro {
    text-align: center;
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.oe-definition-intro strong {
    color: #f8fafc;
    font-weight: 600;
}

/* ============================================
   CARDS - State-based Section
   ============================================ */
.oe-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.oe-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.oe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0), transparent);
    transition: background 0.35s ease;
}

.oe-card:hover {
    border-color: rgba(20, 184, 166, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(20, 184, 166, 0.08);
}

.oe-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.6), transparent);
}

.oe-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
    transition: all 0.3s ease;
}

.oe-card:hover .oe-card__icon {
    background: rgba(20, 184, 166, 0.2);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.oe-card__icon svg {
    width: 28px;
    height: 28px;
}

.oe-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
}

.oe-card__desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   CAPTION
   ============================================ */
.oe-caption {
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    margin-top: 40px;
    font-style: italic;
}

/* ============================================
   CHECKLIST - Built for Scale Section
   ============================================ */
.oe-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    max-width: 650px;
    margin: 0 auto;
}

.oe-checklist__item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
}

.oe-checklist__icon {
    width: 28px;
    height: 28px;
    background: rgba(20, 184, 166, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
    flex-shrink: 0;
}

.oe-checklist__icon svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.oe-final {
    padding: 120px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
    border-top: 1px solid rgba(20, 184, 166, 0.15);
}

.oe-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #14b8a6, transparent);
    opacity: 0.6;
}

.oe-final__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.oe-final__content {
    position: relative;
    z-index: 1;
}

.oe-final__title {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 14px;
    line-height: 1.2;
}

.oe-final__subtitle {
    font-size: 1.0625rem;
    color: #94a3b8;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.oe-final__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .oe-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .oe-hero__content {
        max-width: 100%;
    }
    
    .oe-hero__intro {
        max-width: 100%;
    }
    
    .oe-hero__actions {
        justify-content: center;
    }
    
    .oe-hero__visual {
        order: -1;
    }
    
    .oe-hero__visual::before {
        display: none;
    }
    
    .oe-state-diagram {
        max-width: 400px;
    }
    
    .oe-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .oe-section__two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .oe-section__two-col--reverse {
        direction: ltr;
    }
    
    .oe-section__text {
        max-width: 100%;
        text-align: center;
    }
    
    .oe-section__text .oe-section__title,
    .oe-section__text .oe-section__subtitle {
        text-align: center;
    }
    
    .oe-mini-cards {
        align-items: center;
    }
    
    .oe-mini-card {
        max-width: 360px;
        width: 100%;
    }
    
    .oe-section__visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .oe-hero {
        padding: 100px 0 60px;
    }
    
    .oe-state-diagram {
        max-width: 340px;
    }
    
    .oe-action-diagram {
        max-width: 260px;
    }
    
    .oe-form-diagram {
        max-width: 280px;
    }
    
    .oe-hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .oe-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .oe-section {
        padding: 80px 0;
    }
    
    .oe-checklist {
        grid-template-columns: 1fr;
    }
    
    .oe-final {
        padding: 90px 0;
    }
    
    .oe-final__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .oe-container {
        padding: 0 20px;
    }
    
    .oe-hero__title {
        font-size: 1.875rem;
    }
    
    .oe-hero__subtitle {
        font-size: 1rem;
    }
    
    .oe-hero__intro {
        font-size: 0.9375rem;
    }
    
    .oe-section__title {
        font-size: 1.5rem;
    }
    
    .oe-state-diagram {
        max-width: 300px;
    }
    
    .oe-action-diagram {
        max-width: 240px;
    }
    
    .oe-form-diagram {
        max-width: 260px;
    }
    
    .oe-definition-intro {
        font-size: 1rem;
    }
}
