/* ═══════════════════════════════════════════
   HANCOM LIFECARE — GLOBAL STYLESHEET
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --black:    #09090b;
  --dark:     #111214;
  --panel:    #17191e;
  --panel2:   #1c1e24;
  --border:   #24262d;
  --muted:    #3a3d46;
  --dim:      #6b7280;
  --mid:      #9ca3af;
  --text:     #e4e5e9;
  --white:    #f4f4f5;
  --red:      #e63329;
  --red-dim:  rgba(230,51,41,.10);
  --red-glow: rgba(230,51,41,.22);
  --acc:      #ff4a3d;

  --display:  'Bebas Neue', sans-serif;
  --sans:     'DM Sans', sans-serif;
  --mono:     'DM Mono', monospace;

  --nav-h:    64px;
  --content:  1200px;
  --radius:   0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

/* noise */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .45;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ── CONTAINER ── */
.container { max-width: var(--content); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(9,9,11,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: var(--content);
  margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* 로고는 흰색 PNG이므로 다크 테마는 그대로, 라이트 테마에서 반전 */
  filter: none;
  transition: opacity .2s;
}
.nav-logo:hover .nav-logo-img { opacity: .8; }

/* 라이트 테마(industrial/editorial)에서 로고 반전 */
[data-theme="industrial"] .nav-logo-img,
[data-theme="editorial"] .nav-logo-img {
  filter: invert(1) brightness(.15);
}

.logo-hex {
  width: 30px; height: 30px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0,80% 0,100% 20%,100% 100%,20% 100%,0 80%);
  flex-shrink: 0;
}
.logo-hex span { font-family: var(--display); font-size: 15px; color: #fff; }
.logo-text { line-height: 1.05; }
.logo-brand { font-family: var(--display); font-size: 16px; letter-spacing: 2.5px; color: var(--white); }
.logo-sub   { font-family: var(--mono); font-size: 8px; letter-spacing: 3px; color: var(--red); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mid); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';  display: block; height: 1px; background: var(--red); margin-top: 2px;
}
.nav-cta {
  padding: 8px 18px;
  background: var(--red); color: #fff !important;
  font-family: var(--mono) !important; font-size: 10px !important;
  letter-spacing: 2px; text-transform: uppercase;
  clip-path: polygon(0 0,88% 0,100% 30%,100% 100%,12% 100%,0 70%);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--acc) !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1px; background: var(--mid); transition: all .3s; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* mobile menu */
.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--dark); border-bottom: 1px solid var(--border);
  padding: 24px; z-index: 199;
  flex-direction: column; gap: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mid); padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════
   TICKER
══════════════════════════════ */
.ticker { background: var(--red); overflow: hidden; padding: 9px 0; }
.ticker-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: tick 35s linear infinite;
}
.ticker-item {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
  color: rgba(255,255,255,.9); text-transform: uppercase;
  padding: 0 36px; display: flex; align-items: center; gap: 12px;
}
.ticker-item::after { content: '◆'; font-size: 6px; opacity: .55; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════
   SECTION COMMONS
══════════════════════════════ */
.section { padding: 112px 0; }
.section--dark   { background: var(--dark); }
.section--darker { background: #0d0e11; }

.section-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 4px;
  color: var(--red); text-transform: uppercase; margin-bottom: 16px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--red); flex-shrink: 0; }

.section-title {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: .95; letter-spacing: 1.5px; color: var(--white); margin-bottom: 20px;
}
.section-title .ghost { color: var(--muted); }

.section-lead { max-width: 540px; font-size: 14px; color: var(--mid); line-height: 1.75; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-block; padding: 13px 30px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-red {
  background: var(--red); color: #fff;
  clip-path: polygon(0 0,88% 0,100% 28%,100% 100%,12% 100%,0 72%);
}
.btn-red:hover { background: var(--acc); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--mid);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--red); color: var(--white); }

/* ══════════════════════════════
   PILLS / CERTS
══════════════════════════════ */
.pill {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px;
  background: var(--red-dim); border: 1px solid rgba(230,51,41,.2); color: var(--red);
}
.cert-tag {
  display: inline-block; padding: 5px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  border: 1px solid var(--border); color: var(--mid);
  transition: all .2s;
}
.cert-tag:hover { border-color: var(--muted); color: var(--white); }

/* ══════════════════════════════
   CARD
══════════════════════════════ */
.card {
  background: var(--panel); border: 1px solid var(--border);
  padding: 36px 32px; position: relative; overflow: hidden;
  transition: background .25s;
}
.card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.card:hover { background: var(--panel2); }
.card:hover::after { transform: scaleX(1); }

/* ══════════════════════════════
   SPEC TABLE
══════════════════════════════ */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 11px 16px; font-size: 13px; vertical-align: top; }
.spec-table td:first-child {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  color: var(--dim); text-transform: uppercase; white-space: nowrap; width: 38%;
}
.spec-table td:last-child { color: var(--text); }
.spec-table tr:nth-child(even) td { background: rgba(255,255,255,.015); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--black); border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .logo-brand { font-size: 14px; letter-spacing: 2px; }
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-head { font-family: var(--mono); font-size: 9px; letter-spacing: 3px; color: var(--dim); text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--mid); transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--dim); }
.footer-bottom a { color: var(--red); }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.gap-2 { gap: 2px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}



/* ═══════════════════════════════════════════
   THEME SWITCHER — 5 DESIGN CONCEPTS
   data-theme="[dark|industrial|editorial|tactical|magazine]"
═══════════════════════════════════════════ */

/* ── 1. COMMAND DARK (default) ── */
[data-theme="dark"] {
  --black:    #09090b;
  --dark:     #111214;
  --panel:    #17191e;
  --panel2:   #1c1e24;
  --border:   #24262d;
  --muted:    #3a3d46;
  --dim:      #6b7280;
  --mid:      #9ca3af;
  --text:     #e4e5e9;
  --white:    #f4f4f5;
  --red:      #e63329;
  --red-dim:  rgba(230,51,41,.10);
  --red-glow: rgba(230,51,41,.22);
  --acc:      #ff4a3d;
  --display:  'Bebas Neue', sans-serif;
  --sans:     'DM Sans', sans-serif;
  --mono:     'DM Mono', monospace;
}

/* ── 2. INDUSTRIAL SIDEBAR ── */
[data-theme="industrial"] {
  --black:    #f5f4f0;
  --dark:     #ffffff;
  --panel:    #f0ede8;
  --panel2:   #e8e5df;
  --border:   #d8d5cf;
  --muted:    #b0aca4;
  --dim:      #6b6860;
  --mid:      #4a4740;
  --text:     #1a1816;
  --white:    #111008;
  --red:      #cc2920;
  --red-dim:  rgba(204,41,32,.08);
  --red-glow: rgba(204,41,32,.18);
  --acc:      #e03020;
  --display:  'DM Sans', sans-serif;
  --sans:     'DM Sans', sans-serif;
  --mono:     'DM Mono', monospace;
}
[data-theme="industrial"] body::after { opacity: .12; }
[data-theme="industrial"] .hero-bg {
  background:
    radial-gradient(ellipse 65% 55% at 68% 38%, rgba(204,41,32,.05) 0%, transparent 65%),
    linear-gradient(155deg, #eeebe5 0%, #f5f4f0 55%, #f0ebe3 100%) !important;
}
[data-theme="industrial"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px) !important;
}
[data-theme="industrial"] .nav {
  background: rgba(255,255,255,.95) !important;
}
[data-theme="industrial"] ::-webkit-scrollbar-track { background: #f5f4f0; }
[data-theme="industrial"] .ticker { background: #1a1816; }
[data-theme="industrial"] .card { background: #fff; border-color: #ddd8d0; }
[data-theme="industrial"] .card:hover { background: #f8f6f2; }
[data-theme="industrial"] .section--dark { background: #eae7e1; }
[data-theme="industrial"] .section--darker { background: #e0ddd7; }
[data-theme="industrial"] .footer { background: #1a1816; border-top-color: #2a2825; }
[data-theme="industrial"] .footer-col a, 
[data-theme="industrial"] .footer-copy,
[data-theme="industrial"] .footer-col-head,
[data-theme="industrial"] .footer-bottom p { color: #888; }
[data-theme="industrial"] .footer-brand .logo-brand { color: #f0ede8; }

/* ── 3. EDITORIAL CLEAN ── */
[data-theme="editorial"] {
  --black:    #ffffff;
  --dark:     #fafaf8;
  --panel:    #f4f3f0;
  --panel2:   #eeede9;
  --border:   #e2e0da;
  --muted:    #c0bdb5;
  --dim:      #888580;
  --mid:      #555250;
  --text:     #1a1918;
  --white:    #0d0c0b;
  --red:      #d42920;
  --red-dim:  rgba(212,41,32,.07);
  --red-glow: rgba(212,41,32,.15);
  --acc:      #e83028;
  --display:  'DM Sans', sans-serif;
  --sans:     'DM Sans', sans-serif;
  --mono:     'DM Mono', monospace;
}
[data-theme="editorial"] .hero-h1 { letter-spacing: -1px; font-weight: 300; }
[data-theme="editorial"] body::after { display: none; }
[data-theme="editorial"] .hero-bg {
  background: linear-gradient(160deg, #f8f7f4 0%, #ffffff 60%, #fdf5f4 100%) !important;
}
[data-theme="editorial"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
}
[data-theme="editorial"] .nav { background: rgba(255,255,255,.97) !important; }
[data-theme="editorial"] .ticker { background: #1a1918; }
[data-theme="editorial"] .card { background: #fafaf8; border-color: #e2e0da; }
[data-theme="editorial"] .section--dark { background: #f2f1ed; }
[data-theme="editorial"] .section--darker { background: #e8e7e2; }
[data-theme="editorial"] .footer { background: #1a1918; border-top-color: #2a2927; }
[data-theme="editorial"] .footer-col a,
[data-theme="editorial"] .footer-copy,
[data-theme="editorial"] .footer-col-head,
[data-theme="editorial"] .footer-bottom p { color: #888; }
[data-theme="editorial"] .footer-brand .logo-brand { color: #f0ede8; }
[data-theme="editorial"] ::-webkit-scrollbar-track { background: #fff; }

/* ── 4. TACTICAL HUD ── */
[data-theme="tactical"] {
  --black:    #060d1a;
  --dark:     #091220;
  --panel:    #0d1a2e;
  --panel2:   #112236;
  --border:   #1a3048;
  --muted:    #2a4a68;
  --dim:      #4a7096;
  --mid:      #6a96b8;
  --text:     #c0d4e8;
  --white:    #e0ecf8;
  --red:      #4a9eff;
  --red-dim:  rgba(74,158,255,.10);
  --red-glow: rgba(74,158,255,.22);
  --acc:      #60aaff;
  --display:  'DM Mono', monospace;
  --sans:     'DM Mono', monospace;
  --mono:     'DM Mono', monospace;
}
[data-theme="tactical"] .hero-bg {
  background:
    radial-gradient(ellipse 65% 55% at 68% 38%, rgba(74,158,255,.08) 0%, transparent 65%),
    linear-gradient(155deg, #040a14 0%, #060d1a 55%, #060a12 100%) !important;
}
[data-theme="tactical"] .hero-grid {
  background-image:
    linear-gradient(rgba(74,158,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,255,.04) 1px, transparent 1px) !important;
}
[data-theme="tactical"] .nav { background: rgba(6,13,26,.97) !important; }
[data-theme="tactical"] .ticker { background: #091a30; border-top: 1px solid #1a3048; border-bottom: 1px solid #1a3048; }
[data-theme="tactical"] .ticker-item { color: rgba(74,158,255,.8); }
[data-theme="tactical"] .section-label { color: #4a9eff; }
[data-theme="tactical"] .section-label::before { background: #4a9eff; }
[data-theme="tactical"] ::-webkit-scrollbar-thumb { background: #4a9eff; }
[data-theme="tactical"] .hero-eyebrow { color: #4a9eff; }
[data-theme="tactical"] .hero-eyebrow::before { background: #4a9eff; }
[data-theme="tactical"] .pill { background: rgba(74,158,255,.1); border-color: rgba(74,158,255,.25); color: #4a9eff; }
[data-theme="tactical"] .btn-red { background: #4a9eff; clip-path: none; }
[data-theme="tactical"] .btn-red:hover { background: #60aaff; }
[data-theme="tactical"] .nav-cta { background: #4a9eff !important; clip-path: none !important; }
[data-theme="tactical"] .card::after { background: #4a9eff; }
[data-theme="tactical"] .logo-hex { background: #4a9eff; }
[data-theme="tactical"] .logo-sub { color: #4a9eff; }

/* ── 5. MAGAZINE SPLIT ── */
[data-theme="magazine"] {
  --black:    #0e0e10;
  --dark:     #141416;
  --panel:    #1a1a1e;
  --panel2:   #202024;
  --border:   #2a2a30;
  --muted:    #404048;
  --dim:      #60606a;
  --mid:      #90909a;
  --text:     #d8d8e0;
  --white:    #f0f0f8;
  --red:      #e63329;
  --red-dim:  rgba(230,51,41,.10);
  --red-glow: rgba(230,51,41,.22);
  --acc:      #ff4a3d;
  --display:  'Bebas Neue', sans-serif;
  --sans:     'DM Sans', sans-serif;
  --mono:     'DM Mono', monospace;
}
[data-theme="magazine"] .hero-bg {
  background:
    radial-gradient(ellipse 40% 80% at 12% 50%, rgba(230,51,41,.12) 0%, transparent 60%),
    linear-gradient(100deg, #0a0a0c 0%, #0e0e10 50%, #120808 100%) !important;
}
[data-theme="magazine"] .hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
}
[data-theme="magazine"] .hero-h1 { 
  font-size: clamp(60px, 9vw, 120px);
  border-left: 4px solid var(--red);
  padding-left: 24px;
}
[data-theme="magazine"] .section-title { border-left: 3px solid var(--red); padding-left: 16px; }
[data-theme="magazine"] .nav { background: rgba(14,14,16,.98) !important; border-bottom-color: #2a2a30 !important; }
[data-theme="magazine"] ::-webkit-scrollbar-track { background: #0e0e10; }
[data-theme="magazine"] .card { border-radius: 0; }
[data-theme="magazine"] .section--dark { background: #141416; }
[data-theme="magazine"] .section--darker { background: #111112; }
