﻿@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg: #111827;
  --bg-soft: #1f2937;
  --bg-card: #243044;
  --text: #f9fafb;
  --muted: #9ca3af;
  --line: rgba(148, 163, 184, 0.16);
  --indigo: #6366f1;
  --indigo-light: #a5b4fc;
  --rose: #f43f5e;
  --rose-light: #fda4af;
  --accent: var(--indigo);
  --accent-2: var(--rose);
  --radius: 18px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
    linear-gradient(315deg, rgba(244, 63, 94, 0.07) 0%, transparent 40%);
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
  padding-bottom: 90px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; cursor: pointer; }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.04);
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--indigo), var(--rose));
}

.robot-carousel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.top-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0;
  padding: 0 clamp(14px, 4vw, 40px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.top-strip::-webkit-scrollbar { display: none; }
.top-strip a {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.top-strip a:last-child { border-right: 0; }
.top-strip a:hover {
  color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(14px, 4vw, 40px);
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--indigo), var(--rose));
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.38);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.brand span::after {
  content: "K";
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}
.brand b { color: var(--text); }
.phone-note {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-light);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a,
.nav-dd-btn {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-dd-btn:hover {
  color: var(--text);
  background: rgba(244, 63, 94, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text);
  place-items: center;
  margin-left: auto;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: 0.2s;
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] span::after { opacity: 0; }

.nav-dd { position: relative; }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  grid-template-columns: repeat(2, minmax(148px, 1fr));
  min-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 90;
}
.nav-dd-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.nav-dd-menu a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text);
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { display: grid; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(50px, 9vw, 96px) clamp(14px, 5vw, 48px);
}
.hero-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: var(--shadow);
  background: var(--bg-card);
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--indigo), var(--rose)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.kicker {
  display: inline-flex;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.32);
}
.hero h1 {
  margin: 18px 0;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.035em;
  word-break: keep-all;
}
.hero p {
  max-width: 530px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  line-height: 1.82;
  word-break: keep-all;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}
.marquee div {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: marq 32s linear infinite;
}
.marquee span {
  padding: 15px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo-light);
  white-space: nowrap;
}
.marquee span::before {
  content: "▸ ";
  color: var(--rose);
}

.band { padding: clamp(50px, 8vw, 90px) clamp(14px, 5vw, 48px); }
.band-a { background: var(--bg-soft); }
.band-b { background: var(--bg); }
.band-c { background: linear-gradient(180deg, #1a2332, var(--bg)); }
.band-d { background: var(--bg-soft); }
.band-e { background: var(--bg); }

.section-head { max-width: 730px; margin-bottom: 34px; }
.section-head small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--rose-light);
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3.5vw, 37px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  word-break: keep-all;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  word-break: keep-all;
}

.live-list, .timeline, .faq-grid, .scroll-cards, .link-scroll {
  display: grid;
  gap: 16px;
}
.live-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); list-style: none; padding: 0; margin: 0; }
.timeline { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.faq-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.scroll-cards, .link-scroll { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.live-list li, .info-card, .timeline article, .faq, .link-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s, border-color 0.22s;
}
.live-list li:hover, .info-card:hover, .link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.35);
}

.live-list li { padding: 22px; }
.live-list b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.live-list span { font-size: 13px; color: var(--muted); }

.info-card { padding: 24px; }
.info-card span { display: inline-block; font-size: 12px; font-weight: 800; color: var(--indigo-light); margin-bottom: 10px; }
.info-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.info-card p { margin: 0; font-size: 14px; color: var(--muted); word-break: keep-all; }

.timeline article { padding: 24px; }
.timeline b { display: inline-block; font-size: 13px; font-weight: 800; color: var(--rose-light); margin-bottom: 10px; }
.timeline article h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.timeline article p { margin: 0; font-size: 14px; color: var(--muted); }

.link-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 208px;
}
.link-card-badge {
  display: grid;
  place-items: center;
  aspect-ratio: 16/7;
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #312e81, #6366f1);
  border-bottom: 1px solid var(--line);
}
.link-card strong { display: block; padding: 18px 20px 8px; font-size: 16px; font-weight: 700; }
.link-card span { display: block; padding: 0 20px 20px; font-size: 13px; color: var(--muted); line-height: 1.68; }

.card-shinhan .link-card-badge { background: linear-gradient(135deg, #1a3a8f, #2f6bff); }
.card-samsung .link-card-badge { background: linear-gradient(135deg, #1a2878, #3b5bd9); }
.card-kookmin .link-card-badge { background: linear-gradient(135deg, #8a6800, #d4a017); color: #1a1200; }
.card-hana .link-card-badge { background: linear-gradient(135deg, #0a6058, #14b8a6); }
.card-woori .link-card-badge { background: linear-gradient(135deg, #1a5a8a, #2b8fd6); }
.card-lotte .link-card-badge { background: linear-gradient(135deg, #8a1820, #f5454c); }
.card-hyundai .link-card-badge { background: linear-gradient(135deg, #3a3a3a, #888); }
.card-nh .link-card-badge { background: linear-gradient(135deg, #8a6000, #ffc233); color: #1a1200; }
.card-bc .link-card-badge { background: linear-gradient(135deg, #8a2018, #f5564b); }
.card-kkang .link-card-badge { background: linear-gradient(135deg, #4338ca, #f43f5e); }
.card-hub .link-card-badge { background: linear-gradient(135deg, #581c87, #a855f7); }
.card-sitemap .link-card-badge { background: linear-gradient(135deg, #334155, #6366f1); }
.card-default .link-card-badge { background: linear-gradient(135deg, #1e293b, #475569); }

.faq { padding: 0; overflow: hidden; }
.faq summary { padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; word-break: keep-all; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--indigo-light); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 22px 20px; font-size: 14px; color: var(--muted); word-break: keep-all; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 36px clamp(14px, 5vw, 48px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer a { color: var(--indigo-light); font-weight: 600; }

.floating-cta {
  position: fixed;
  top: auto;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 150;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #e11d48);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 36px rgba(244, 63, 94, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(244, 63, 94, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

body.brand-shinhan { --accent: #2f6bff; --accent-2: #6f9bff; }
body.brand-samsung { --accent: #3b5bd9; --accent-2: #7088ff; }
body.brand-kookmin { --accent: #d4a017; --accent-2: #f0c84a; }
body.brand-hana { --accent: #14b8a6; --accent-2: #5eead4; }
body.brand-woori { --accent: #2b8fd6; --accent-2: #6bb6e8; }
body.brand-lotte { --accent: #f5454c; --accent-2: #ff7a80; }
body.brand-hyundai { --accent: #9a9a9a; --accent-2: #c8c8c8; }
body.brand-nh { --accent: #ffc233; --accent-2: #ffd866; }
body.brand-bc { --accent: #f5564b; --accent-2: #ff8278; }

body[class*="brand-"] .kicker {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
body[class*="brand-"] .section-head small { color: var(--accent-2); }
body[class*="brand-"] .brand span { background: linear-gradient(145deg, var(--accent), var(--accent-2)); }

@keyframes marq { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-media { max-width: 420px; margin: 0 auto; order: -1; }
  .phone-note { order: 3; flex: 1 1 100%; font-size: 12px; }
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 76px 12px auto 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { text-align: center; background: rgba(255,255,255,0.04); }
  .nav-dd { width: 100%; }
  .nav-dd-btn { width: 100%; text-align: left; }
  .nav-dd-menu {
    position: static;
    display: grid;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 6px 0 0;
    background: transparent;
  }
  .footer { flex-direction: column; }
  .floating-cta { right: 12px; left: 12px; text-align: center; border-radius: 14px; }
}

@media (max-width: 420px) {
  .top-strip a { font-size: 11px; padding: 10px 12px; }
  .hero h1 { font-size: 27px; }
}
