* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #0c5adb 0%, #0a3d88 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
}

.btn.primary {
    background-color: white;
    color: #0c5adb;
}

.btn.primary:hover {
    background-color: #f0f0f0;
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* SECTIONS */
.section {
    padding: 60px 20px;
    background-color: white;
}

.section.alt {
    background-color: #f0f4f9;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0c5adb;
    font-weight: 700;
}

.section h3 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 20px;
    color: #0a3d88;
    font-weight: 600;
}

.section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* IMAGES */
.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    display: block;
}

.architecture-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    display: block;
}

/* APPROACH COMPARISON */
.approach-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.approach-box {
    background-color: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0c5adb;
}

.approach-box h4 {
    font-size: 1.1rem;
    color: #0a3d88;
    margin-bottom: 15px;
    font-weight: 600;
}

.approach-box p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* TRANSFORM GRID */
.transform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.transform-card {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 3px solid #0c5adb;
}

.transform-card h4 {
    font-size: 1rem;
    color: #0a3d88;
    margin-bottom: 10px;
    font-weight: 700;
}

.transform-card p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.transform-card .example {
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
}

/* LOOP DIAGRAM */
.loop-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 25px;
    background-color: #f9fafb;
    border-radius: 6px;
}

.loop-step {
    background-color: #0c5adb;
    color: white;
    padding: 12px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.loop-arrow {
    color: #0c5adb;
    font-size: 1.3rem;
    font-weight: bold;
}

/* INSIGHT BOX */
.insight-box {
    background-color: white;
    border-left: 4px solid #0c5adb;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.insight-box p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.insight-box p:last-child {
    margin-bottom: 0;
}

.insight-box p strong {
    color: #0a3d88;
}

/* METRIC BOX */
.metric-box {
    background-color: white;
    border-left: 4px solid #0c5adb;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.metric-box p {
    font-size: 1rem;
    margin-bottom: 12px;
}

.metric-box p:last-child {
    margin-bottom: 0;
}

.metric-box p strong {
    color: #0a3d88;
}

/* CODE BLOCKS */
pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    border-left: 4px solid #0c5adb;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
}

pre code {
    color: inherit;
}

/* GRID LAYOUT */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.card {
    background-color: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0c5adb;
}

.card h3 {
    font-size: 1.1rem;
    color: #0a3d88;
    margin-bottom: 15px;
    font-weight: 600;
    margin-top: 0;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* CLEAN LIST */
.clean-list {
    list-style: none;
    margin-left: 0;
}

.clean-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}

.clean-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0c5adb;
    font-weight: bold;
}

/* DETAILS */
details {
    margin: 20px 0;
}

details summary {
    cursor: pointer;
    user-select: none;
    padding: 10px 0;
}

details summary:hover {
    color: #0a3d88;
}

/* FOOTER */
.footer {
    background-color: #0c5adb;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer a {
    color: #a8d4ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .approach-compare,
    .grid {
        grid-template-columns: 1fr;
    }

    .transform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section h2 {
        font-size: 1.7rem;
    }

    .section h3 {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .transform-grid {
        grid-template-columns: 1fr;
    }

    .loop-diagram {
        flex-direction: column;
        gap: 10px;
    }

    .loop-arrow {
        transform: rotate(90deg);
    }

    .section {
        padding: 40px 15px;
    }

    pre {
        font-size: 0.8rem;
        padding: 15px;
    }
}
