﻿/* ============================================================
   TOP page — new content sections (theme-aware)
   Works with body.theme-dark / body.theme-light switching (main.js)
   Does NOT touch hero / THE MODEL / glitch styles.
   ============================================================ */

/* ---- shared ---- */
.top-lead {
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 760px;
    margin: -2rem 0 3rem;
    opacity: 0.85;
}
.top-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.5rem; }
.top-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 1rem 2.2rem;
    border: 1px solid currentColor;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: none;
    transition: all 0.3s ease;
    position: relative;
}
.top-btn:hover { letter-spacing: 0.14em; }
.top-btn.solid { background: currentColor; }
.top-btn.solid span { color: #000 !important; text-shadow: none !important; mix-blend-mode: normal; }
body.theme-light .top-btn.solid span { color: #fff !important; }
.top-btn.cyan { border-color: #00e5ff; color: #00e5ff !important; text-shadow: 0 0 12px rgba(0,229,255,0.4); }
.top-btn.cyan:hover { background: rgba(0,229,255,0.12); }
.top-btn .ext::after { content: '↗'; margin-left: 4px; }
.top-kicker {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    opacity: 0.7;
    display: block;
    margin-bottom: 1rem;
}

/* ---- Reactor Experience (dark) ---- */
.top-reactor-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}
.top-steps { list-style: none; display: grid; gap: 1.2rem; margin-top: 2rem; counter-reset: tstep; }
.top-steps li {
    counter-increment: tstep;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(128,128,128,0.35);
}
.top-steps li::before {
    content: counter(tstep, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 1.4rem;
    opacity: 0.6;
    line-height: 1;
    padding-top: 2px;
}
.top-steps h4 { font-family: var(--font-main); text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.top-steps p { font-size: 0.95rem; opacity: 0.85; }
.top-reactor-visual .img-slot {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(0,229,255,0.35);
    box-shadow: 0 0 60px rgba(0,229,255,0.12), 0 30px 80px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #0a1a2e 0%, #05070c 100%);
}
.top-reactor-visual .img-slot.is-missing::after { color: rgba(0,229,255,0.6); border-color: rgba(0,229,255,0.3); }
.top-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.15em;
    color: #00e5ff !important;
    text-shadow: 0 0 20px rgba(0,229,255,0.5);
    margin-bottom: 1.5rem;
    display: block;
}
.top-chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; }
.top-chip {
    font-size: 0.75rem; letter-spacing: 0.1em; padding: 6px 12px;
    border: 1px solid rgba(0,229,255,0.4); color: #00e5ff !important;
    font-family: var(--font-display);
}

/* ---- AI Full Support: segments (light) ---- */
.top-segments {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.top-segment {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(128,128,128,0.35);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    background: rgba(128,128,128,0.04);
}
.top-segment:hover { transform: translateY(-8px); border-color: currentColor; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.top-segment .img-slot { border-radius: 0; border: none; aspect-ratio: 4 / 3; }
.top-segment .seg-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.top-segment .seg-kicker { font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.25em; opacity: 0.6; }
.top-segment h3 { font-family: var(--font-main); text-transform: none; letter-spacing: 0; font-size: 1.25rem; font-weight: 700; }
.top-segment p { font-size: 0.92rem; line-height: 1.75; opacity: 0.85; flex: 1; }
.top-segment .seg-link { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; margin-top: 0.5rem; }

/* ---- Services (dark): 6 items ---- */
.top-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(128,128,128,0.35);
    border-left: 1px solid rgba(128,128,128,0.35);
}
.top-service {
    padding: 2.2rem;
    border-right: 1px solid rgba(128,128,128,0.35);
    border-bottom: 1px solid rgba(128,128,128,0.35);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    transition: background 0.3s ease;
}
.top-service:hover { background: rgba(128,128,128,0.08); }
.top-service .svc-num { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.25em; opacity: 0.55; }
.top-service h3 { font-family: var(--font-main); text-transform: none; letter-spacing: 0; font-size: 1.3rem; font-weight: 700; }
.top-service .svc-en { font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.2em; opacity: 0.55; text-transform: uppercase; }
.top-service p { font-size: 0.93rem; line-height: 1.8; opacity: 0.85; flex: 1; }
.top-service .svc-link { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; margin-top: 0.4rem; }
.top-service::after {
    content: '→';
    position: absolute; right: 1.5rem; top: 1.8rem;
    font-size: 1.2rem; opacity: 0.35; transition: transform 0.3s ease, opacity 0.3s ease;
}
.top-service:hover::after { transform: translateX(6px); opacity: 1; }

/* ---- Numbers strip (light) ---- */
.top-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}
.top-number { padding: 1.5rem 0; border-top: 2px solid currentColor; }
.top-number .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.top-number .num small { font-size: 0.4em; margin-left: 4px; }
.top-number .lbl { font-size: 0.85rem; opacity: 0.75; margin-top: 0.6rem; display: block; }

/* ---- Theme-aware surfaces (3D canvas shows through otherwise) ---- */
body.theme-light .top-segment,
body.theme-light .top-service,
body.theme-light .top-steps li,
body.theme-light .top-number { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(6px); }
body.theme-dark .top-segment,
body.theme-dark .top-service,
body.theme-dark .top-steps li { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); }
body.theme-light .top-segment .seg-body,
body.theme-light .top-service { color: #000; }
.top-steps li { padding-left: 1rem; padding-right: 1rem; box-sizing: border-box; }
.top-number { padding-left: 1rem; padding-right: 1rem; box-sizing: border-box; min-width: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .top-segments { grid-template-columns: repeat(2, 1fr); }
    .top-services { grid-template-columns: repeat(2, 1fr); }
    .top-reactor-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .top-segments { grid-template-columns: 1fr; }
    .top-services { grid-template-columns: 1fr; }
    .top-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 3rem; }
    .top-number .num { font-size: 1.6rem; }
    .top-number .num small { display: inline; }
    .top-lead { font-size: 1rem; margin: -1rem 0 2rem; }
    .top-btn { padding: 0.9rem 1.5rem; font-size: 0.75rem; }
    .top-service { padding: 1.5rem; }
}
