body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(120deg,#f0f4ff,#ffffff);
}

.blog-container {
    max-width: 900px;
    margin: auto;
    padding: 40px;
}

.hero {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg,#0073e6,#00c6ff);
    color: white;
    border-radius: 12px;
}

/* TYPING */
.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid white;
    width: 0;
    animation: typing 3s steps(40, end) forwards, blink 0.7s infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.hero h1 {
    font-size: 32px;
    line-height: 1.3;
    margin: 0;
}

h2 {
    margin-top: 40px;
    color: #0a2540;
}

/* ========================= */
/* SCROLL ANIMATION BASE */
/* ========================= */

.flow-box,
.step,
.arrow,
.mistake-card {
    opacity: 0;
}

/* ========================= */
/* FLOW BOX */
/* ========================= */

.flow-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 20px 0;
    background: white;
    border-left: 5px solid #0073e6;
}

.flow-box.visible {
    animation: fadeIn 1s ease forwards;
    opacity: 1 !important;
}

.flow-box:nth-child(1).visible { animation-delay: 0.2s; }
.flow-box:nth-child(2).visible { animation-delay: 0.4s; }
.flow-box:nth-child(3).visible { animation-delay: 0.6s; }
.flow-box:nth-child(4).visible { animation-delay: 0.8s; }
.flow-box:nth-child(5).visible { animation-delay: 1s; }

.flow-box img {
    width: 40px;
    height: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================= */
/* STEPS */
/* ========================= */

.flow-sequence {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.step {
    background: #0073e6;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    transform: translateY(20px);
}

.arrow {
    font-size: 20px;
}

.step.visible,
.arrow.visible {
    animation: stepAppear 0.6s ease forwards;
}

.step:nth-child(1).visible { animation-delay: 0.3s; }
.arrow:nth-child(2).visible { animation-delay: 0.6s; }
.step:nth-child(3).visible { animation-delay: 0.9s; }
.arrow:nth-child(4).visible { animation-delay: 1.2s; }
.step:nth-child(5).visible { animation-delay: 1.5s; }
.arrow:nth-child(6).visible { animation-delay: 1.8s; }
.step:nth-child(7).visible { animation-delay: 2.1s; }
.arrow:nth-child(8).visible { animation-delay: 2.4s; }
.step:nth-child(9).visible { animation-delay: 2.7s; }

@keyframes stepAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/* TABLE */
/* ========================= */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.table th {
    background: #0073e6;
    color: white;
}

/* ========================= */
/* CHART */
/* ========================= */

.market-section {
    margin-top: 60px;
}

.chart {
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bar-container {
    margin-bottom: 25px;
}

.label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}

/* BAR (JS CONTROLLED) */
.bar {
    height: 30px;
    width: 0;
    border-radius: 20px;
    opacity: 0;
}

.android { background: #3ddc84; }
.ios { background: #000; }
.cross { background: #0073e6; }

.bar.visible {
    opacity: 1;
}

/* COLORS ONLY */
.android { background: #3ddc84; }
.ios { background: #000; }
.cross { background: #0073e6; }

/* percent */
.percent {
    font-weight: bold;
}

/* ========================= */
/* MISTAKE CARDS */
/* ========================= */

.mistake-card {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: rotate(-5deg) scale(0.9);
}

.mistake-card.visible {
    animation: scrapbook 0.6s ease forwards;
}

.mistake-card:nth-child(2).visible { animation-delay: 0.2s; }
.mistake-card:nth-child(3).visible { animation-delay: 0.4s; }
.mistake-card:nth-child(4).visible { animation-delay: 0.6s; }
.mistake-card:nth-child(5).visible { animation-delay: 0.8s; }
.mistake-card:nth-child(6).visible { animation-delay: 1s; }

@keyframes scrapbook {
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* ========================= */
/* CENTER TYPING */
/* ========================= */

.center-typing {
    text-align: center;
    margin: 80px 0;
}

.typing-center {
    display: inline-block;
    overflow: hidden;
    white-space: normal;
    max-width: 100%;
    border-right: 3px solid #0073e6;
    animation: typing2 3s steps(40, end) forwards, blink 0.7s infinite;
}

@keyframes typing2 {
    to { width: 100%; }
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact-section {
    margin-top: 80px;
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f5f9ff, #ffffff);
    border-radius: 12px;
}

.contact-section h2 {
    font-size: 28px;
    color: #0a2540;
}

.contact-subtext {
    margin: 10px 0 30px;
    color: #666;
}

.contact-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: auto;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-form input {
    flex: 1;
    border: none;
    padding: 15px;
    border-radius: 50px;
    outline: none;
    font-size: 14px;
}

.contact-form input::placeholder {
    color: rgba(0,0,0,0.4);
}

.contact-form button {
    background: #0073e6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #005bb5;
}

/* ========================= */
/* COMMENTS */
/* ========================= */

.comment-section {
    margin-top: 60px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.comment-section input,
.comment-section textarea {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comment-section button {
    background: #0073e6;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment-section button:hover {
    background: #005bb5;
}