/* ── Color Overrides ── */
:root {
    --primary: #1D4ED8;
    --secondary: #0B2154;
    --light: #F8FAFC;
    --dark: #050B18;

    /* Old-site accent palette (scoped to dark sections) */
    --ds-bg:  #050B18;
    --ds-bg2: #0D1628;
    --ds-bg3: #111D35;
    --ds-text: #F1F5F9;
    --ds-text2: #94A3B8;
    --ds-text3: #64748B;
    --ds-accent:  #3B82F6;
    --ds-accent2: #06B6D4;
    --ds-accent3: #8B5CF6;
    --ds-green:  #10B981;
    --ds-amber:  #F59E0B;
    --ds-border:  rgba(255,255,255,.07);
    --ds-border2: rgba(59,130,246,.25);
}

/* Always-visible navbar */
.sticky-top { top: 0 !important; }

/* Chinese font */
body { font-family: 'Noto Sans TC', 'Ubuntu', sans-serif; }

/* ── Hero (full-screen, dark gradient) ── */
.hero-section {
    min-height: 580px;
    background: linear-gradient(135deg, #050B18 0%, #0B2154 50%, #1D4ED8 100%);
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #06B6D4;
    opacity: .9;
    margin-bottom: 20px;
}
.hero-cta-primary {
    background: linear-gradient(135deg, #1D4ED8, #06B6D4);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: all .2s;
    border: none;
    margin-right: 12px;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,78,216,.45); color: #fff; }
.hero-cta-secondary {
    background: transparent;
    color: #F1F5F9;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,.2);
    transition: all .2s;
}
.hero-cta-secondary:hover { border-color: #3B82F6; color: #3B82F6; transform: translateY(-2px); }

/* ── Tagline strip ── */
.tagline-strip {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 22px 0;
    text-align: center;
    font-size: 1.05rem;
    color: #475569;
}
.tagline-strip strong { color: #0B2154; }

/* ── Section label (eyebrow) ── */
.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ds-accent2);
    margin-bottom: 12px;
}

/* ── Dark sections ── */
.section-dark {
    background: var(--ds-bg);
    color: var(--ds-text);
}
.section-dark2 { background: var(--ds-bg2); color: var(--ds-text); }
.section-dark .section-eyebrow { color: var(--ds-accent2); }
.section-dark2 .section-eyebrow { color: var(--ds-accent2); }
.section-dark h2, .section-dark2 h2,
.section-dark h3, .section-dark2 h3,
.section-dark h4, .section-dark2 h4 { color: var(--ds-text); }
.section-dark p, .section-dark2 p { color: var(--ds-text2); }

/* ── Flywheel diagram ── */
.flow-container { display: flex; flex-direction: column; align-items: center; }
.flow-node {
    background: var(--ds-bg3);
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-text);
    min-width: 200px;
    text-align: center;
    transition: all .3s;
}
.flow-node:hover { border-color: var(--ds-accent); background: rgba(59,130,246,.08); }
.flow-node.hl  { border-color: var(--ds-accent2); background: rgba(6,182,212,.1); color: var(--ds-accent2); }
.flow-node.out { border-color: var(--ds-green);   background: rgba(16,185,129,.08); color: var(--ds-green); }
.flow-arrow {
    width: 2px; height: 20px;
    background: linear-gradient(var(--ds-accent), var(--ds-accent2));
    margin: 0 auto; position: relative;
}
.flow-arrow::after {
    content: ''; position: absolute; bottom: -4px; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ds-accent2); border-top-width: 7px;
}
.flow-output-box {
    border: 1px solid var(--ds-border2);
    border-radius: 12px;
    padding: 18px 22px;
    background: rgba(59,130,246,.05);
    min-width: 220px;
}
.flow-output-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ds-text3); margin-bottom: 12px; }
.flow-output-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ds-text2); padding: 4px 0; }
.flow-output-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-accent); flex-shrink: 0; }
.flow-loop-label { font-size: 12px; color: var(--ds-text3); margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.flow-loop-label::before,.flow-loop-label::after { content: ''; flex: 1; height: 1px; background: var(--ds-border); }

.flywheel-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media(max-width:900px) { .flywheel-layout { grid-template-columns: 1fr; } }
.flywheel-tagline { font-size: 1.05rem; color: var(--ds-text2); margin: 20px 0 10px; line-height: 1.8; }
.flywheel-tagline em { color: var(--ds-accent2); font-style: normal; font-weight: 600; }

/* ── Differentiator cards ── */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 22px; }
.diff-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 30px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.diff-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0; transition: opacity .3s; }
.diff-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.08); border-color: #cbd5e1; }
.diff-card:hover::before { opacity: 1; }
.diff-card.c1::before { background: linear-gradient(90deg,#1D4ED8,#06B6D4); }
.diff-card.c2::before { background: linear-gradient(90deg,#06B6D4,#10B981); }
.diff-card.c3::before { background: linear-gradient(90deg,#10B981,#F59E0B); }
.diff-card.c4::before { background: linear-gradient(90deg,#F59E0B,#F97316); }
.diff-card.c5::before { background: linear-gradient(90deg,#8B5CF6,#1D4ED8); }
.diff-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #94A3B8; margin-bottom: 12px; }
.diff-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: #0B2154; }
.diff-card .diff-en { font-size: 12px; color: #94A3B8; font-style: italic; margin-bottom: 14px; }
.diff-card p { font-size: 14px; color: #475569; line-height: 1.8; margin-bottom: 14px; }
.diff-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.diff-col { background: #f8fafc; border-radius: 8px; padding: 12px; }
.diff-col-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.diff-col-label.old { color: #94A3B8; }
.diff-col-label.new { color: #06B6D4; }
.diff-col p { font-size: 12.5px; color: #475569; line-height: 1.7; margin-bottom: 0; }
.quote-block {
    background: rgba(29,78,216,.06);
    border-left: 3px solid #06B6D4;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 13.5px;
    color: #0B2154;
    font-style: italic;
    line-height: 1.7;
}

/* ── Speech-to-Place comparison ── */
.s2p-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; margin-top: 20px; }
@media(max-width:640px) { .s2p-flow { grid-template-columns: 1fr; gap: 8px; } }
.s2p-col { background: #f8fafc; border-radius: 10px; padding: 16px; }
.s2p-col-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.s2p-col-label.old { color: #94A3B8; }
.s2p-col-label.new { color: #06B6D4; }
.s2p-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; padding: 4px 0; }
.s2p-step-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.s2p-step-dot.blue { background: #1D4ED8; }
.s2p-step-dot.cyan { background: #06B6D4; }
.s2p-step-dot.green { background: #10B981; }
.s2p-result { margin-top: 10px; padding: 10px 12px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); border-radius: 8px; font-size: 13px; color: #10B981; font-weight: 600; }
.s2p-vs { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #94A3B8; font-weight: 700; letter-spacing: 1px; padding-top: 40px; }

/* ── Safe Learning steps ── */
.safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-top: 40px; }
.safe-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    position: relative;
}
.safe-step::after {
    content: '→'; position: absolute; right: -11px; top: 50%;
    transform: translateY(-50%);
    color: #1D4ED8; font-size: 18px; font-weight: 700; z-index: 1;
}
.safe-step:last-child::after { display: none; }
@media(max-width:760px) { .safe-step::after { display: none; } }
.safe-step-num {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #1D4ED8, #06B6D4);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    margin: 0 auto 12px;
}
.safe-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #0B2154; }
.safe-step p { font-size: 12.5px; color: #475569; line-height: 1.6; margin-bottom: 0; }
.safe-callout {
    background: rgba(29,78,216,.06);
    border: 1px solid rgba(29,78,216,.15);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 32px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.safe-callout p { font-size: 15px; color: #0B2154; line-height: 1.8; margin-bottom: 0; }
.safe-callout em { color: #06B6D4; font-style: normal; font-weight: 600; }

/* ── Architecture ── */
.arch-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
@media(max-width:860px) { .arch-grid { grid-template-columns: 1fr; } }
.arch-tree {
    font-size: 13px;
    font-family: 'SF Mono','Fira Code', 'Courier New', monospace;
    line-height: 2;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
}
.arch-tree .root { color: #0B2154; font-weight: 700; font-size: 14px; }
.arch-tree .branch { color: #1D4ED8; }
.arch-tree .leaf { color: #475569; }
.arch-tree .leaf em { color: #94A3B8; font-style: normal; }
.arch-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:540px) { .arch-modules { grid-template-columns: 1fr; } }
.arch-mod {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all .25s;
}
.arch-mod:hover { border-color: #1D4ED8; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(29,78,216,.1); }
.arch-mod-icon { font-size: 22px; margin-bottom: 10px; color: #1D4ED8; }
.arch-mod h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: #0B2154; }
.arch-mod .mod-en { font-size: 11px; color: #94A3B8; margin-bottom: 8px; font-style: italic; }
.arch-mod p { font-size: 12.5px; color: #475569; line-height: 1.7; margin-bottom: 10px; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-tag {
    background: rgba(29,78,216,.08);
    border: 1px solid rgba(29,78,216,.2);
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 11px;
    color: #1D4ED8;
}

/* ── Fleet Intelligence ── */
.fleet-diagram { max-width: 680px; margin: 40px auto 0; }
.fleet-root {
    background: linear-gradient(135deg, #1D4ED8, #06B6D4);
    border-radius: 12px; padding: 16px 24px;
    text-align: center; font-weight: 700; font-size: 15px; color: #fff;
}
.fleet-trunk { width: 2px; height: 28px; background: rgba(29,78,216,.3); margin: 0 auto; }
.fleet-branches { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media(max-width:600px) { .fleet-branches { grid-template-columns: 1fr; } }
.fleet-branch { display: flex; flex-direction: column; align-items: center; }
.fleet-branch-line { width: 2px; height: 22px; background: rgba(29,78,216,.3); }
.fleet-leaf {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 14px 16px; width: 100%; text-align: left;
}
.fleet-leaf.global { border-color: rgba(6,182,212,.4); background: rgba(6,182,212,.04); }
.fleet-leaf-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #0B2154; }
.fleet-leaf-title.global-title { color: #06B6D4; }
.fleet-leaf-item { font-size: 12px; color: #475569; padding: 2px 0; display: flex; gap: 8px; align-items: center; }
.fleet-leaf-item::before { content: '·'; color: #94A3B8; flex-shrink: 0; }
.fleet-value { text-align: center; margin-top: 32px; font-size: 15px; color: #475569; line-height: 1.8; }
.fleet-value strong { color: #0B2154; }

/* ── Audience / pitch tabs ── */
.pitch-tabs { display: flex; gap: 4px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px; width: fit-content; margin-bottom: 28px; }
.pitch-tab { padding: 9px 22px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; color: #64748B; border: none; background: none; }
.pitch-tab.active { background: #fff; color: #0B2154; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.audience-panel { display: none; }
.audience-panel.active { display: block; }
.pitch-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px;
    max-width: 760px;
}
.pitch-card .pitch-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #06B6D4; margin-bottom: 14px; }
.pitch-card blockquote {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #0B2154;
    line-height: 1.9;
    font-style: italic;
    border-left: 3px solid #1D4ED8;
    padding-left: 20px;
    margin: 0;
}
.pitch-card .pitch-note { font-size: 13px; color: #94A3B8; margin-top: 16px; line-height: 1.7; }

/* ── Numbered list (about section) ── */
.num-box {
    background: #EFF6FF;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; flex-shrink: 0; margin-top: 2px;
}

/* ── Testimonial avatar fallback ── */
.testimonial-avatar {
    width: 80px; height: 80px;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
