/* ===== 메가텔레콤 메인페이지 (리디자인 핸드오프) ===== */
/* 메인(index.html) 전용 스타일. 내부 페이지는 기존 style.css/megamenu 유지. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #16181D; background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- keyframes ---- */
@keyframes mtFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mtPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---- hover/interaction ---- */
.mt-svc { transition: all .22s; }
.mt-svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,24,29,.13) !important; }
.mt-svc:hover .mt-arrow { transform: translateX(4px); }
.mt-arrow { transition: transform .2s; }
.mt-biz { transition: all .2s; }
.mt-biz:hover { border-color: #E60012 !important; transform: translateY(-4px); }
.mt-store { transition: all .22s; }
.mt-store:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20,24,29,.16) !important; }
.mt-store:hover .mt-store-img { transform: scale(1.05); }
.mt-store-img { transition: transform .3s; }
.mt-nav-link { transition: color .15s; }
.mt-nav-link:hover { color: #E60012 !important; }
.mt-notice-row { transition: background .12s; }
.mt-notice-row:hover { background: #FAFAFB; }
.mt-cta { transition: background .15s; }
.mt-cta:hover { background: #C00010 !important; }
.mt-cta-ghost { transition: all .15s; }
.mt-cta-ghost:hover { background: #fff !important; color: #16181D !important; }
.mt-lang-pill { transition: background .15s; }
.mt-lang-pill:hover { background: rgba(255,255,255,.22) !important; }
.mt-fab { transition: transform .18s; }
.mt-fab:hover { transform: scale(1.07); }
.mt-chip { transition: all .15s; cursor: pointer; }
.mt-chip.selected { border-color: #E60012 !important; background: #FFF0F1 !important; color: #E60012 !important; }

/* ---- 그리드(반응형 오버라이드 용이하도록 CSS에서 정의) ---- */
.mt-grid { display: grid; }
.mt-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.mt-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mt-grid-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mt-grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; }
.mt-news-grid { grid-template-columns: 1.35fr 1fr; gap: 30px; }
.mt-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: start; }

/* ---- 모바일 햄버거/드로어 ---- */
.mt-hamburger { display: none; width: 40px; height: 40px; border: none; background: none; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.mt-hamburger span { display: block; width: 22px; height: 2px; background: #16181D; border-radius: 2px; transition: .2s; }
.mt-drawer { display: none; position: fixed; inset: 0; z-index: 90; }
.mt-drawer.open { display: block; }
.mt-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.mt-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; background: #fff; padding: 24px 22px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.mt-drawer-panel a { display: block; padding: 14px 6px; font-size: 16px; font-weight: 700; border-bottom: 1px solid #F1F2F4; }
.mt-drawer-close { position: absolute; top: 14px; right: 14px; border: none; background: #F6F7F9; width: 36px; height: 36px; border-radius: 9px; font-size: 20px; cursor: pointer; }

/* ---- 예약 모달 표시 토글 ---- */
.mt-modal { display: none; }
.mt-modal.open { display: flex; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .mt-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mt-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .mt-nav { display: none !important; }
  .mt-hamburger { display: flex; }
  .mt-foreigners-action { display: none !important; }
  .mt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mt-grid-2 { grid-template-columns: 1fr; }
  .mt-news-grid { grid-template-columns: 1fr; }
  .mt-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mt-hero-h1 { font-size: 38px !important; }
  .mt-section-h2 { font-size: 28px !important; }
  .mt-utilbar-hours { display: none; }
}
@media (max-width: 520px) {
  .mt-grid-4 { grid-template-columns: 1fr; }
  .mt-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .mt-hero-h1 { font-size: 32px !important; }
}


/* ===== 헤더 드롭다운 (데스크톱 호버) — common-header.css와 동일, index(home.css)용 ===== */

/* ===== 모바일 드로어 아코디언 ===== */


/* ===== 유틸바 지원 링크(공지/FAQ) — 모바일에선 드로어로 대체하여 숨김 ===== */
@media (max-width: 768px) { .mt-utilbar-support { display: none !important; } }


/* ===== 폴더블8 사전예약 히어로 (index) ===== */
.mt-po-hero .mt-hero-h1 { font-size: 50px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 0 0 18px; }
.mt-po-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 700; letter-spacing: .01em; margin-bottom: 22px; }
.mt-po-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #8fe3ff; box-shadow: 0 0 0 4px rgba(143,227,255,.28); }
.mt-po-sub { font-size: 18px; line-height: 1.6; color: #dbeefc; margin: 0 0 26px; max-width: 490px; letter-spacing: -.01em; }
.mt-po-sub b { color: #fff; }
/* CTA */
.mt-po-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-po-cta-main { height: 56px; display: inline-flex; align-items: center; padding: 0 32px; border-radius: 13px; background: #E60012; color: #fff; font-size: 17px; font-weight: 800; box-shadow: 0 12px 30px rgba(230,0,18,.42); letter-spacing: -.01em; transition: background .15s, transform .15s; }
.mt-po-cta-main:hover { background: #C00010; transform: translateY(-1px); }
.mt-po-cta-ghost { height: 56px; display: inline-flex; align-items: center; padding: 0 26px; border-radius: 13px; border: 1.6px solid rgba(255,255,255,.42); color: #fff; font-size: 16px; font-weight: 700; transition: background .15s, color .15s; }
.mt-po-cta-ghost:hover { background: #fff; color: #063a5e; }

/* ===== 티저 카드 (teaser-card-final.html 이식 — 반응형 폴더블 언폴드) ===== */
.mt-po-hero .teaser-card { --brand-red:#EF4444; --card-radius:24px;
  --panel-w:128px; --panel-h:192px; --shift:64px;
  position:relative; width:100%; max-width:520px; margin:0 auto;
  border-radius:var(--card-radius); overflow:hidden;
  background:
    radial-gradient(130% 100% at 50% -10%, rgba(99,102,241,.30), rgba(8,10,32,.2) 55%),
    radial-gradient(90% 80% at 80% 110%, rgba(56,132,175,.25), transparent 60%),
    #080a20;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  padding:24px; display:flex; flex-direction:column; }
.teaser-card .bg-star{ position:absolute; width:2px; height:2px; border-radius:50%; background:#fff; opacity:.5; animation:tcTwinkle 3s ease-in-out infinite; pointer-events:none; }
@keyframes tcTwinkle{ 0%,100%{opacity:.2;} 50%{opacity:.9;} }
.teaser-card .teaser-badge{ position:relative; z-index:4; align-self:flex-start; display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.06em; color:#dbeafe; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); padding:8px 14px; border-radius:999px; }
.teaser-card .teaser-badge .dot{ width:7px; height:7px; border-radius:50%; background:var(--brand-red); box-shadow:0 0 0 0 rgba(239,68,68,.6); animation:tcPulse 1.8s infinite; }
@keyframes tcPulse{ 0%{box-shadow:0 0 0 0 rgba(239,68,68,.55);} 70%{box-shadow:0 0 0 10px rgba(239,68,68,0);} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0);} }
.teaser-card .stage{ position:relative; flex:1 1 auto; display:flex; align-items:center; justify-content:center; min-height:calc(var(--panel-h) + 40px); margin:14px 0; perspective:1500px; }
.teaser-card .glow{ position:absolute; width:80%; max-width:360px; aspect-ratio:1.2/1; border-radius:50%; background:radial-gradient(circle, rgba(129,140,248,.4), rgba(129,140,248,0) 65%); filter:blur(6px); animation:tcGlowPulse 5.5s ease-in-out infinite; pointer-events:none; }
@keyframes tcGlowPulse{ 0%,100%{transform:scale(.9);opacity:.5;} 50%{transform:scale(1.08);opacity:.9;} }
.teaser-card .phone-float{ position:relative; width:calc(var(--panel-w) * 2); height:var(--panel-h); transform-style:preserve-3d; animation:tcFloaty 6s ease-in-out infinite; }
@keyframes tcFloaty{ 0%,100%{transform:translateY(0) rotateX(5deg);} 50%{transform:translateY(-10px) rotateX(5deg);} }
.teaser-card .phone-inner{ position:absolute; inset:0; transform-style:preserve-3d; animation:tcShiftFold 6s ease-in-out infinite; }
@keyframes tcShiftFold{ 0%{transform:translateX(var(--shift));} 22%{transform:translateX(0);} 78%{transform:translateX(0);} 100%{transform:translateX(var(--shift));} }
.teaser-card .panel{ position:absolute; top:0; width:var(--panel-w); height:var(--panel-h); background:linear-gradient(160deg,#20242e,#0c0f18); border:1px solid rgba(255,255,255,.14); }
.teaser-card .panel.left{ left:0; border-radius:16px 4px 4px 16px; box-shadow:inset 2px 0 6px rgba(0,0,0,.5); }
.teaser-card .panel.right{ left:var(--panel-w); transform-origin:left center; border-radius:4px 16px 16px 4px; box-shadow:inset -2px 0 6px rgba(0,0,0,.5); backface-visibility:hidden; animation:tcUnfold 6s ease-in-out infinite; }
@keyframes tcUnfold{ 0%{transform:rotateY(-160deg);} 22%{transform:rotateY(0deg);} 78%{transform:rotateY(0deg);} 100%{transform:rotateY(-160deg);} }
.teaser-card .screen-wrap{ position:absolute; inset:0; animation:tcScreenFade 6s ease-in-out infinite; }
@keyframes tcScreenFade{ 0%,18%{opacity:0;} 26%,74%{opacity:1;} 82%,100%{opacity:0;} }
.teaser-card .screen{ position:absolute; inset:8px; border-radius:9px; overflow:hidden; background:radial-gradient(80% 90% at 50% 50%, rgba(79,70,229,.4), transparent 72%), radial-gradient(90% 70% at 20% 15%, rgba(56,189,248,.18), transparent 60%), linear-gradient(180deg,#0a0e27 0%,#0b0a1f 55%,#05060f 100%); display:flex; align-items:center; justify-content:center; }
.teaser-card .s-star{ position:absolute; width:2px; height:2px; border-radius:50%; background:#fff; animation:tcTwinkle 2.6s ease-in-out infinite; }
.teaser-card .shooting{ position:absolute; top:18%; left:-20%; width:60px; height:1.5px; background:linear-gradient(90deg, transparent, rgba(191,219,254,.95)); transform:rotate(20deg); animation:tcShoot 6s ease-in 2s infinite; opacity:0; }
@keyframes tcShoot{ 0%{transform:translate(0,0) rotate(20deg);opacity:0;} 6%{opacity:1;} 16%{transform:translate(180px,66px) rotate(20deg);opacity:0;} 100%{opacity:0;} }
.teaser-card .crease{ position:absolute; top:6%; bottom:6%; left:50%; width:1px; transform:translateX(-.5px); background:linear-gradient(180deg,transparent,rgba(255,255,255,.14),transparent); }
.teaser-card .screen-text{ position:relative; z-index:2; text-align:center; padding:0 8px; }
.teaser-card .st-samsung{ font-size:clamp(12px,3.6vw,16px); font-weight:800; letter-spacing:.22em; text-indent:.22em; color:#fff; margin-bottom:10px; text-shadow:0 0 12px rgba(147,197,253,.5); }
.teaser-card .st-new{ font-size:clamp(8px,2.2vw,9px); font-weight:700; letter-spacing:.38em; text-indent:.38em; color:#93c5fd; margin-bottom:5px; }
.teaser-card .st-fold{ font-size:clamp(22px,7vw,30px); font-weight:900; letter-spacing:.01em; line-height:1; background:linear-gradient(100deg,#e8f1f8,#a9c7e8 30%,#fff 50%,#a9c7e8 70%,#e8f1f8); background-size:250% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; animation:tcShimmer 4.5s linear infinite; white-space:nowrap; }
.teaser-card .st-date{ margin-top:10px; font-size:clamp(9px,2.4vw,10px); font-weight:600; letter-spacing:.26em; text-indent:.26em; color:#7d93c7; white-space:nowrap; }
@keyframes tcShimmer{ 0%{background-position:180% 0;} 100%{background-position:-80% 0;} }
.teaser-card .particle{ position:absolute; width:3px; height:3px; border-radius:50%; background:rgba(191,219,254,.9); animation:tcRise linear infinite; pointer-events:none; }
@keyframes tcRise{ 0%{transform:translateY(20px) scale(.6);opacity:0;} 20%{opacity:1;} 100%{transform:translateY(-160px) scale(1);opacity:0;} }
.teaser-card .teaser-bottom{ position:relative; z-index:4; }
.teaser-card .teaser-caption{ font-size:clamp(13px,3.4vw,15px); font-weight:600; color:#e8f1f8; margin-bottom:12px; text-shadow:0 2px 8px rgba(0,0,0,.4); }
.teaser-card .countdown{ display:flex; gap:8px; }
.teaser-card .cd-box{ flex:1 1 0; min-width:0; text-align:center; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:8px 2px; }
.teaser-card .cd-num{ font-size:clamp(18px,5.2vw,22px); font-weight:800; color:#fff; line-height:1.1; font-variant-numeric:tabular-nums; }
.teaser-card .cd-label{ font-size:clamp(10px,2.6vw,11px); color:#9cb8ca; margin-top:2px; }
@media (max-width:430px){
  .mt-po-hero .teaser-card{ --panel-w:104px; --panel-h:156px; --shift:52px; padding:18px; }
  .teaser-card .stage{ margin:10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .teaser-card .bg-star, .teaser-card .teaser-badge .dot, .teaser-card .glow, .teaser-card .phone-float, .teaser-card .phone-inner, .teaser-card .panel.right, .teaser-card .screen-wrap, .teaser-card .s-star, .teaser-card .shooting, .teaser-card .st-fold, .teaser-card .particle { animation: none !important; }
  .teaser-card .screen-wrap { opacity:1; }
  .teaser-card .panel.right { transform: rotateY(0deg); }
  .teaser-card .phone-inner { transform: translateX(0); }
}
/* 신뢰 지표 바 */
.mt-trust-bar { background: #f4fafd; border-bottom: 1px solid #e3eef4; }
.mt-trust-inner { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.mt-trust-item { padding: 6px 34px; text-align: center; }
.mt-trust-item + .mt-trust-item { border-left: 1px solid #dbe7ee; }
.mt-trust-item b { display: block; font-size: 26px; font-weight: 800; color: #0a5a80; letter-spacing: -.02em; }
.mt-trust-item span { display: block; font-size: 13px; color: #5c7180; margin-top: 3px; font-weight: 600; }

@media (max-width: 1024px) { .mt-po-hero .mt-hero-h1 { font-size: 44px; } }
@media (max-width: 768px) {
  .mt-po-hero .mt-hero-h1 { font-size: 36px !important; }
  .mt-po-cta-main, .mt-po-cta-ghost { width: 100%; justify-content: center; }
  .mt-trust-item { padding: 6px 18px; }
  .mt-trust-item b { font-size: 22px; }
}
@media (max-width: 520px) {
  .mt-po-hero .mt-hero-h1 { font-size: 30px !important; }
  .mt-trust-item { padding: 5px 12px; }
  .mt-trust-item b { font-size: 20px; }
}
