/* [V14-PREMIUM-HERO] Stacking-Context Solved */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@100;400;700;900&display=swap');

.premium-hero {
    width: 100%;
    margin: 40px auto 0px;
    padding: 100px 20px 0px;
    text-align: center;
    position: relative;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: transparent;
    
    /* [V29-FIX] Isolation creates a local stacking context.
       z-index: -1 on children will stay ABOVE the global background
       but BEHIND the hero content. */
    isolation: isolate; 
}

.glow-sphere-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 65%);
    filter: blur(80px);
    z-index: -1; /* Inside isolate, this is still visible */
    pointer-events: none;
    animation: floating-glow-1 15s ease-in-out infinite alternate;
}

.glow-sphere-2 {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 65%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: floating-glow-2 18s ease-in-out infinite alternate;
}

.glow-badge {
    position: relative;
    z-index: 2; /* Explicitly above glows */
    display: inline-block;
    padding: 7px 20px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 100px;
    color: #facc15;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.15);
}

.hero-title {
    position: relative;
    z-index: 2;
    font-size: calc(4.2rem - 1px);
    font-weight: 950;
    color: white;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* [V15-THEME-LIGHT, 2026-08-01] 히어로 타이틀/설명은 흰/밝은 회색 텍스트로
   하드코딩돼 있었음(GTES 로고·헤더 로그인과 같은 유형의 잠재 버그) — 다크 배경
   가정이 명시적이던 곳이라 라이트 모드에서 어두운 톤으로 뒤집는다. */
[data-theme="light"] .hero-title {
    color: #0f172a;
}
[data-theme="light"] .hero-desc {
    color: #64748b;
}
[data-theme="light"] .hero-desc strong {
    color: #0f172a;
}

/* [V16-THEME-LIGHT-BRAND, 2026-08-16] 배경 글로우 2개: 글로우1=노랑(브랜드 주 색),
   글로우2=오렌지(로고 바나나 음영색 #FF8E00에서 파생) — 시안 v5 승인. 크림톤은
   노랑과 색상거리가 부족해 기각, 오렌지로 대체 확정([[테마]] §1-1 참조 예정). */
[data-theme="light"] .glow-sphere-1 {
    background: radial-gradient(circle, rgba(250, 204, 21, 0.35) 0%, transparent 65%);
}
[data-theme="light"] .glow-sphere-2 {
    background: radial-gradient(circle, rgba(255, 142, 0, 0.3) 0%, transparent 65%);
}
[data-theme="light"] .glow-badge {
    color: #b45309;
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.4);
}


/* [2026-08-24 재대조] 시안(webstocks_download `.hero h1 span`)은 "S-CLASS"를 헤드라인과
   같은 크기의 텍스트가 아니라 작은 다크 필박스 배지로 그린다 — 기존엔 색상만 teal로
   바꾸고 배지 스타일(작은 폰트/배경/패딩)이 없어 헤드라인과 같은 크기로 거대하게
   렌더링되던 버그(사람 재지적, 전달.md). 마크업도 강제 줄바꿈(<br>)을 제거해
   "1%의 신호" 옆에 자연스럽게 흐르도록 함(app.html 동시 수정). */
.hero-title span.neon-text {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.42em;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: #0f172a;
    color: #fff;
    padding: 9px 16px;
    border-radius: 14px;
    white-space: nowrap;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .hero-title span.neon-text {
        display: inline-block;
        margin: 10px 0 0;
    }
}

.hero-desc {
    position: relative;
    z-index: 2;
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.7;
}

.hero-desc strong {
    color: #f8fafc;
    font-weight: 700;
}

.action-group {
    position: relative;
    z-index: 5; /* Above glows, clickable */
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* [2026-08-24] 2026-08-16 "StockBanana 브랜드 확정"(노랑#facc15+차콜#374151, 시안 v5
   승인값)이 라이트모드 [data-theme="light"] 오버라이드로만 적용되고 이 베이스(다크/기본)
   규칙은 갱신이 안 된 채 남아있던 걸 발견 — 자체 배경/텍스트를 갖는 필박스 버튼이라
   테마 무관하게 항상 같은 색으로 보이는 게 맞으므로, 오버라이드 대신 베이스 자체를
   승인값으로 교체하고 테마별 분기는 제거(단일 소스). */
/* [내 종목 분석] Style Button */
.hero-btn-primary {
    background: #ffffff;
    color: #374151;
    border: 1px solid rgba(55, 65, 81, 0.2);
    padding: 16px 24px;
    min-width: 180px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.hero-btn-secondary {
    background: #facc15;
    color: #374151;
    padding: 16px 24px;
    min-width: 180px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.5);
}

.mobile-break { display: none; }

@media (max-width: 768px) {
    .hero-title { font-size: calc(2.5rem - 1px); }
    .action-group { flex-direction: column; width: 100%; max-width: 300px; }
    /* [2026-08-24] "시장이 증명한" 다음에서 줄바꿈 — 모바일 폭에서 어중간한 지점에서
       자동 개행돼 글자가 아래로 밀리던 문제(사람 스크린샷 지적) 방지. */
    .mobile-break { display: block; }
    /* [2026-08-24] 메뉴(고정 헤더) 밑 공백 축소 — margin 40+padding 100=140px가
       데스크톱 헤더(80px) 기준값이라 모바일 헤더(60px)에선 상대적으로 훨씬 크고
       휑하게 보이던 것(사람 스크린샷 지적). */
    .premium-hero { margin: 20px auto 0; padding: 70px 20px 0; }
}

/* 🌀 [V14-GLOW-MOTION] 은은하고 불규칙적인 둥둥 떠다니는 광원 애니메이션 */
@keyframes floating-glow-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(60px, -40px) scale(1.05);
    }
    66% {
        transform: translate(-40px, 60px) scale(0.95);
    }
    100% {
        transform: translate(20px, -20px) scale(1.02);
    }
}

@keyframes floating-glow-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-80px, 40px) scale(1.08);
    }
    100% {
        transform: translate(40px, -60px) scale(0.92);
    }
}

/* [STOCKBANANA-HERO] 검증된 preview-hero-light 비주얼/피처/통계 이식 */
.premium-hero .hero-accent {
    color: #18b9ab;
}

/* [2026-08-24 재대조] 시안(webstocks_download `.hero`)의 좌(텍스트)/우(비주얼) 2단 그리드.
   기존엔 `.premium-hero`가 flex-column 중앙정렬 1단이라 비주얼이 텍스트 "아래"로
   밀렸었음 — `.hero-grid`/`.hero-copy`를 신설해 실제 2단 배치를 만든다. */
.premium-hero .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    text-align: left;
}

.premium-hero .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

@media (max-width: 900px) {
    .premium-hero .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .premium-hero .hero-copy {
        align-items: center;
    }
}

.premium-hero .visual {
    position: relative;
    width: 100%;
    height: 420px;
    display: grid;
    place-items: center;
}

.premium-hero .visual svg {
    position: absolute;
    inset: 10px 0 0;
    width: 100%;
    height: 100%;
}

.premium-hero .orbit {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px dashed rgba(24, 185, 171, .3);
}

.premium-hero .orbit:before {
    content: "";
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    background: #f2f9f8;
    z-index: -1;
}

/* [2026-08-24 재대조] 이미지 자체가 이미 다크카드+캔들차트+22% 알파마스크
   라운드코너로 합성돼있음(헤더 로고와 동일 원본) — CSS로 카드를 새로 그릴 필요 없이
   이미지를 키우고 그림자만 얹는다. */
.premium-hero .hero-banana {
    position: relative;
    width: 300px;
    max-width: 50vw;
    filter: drop-shadow(0 30px 45px rgba(7,28,55,.35));
}

.premium-hero .scan {
    position: absolute;
    top: 20px;
    left: 0;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(22,48,82,.14);
    padding: 13px;
    font-size: 10px;
    color: #607086;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-hero .scan i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12a977;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(18,169,119,.13);
}

.premium-hero .scan b {
    color: #12a977;
}

.premium-hero .latest {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 200px;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(22,48,82,.14);
    padding: 16px;
}

.premium-hero .latest small,
.premium-hero .latest > span {
    font-size: 9px;
    color: #8391a4;
    font-weight: 700;
}

.premium-hero .latest > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 9px 0;
}

.premium-hero .latest > div b {
    font-size: 19px;
    color: #15203a;
}

.premium-hero .latest > div strong {
    color: #12a977;
    font-weight: 800;
}

@media (max-width: 640px) {
    .premium-hero .visual { height: 340px; }
    .premium-hero .orbit { width: 260px; height: 260px; }
    .premium-hero .hero-banana { width: 190px; }
    .premium-hero .scan { left: 4px; }
    .premium-hero .latest { right: 4px; bottom: 0; width: 168px; padding: 12px; }
}

.premium-hero .strategy-stats {
    width: min(100%, 760px);
    text-align: left;
}

.premium-hero .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #15203a;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 6px;
}

.premium-hero .section-title span {
    color: #169d92;
    font-size: 17px;
    font-weight: 700;
}

.premium-hero .stats-note {
    color: #9aa5b8;
    font-size: 12px;
    margin: 0 0 18px;
}

.premium-hero .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #edf1f4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(25,40,70,.04);
    overflow: hidden;
}

.premium-hero .stat {
    text-align: center;
    padding: 28px 8px;
}

.premium-hero .stat + .stat {
    border-left: 1px solid #e8edf1;
}

.premium-hero .stat .emoji {
    font-size: 30px;
}

.premium-hero .stat strong {
    display: block;
    color: #12a69a;
    font-size: 34px;
    margin: 6px 0;
}

.premium-hero .stat small {
    color: #626f83;
    font-size: 13px;
}

@media (max-width: 640px) {
    .premium-hero .section-title {
        font-size: 21px;
    }
}

/* [2026-08-24] React 대시보드(#root)의 "📈 S-급 핵심 전략" 캐러셀이 오늘 신설한
   "LIVE INTELLIGENCE" S-Class/실시간피드 탭과 같은 뉴스를 중복 노출(사람 지적, 전달.md).
   소스 없는 컴파일 번들이라 직접 수정 대신 CSS로 숨김(작업과제 32번 SEO섹션 숨김과 동일
   방식) — 실제 캐러셀 컨테이너는 `.s-class-intelligence-container`(홈 DOM에서 유일하게
   1개만 매치, 실측 확인). [1차 시도 정정] 처음엔 `.dashboard-container > .card`를
   숨겼는데, 이건 화면에 안 보이는 별개의 숨은 요소(AI 코멘터리 템플릿으로 추정)였고 실제
   캐러셀이 아니었음 — 배포 후 스크린샷 재대조로 발견, 아래로 교체. 같은 컨테이너 밖의
   보유 포트폴리오 방어/실시간 핫 테마/실시간 뉴스 피드는 중복이 아니므로 그대로 둠. */
/* [2026-08-24 추가 정정] .s-class-intelligence-container만 숨기니 그 위 제목줄
   ("📈 S-급 핵심 전략 (Intelligence) · S-Class란?", <h3 class="section-title"> 형제
   요소)이 빈 채로 남았음(배포 후 재확인해서 발견) — 부모 div가 클래스가 없어서
   :has()로 "캐러셀을 자식으로 둔 그 부모 div" 전체를 숨긴다. 주의: `.section-title`은
   위 정적 히어로 통계 제목에도 같은 클래스명이 재사용되므로 `.section-title`을 직접
   숨기면 안 됨 — 반드시 이 :has() 방식으로 범위를 좁힌다. */
.s-class-intelligence-container,
main div:has(> .s-class-intelligence-container) {
    display: none;
}

/* [2026-08-25] "실시간 뉴스 피드 (Live Feed)" React 섹션도 오늘 신설한 LIVE INTELLIGENCE
   탭의 "실시간 피드" 탭과 중복(사람 지적, 전달.md) — 위와 동일 원칙(:has()로 부모 div째
   숨김, .dashboard-container 내 유일 매치 확인). 형제인 보유 포트폴리오 방어/실시간
   핫 테마는 중복이 아니므로 유지. 이 섹션이 갖고 있던 "Live Feed란?" 안내 링크는 삭제로
   같이 사라지므로, S-Class란?과 함께 새 탭 footer(.jm-feed-foot)로 옮겨 보존함. */
.dashboard-container > div:has(> .news-feed-stack) {
    display: none;
}
