/* ============================================================================
   Trang chu — Invest X
   ========================================================================= */

.section { padding: 96px 0; }

/* --- Nhan + tieu de phan --- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
}
.section-kicker::before,
.section-kicker::after {
    content: '';
    width: 28px; height: 1px;
    background: var(--border-strong);
}
.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.section-head h2 .accent { color: var(--brand); }

.section-lead {
    max-width: 74ch;
    margin: 0 auto;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

/* --- Hien thi khi cuon (scroll reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   HERO
   ========================================================================= */
.home-hero {
    position: relative;
    padding: 72px 0 80px;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(640px 420px at 82% 18%, var(--brand-soft), transparent 62%),
        radial-gradient(520px 380px at 12% 88%, rgba(252, 213, 53, 0.05), transparent 60%);
}
.home-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--brand);
}
.hero-eyebrow::before {
    content: '';
    width: 32px; height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(34px, 5.2vw, 62px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}
.hero-title .accent { color: var(--brand); }

.hero-sub {
    margin-top: 22px;
    max-width: 46ch;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

/* Hieu ung vao trang cho hero (CSS animation, khong can JS) */
.hero-eyebrow,
.hero-title .hero-line,
.hero-sub,
.hero-cta {
    opacity: 0;
    animation: hero-rise 0.85s var(--ease) forwards;
}
.hero-eyebrow          { animation-delay: 0.05s; }
.hero-title .hero-line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .hero-line:nth-child(2) { animation-delay: 0.25s; }
.hero-title .hero-line:nth-child(3) { animation-delay: 0.35s; }
.hero-sub              { animation-delay: 0.5s; }
.hero-cta              { animation-delay: 0.65s; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* --- Visual hero: cum du lieu SVG --- */
.hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
.hx-visual { width: 100%; height: auto; color: var(--text-primary); }

.hx-cluster { fill: none; }
.hx-node {
    fill: var(--text-primary);
    animation: hx-breathe 4.2s var(--ease) infinite;
}
.hx-cluster .hx-node:nth-child(2) { animation-delay: 0.6s; }
.hx-cluster .hx-node:nth-child(3) { animation-delay: 1.2s; }
.hx-cluster .hx-node:nth-child(4) { animation-delay: 1.8s; }
.hx-node-core {
    fill: var(--brand);
    filter: drop-shadow(0 0 8px rgba(252, 213, 53, 0.55));
    animation: hx-core-pulse 3s var(--ease) infinite;
}
@keyframes hx-breathe {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}
@keyframes hx-core-pulse {
    0%, 100% { opacity: 0.75; }
    50%      { opacity: 1; }
}

.hx-link {
    stroke: var(--text-secondary);
    stroke-width: 1;
    stroke-opacity: 0.35;
    stroke-dasharray: 3 4;
    animation: hx-dash 14s linear infinite;
}
.hx-link-long { stroke-opacity: 0.22; }

.hx-flow {
    stroke-width: 2;
    stroke-dasharray: 7 9;
    stroke-linecap: round;
    animation: hx-dash 3.4s linear infinite;
}
.hx-flow-reverse { animation-direction: reverse; animation-duration: 4.6s; }

@keyframes hx-dash {
    to { stroke-dashoffset: -160; }
}

.hx-pulse {
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.5;
    animation: hx-ripple 3.2s var(--ease) infinite;
}
.hx-pulse-b { animation-delay: 1.6s; }
@keyframes hx-ripple {
    0%   { opacity: 0.85; r: 4; }
    100% { opacity: 0; r: 30; }
}

.hx-label {
    fill: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
}
.hx-label-core {
    fill: var(--brand);
    font-size: 13px;
    letter-spacing: 0.3em;
}

/* ============================================================================
   INVEST X LÀ GÌ?
   ========================================================================= */
.section-about { padding-top: 88px; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin: 56px 0 0;
}
.about-card {
    grid-column: span 2;
    position: relative;
    padding: 28px 26px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.about-card-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.1em;
}
.about-card h3 {
    margin: 14px 0 10px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.about-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.about-card:nth-child(4) { grid-column: 2 / span 2; }
.about-card:nth-child(5) { grid-column: 4 / span 2; }

/* Công nghệ → Giải pháp thực chiến */
.about-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 44px;
    color: var(--text-disabled);
}
.about-flow-step {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.about-flow-step.accent {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

/* ============================================================================
   HÀNH TRÌNH PHÁT TRIỂN
   ========================================================================= */
.section-journey {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-journey .section-lead { margin-bottom: 0; }
.section-journey .section-lead + .section-lead { margin-top: 28px; }

.journey-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin: 56px 0;
}
.journey-line {
    position: absolute;
    top: 15px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: var(--border-strong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.3s var(--ease) 0.2s;
}
.journey-timeline.in .journey-line { transform: scaleX(1); }

.journey-milestone {
    position: relative;
    padding-top: 44px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.journey-timeline.in .journey-milestone { opacity: 1; transform: none; }
.journey-timeline.in .journey-milestone:nth-child(2) { transition-delay: 0.35s; }
.journey-timeline.in .journey-milestone:nth-child(3) { transition-delay: 0.55s; }
.journey-timeline.in .journey-milestone:nth-child(4) { transition-delay: 0.75s; }
.journey-timeline.in .journey-milestone:nth-child(5) { transition-delay: 0.95s; }
.journey-timeline.in .journey-milestone:nth-child(6) { transition-delay: 1.15s; }

.journey-dot {
    position: absolute;
    top: 8px;
    left: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 3px solid var(--brand);
    box-shadow: 0 0 0 4px var(--bg-surface);
}
.journey-milestone h3 {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.journey-milestone p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ============================================================================
   SỨ MỆNH
   ========================================================================= */
.section-mission {
    position: relative;
    text-align: center;
    overflow: hidden;
}
.section-mission::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(560px 420px at 50% 0%, var(--brand-soft), transparent 65%);
}

.mission-statement {
    position: relative;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 8px 0 56px;
}
.mission-statement .accent { color: var(--brand); }

.mission-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 56px;
    color: var(--text-disabled);
}
.mission-step {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: mission-gold 4s ease-in-out infinite;
}
.mission-step:nth-of-type(1) { animation-delay: 0s; }
.mission-step:nth-of-type(2) { animation-delay: 1s; }
.mission-step:nth-of-type(3) { animation-delay: 2s; }
.mission-step:nth-of-type(4) { animation-delay: 3s; }
.mission-step.accent {
    font-weight: 700;
}
@keyframes mission-gold {
    0%, 25%, 100% {
        border-color: var(--border-strong);
        background: var(--bg-surface);
        color: var(--text-disabled);
        box-shadow: 0 0 0 0 rgba(252, 213, 53, 0);
    }
    12.5% {
        border-color: var(--brand);
        background: var(--brand-soft);
        color: var(--brand);
        box-shadow: 0 0 18px rgba(252, 213, 53, 0.35);
    }
}
@media (prefers-reduced-motion: reduce) {
    .mission-step { animation: none; }
}

.mission-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.mission-copy p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================================================
   ĐIỂM MẠNH CỦA INVEST X
   ========================================================================= */
.section-strengths {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.strengths-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
    margin-top: 56px;
}

.strengths-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.strength-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), padding 0.2s var(--ease);
}
.strength-item:first-child { border-top: 1px solid var(--border); }
.strength-item:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.strength-item:focus-visible { outline-offset: -2px; }
.strength-item[aria-selected="true"] {
    background: var(--brand-soft);
    color: var(--brand);
    padding-left: 26px;
}
.strength-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.strength-item[aria-selected="true"] .strength-num { color: var(--brand); }
.strength-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.strength-item svg { flex-shrink: 0; opacity: 0.6; }
.strength-item[aria-selected="true"] svg { opacity: 1; transform: translateX(2px); transition: transform 0.2s var(--ease); }

.strength-panel {
    display: grid;
    place-items: center;
    min-height: 340px;
    padding: 32px;
    background:
        radial-gradient(420px 300px at 80% 10%, var(--brand-soft), transparent 65%),
        var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.strength-panel-inner {
    max-width: 420px;
    text-align: center;
}
.strength-panel-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--brand);
    margin-bottom: 24px;
}
.strength-panel-title {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
}
.strength-panel p {
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 1.75;
    color: var(--text-primary);
}
.strength-panel.expanded p {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    text-align: left;
}
.strength-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.82em;
    font-weight: 700;
    white-space: nowrap;
    color: var(--brand);
    border-radius: 6px;
    transition: opacity 0.2s var(--ease), text-decoration 0.2s var(--ease);
}
.strength-more-btn:hover { text-decoration: underline; }
.strength-more-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.strength-panel.swap .strength-panel-inner {
    animation: panel-in 0.45s var(--ease);
}
@keyframes panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================================
   TẦM NHÌN
   ========================================================================= */
.section-vision { position: relative; overflow: hidden; }
.section-vision::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(640px 400px at 15% 40%, var(--brand-soft), transparent 62%);
}

.vision-main {
    max-width: 960px;
    margin: 8px auto 44px;
    text-align: center;
}
.vision-main p {
    font-size: clamp(22px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.vision-values {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 52px;
}
.vision-value {
    padding: 10px 20px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.vision-value:hover { color: var(--brand); border-color: var(--brand); }

.vision-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 56px;
    font-family: var(--font-mono);
    font-size: clamp(16px, 2.2vw, 24px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-disabled);
}
.vision-tagline .accent { color: var(--brand); }

/* ============================================================================
   CTA CUỐI
   ========================================================================= */
.section-cta { padding-top: 40px; }

.cta-box {
    position: relative;
    padding: 72px 32px;
    text-align: center;
    background:
        radial-gradient(560px 320px at 50% 0%, var(--brand-soft), transparent 70%),
        var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cta-box h2 {
    max-width: 22ch;
    margin: 0 auto 18px;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.cta-box p {
    max-width: 58ch;
    margin: 0 auto 32px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
    .strengths-grid { gap: 24px; }
    .journey-timeline { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
    .journey-line { display: none; }
    .journey-milestone { padding-top: 36px; }
    .journey-dot { top: 2px; }
}

@media (max-width: 900px) {
    .section { padding: 72px 0; }
    .home-hero { padding: 48px 0 60px; }
    .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 520px; }
    .about-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .about-card:nth-child(4),
    .about-card:nth-child(5) { grid-column: auto; }
    .mission-copy { grid-template-columns: 1fr; }
    .strengths-grid { grid-template-columns: 1fr; }
    .strength-panel { min-height: 260px; }
}

@media (max-width: 768px) {
    .journey-timeline { grid-template-columns: 1fr; gap: 0; margin: 40px 0; }
    .journey-milestone { padding: 0 0 36px 34px; }
    .journey-milestone:last-child { padding-bottom: 0; }
    .journey-milestone::before {
        content: '';
        position: absolute;
        top: 4px;
        bottom: 0;
        left: 7px;
        width: 2px;
        background: var(--border);
    }
    .journey-milestone:last-child::before { display: none; }
    .journey-dot { top: 0; left: 0; }
    .cta-box { padding: 52px 24px; }
}

@media (max-width: 480px) {
    .hero-cta .btn { width: 100%; }
    .cta-actions .btn { width: 100%; }
    .strength-panel { min-height: 220px; padding: 24px; }
    .vision-values { gap: 8px; }
    .vision-value { padding: 8px 14px; font-size: 13px; }
}
