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

:root {
    /* tseo.pro real brand colors, pulled from the live theme CSS (style.css .btn-red,
       tseopro-web.php default link hover) — not estimated from a screenshot. */
    --bg:            #0f1a2b; /* real hero/footer navy */
    --surface:       #16283f;
    --border:        #24406a;
    --accent:        #1e73be; /* real active/hover menu link blue */
    --accent2:       #cd1f20; /* real .btn-red */
    --accent-light:  #77bae8; /* real border/hover accent blue */
    --green:         #198754; /* real tseogreen */
    --text:          #e6edf7;
    --muted:         #93a8c4;
    --card:          #132540;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(30,115,190,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,115,190,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

main { position: relative; z-index: 1; }

.hero {
    text-align: center;
    padding: 100px 20px 70px;
    max-width: 850px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30,115,190,.14);
    border: 1px solid rgba(30,115,190,.32);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 1.2rem;
    color: var(--accent-light);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.badge .dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #e2e8f0 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent2);
    color: #fff;
    box-shadow: 0 4px 24px rgba(205,31,32,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(205,31,32,.45); }

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); }

.status-bar {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.status-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
}

.status-item .label  { color: var(--muted); }
.status-item .value  { color: var(--text); font-weight: 600; font-family: monospace; }
.status-item .online { color: var(--green); font-weight: 700; }

.divider-v { width: 1px; height: 28px; background: var(--border); }

section {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: border-color .2s, transform .2s;
}

.tool-card:hover {
    border-color: rgba(30,115,190,.4);
    transform: translateY(-2px);
}

.tool-name {
    font-family: monospace;
    font-size: .82rem;
    color: var(--accent-light);
    background: rgba(30,115,190,.1);
    border: 1px solid rgba(30,115,190,.2);
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 10px;
}

.tool-desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
}

.flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.flow-step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 22px;
    text-align: center;
    min-width: 150px;
}

.flow-step .icon { font-size: 1.6rem; margin-bottom: 6px; }
.flow-step .name { font-size: .875rem; font-weight: 600; }
.flow-step .sub  { font-size: .75rem; color: var(--muted); margin-top: 2px; }

.flow-arrow {
    color: var(--accent);
    font-size: 1.4rem;
    padding: 0 10px;
    flex-shrink: 0;
}

.code-block {
    background: #08111f;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre;
}

.code-block .comment { color: #4b6b8f; }
.code-block .key     { color: var(--accent-light); }
.code-block .str     { color: #fbbf24; }

footer {
    border-top: 1px solid var(--border);
    padding: 32px 20px;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .hero { padding: 70px 20px 50px; }
    .status-card { flex-direction: column; align-items: flex-start; }
    .divider-v { display: none; }
    .flow { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }
}
