/* ===== index.css — Landing Page (Soft Tech) ===== */

/* Body background for homepage */
body { background: #f6f8f9; }

.idx-page {
    --accent:    #0d9488;
    --fg:        #0f1a1f;
    --muted:     #5a6a72;
    --border:    #dfe5e8;
    --card:      #ffffff;
    --card-alt:  #eef3f4;
    --chip-bg:   #e8eef0;
    --shadow:    0 1px 2px rgba(15,26,31,.04), 0 8px 24px rgba(15,26,31,.06);
    padding-bottom: 56px;
}

/* ── HERO ─────────────────────────────────────────── */
.idx-hero {
    text-align: center;
    padding: 52px 24px 36px;
    max-width: 720px;
    margin: 0 auto;
}

.idx-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .02em;
    margin-bottom: 20px;
}
.idx-chip::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.idx-h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -.02em;
    color: var(--fg);
    margin: 0;
}
.idx-h1-accent { color: var(--accent); }

/* ── SEARCH BAR ───────────────────────────────────── */
.idx-search-wrap {
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 0 24px;
}
.idx-search-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.idx-search-bar {
    display: flex;
    align-items: stretch;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    box-shadow: var(--shadow);
}
.idx-search-field {
    flex: 1;
    padding: 10px 18px;
    min-width: 0;
}
.idx-search-field + .idx-search-field {
    border-left: 1px solid var(--border);
}
.idx-search-field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.idx-search-field input {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 600;
    color: var(--fg);
    padding: 0;
}
.idx-search-field input::placeholder {
    color: #a0adb3;
    font-weight: 400;
}
.idx-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    background: var(--fg);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    align-self: center;
    margin: 2px;
    transition: opacity .18s;
}
.idx-search-btn:hover { opacity: .85; }

.idx-search-result { margin-top: 14px; }

/* ── TWO PATHS ────────────────────────────────────── */
.idx-paths {
    max-width: 1080px;
    margin: 0 auto 24px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.idx-path {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .2s, box-shadow .2s;
}
.idx-path:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(15,26,31,.1);
}
.idx-path--mechanic { background: var(--card-alt); }

.idx-path-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.idx-path-label::before {
    content: '';
    display: inline-block;
    width: 18px; height: 1px;
    background: var(--muted);
}

.idx-path h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--fg);
    margin: 0;
}

.idx-path-features {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.idx-path-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--muted);
}

.idx-path-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .18s, transform .18s;
    align-self: flex-start;
}
.idx-path-btn--primary {
    background: var(--fg);
    color: #fff;
    border: 1px solid var(--fg);
}
.idx-path-btn--outline {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}
.idx-path-btn:hover { opacity: .85; transform: translateY(-1px); color: inherit; }
.idx-path-btn--primary:hover { color: #fff; }

/* ── SOS BANNER ───────────────────────────────────── */
.idx-sos-wrap {
    max-width: 1080px;
    margin: 0 auto 32px;
    padding: 0 24px;
}
.idx-sos {
    background: #f0fbfa;
    border: 1.5px solid #a7e0d9;
    border-radius: 16px;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.idx-sos-icon {
    position: relative;
    width: 48px; height: 48px;
    flex-shrink: 0;
}
.idx-sos-icon-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--accent);
    opacity: .18;
}
.idx-sos-icon-core {
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;
    font-weight: 700;
}
.idx-sos-text { flex: 1; }
.idx-sos-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--fg);
    line-height: 1.2;
}
.idx-sos-title span { color: var(--accent); }
.idx-sos-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.idx-sos-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .18s;
}
.idx-sos-btn:hover { opacity: .85; color: #fff; }

/* ── SECTION CARD ─────────────────────────────────── */
.idx-section {
    max-width: 1080px;
    margin: 0 auto 28px;
    padding: 0 24px;
}
.idx-section-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.idx-section-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
    text-align: center;
}

/* ── FORUM ────────────────────────────────────────── */
.idx-forum-list { display: flex; flex-direction: column; gap: 6px; }
.idx-forum-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .15s, border-color .15s;
}
.idx-forum-row:hover { background: var(--chip-bg); border-color: #cad2d6; }
.idx-forum-row__icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--chip-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.idx-forum-row__body { flex: 1; min-width: 0; }
.idx-forum-row__title {
    font-size: .92rem;
    font-weight: 600;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.idx-forum-row__meta {
    display: flex;
    gap: .8rem;
    margin-top: 2px;
    font-size: .76rem;
    color: var(--muted);
}
.idx-forum-row__meta i { margin-right: .2rem; }
.idx-forum-row__replies {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    flex-shrink: 0;
}
.idx-forum-row__replies strong { font-size: 1rem; color: var(--accent); line-height: 1; }
.idx-forum-row__replies span { font-size: .68rem; color: var(--muted); }
.idx-forum-footer { margin-top: 14px; text-align: center; }
.idx-forum-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.idx-forum-all:hover { background: var(--accent); color: #fff; }

/* ── STATS ────────────────────────────────────────── */
.idx-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.idx-stat {
    text-align: center;
    padding: 22px 16px;
    background: var(--card-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.idx-stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1;
}
.idx-stat-num--accent { color: var(--accent); }
.idx-stat-lbl { font-size: .82rem; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
    .idx-hero { padding: 36px 20px 28px; }

    .idx-search-bar {
        flex-direction: column;
        padding: 6px;
    }
    .idx-search-field + .idx-search-field {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .idx-search-btn {
        width: 100%;
        border-radius: 8px;
        margin-top: 4px;
        padding: 13px;
    }

    .idx-paths { grid-template-columns: 1fr; gap: 14px; }

    .idx-sos { flex-wrap: wrap; gap: 12px; }
    .idx-sos-btn { width: 100%; justify-content: center; }

    .idx-stats-grid { grid-template-columns: 1fr; }
    .idx-section-card { padding: 22px 18px; }
}
@media (max-width: 480px) {
    .idx-forum-row__meta { flex-direction: column; gap: 2px; }
}
