:root {
  --primary: #0a1628;
  --accent: #1a6fe8;
  --accent2: #00c8ff;
  --brand-pink: #d86ecc;
  --text: #e8edf5;
  --muted: #7a8ba8;
  --surface: #0f2040;
  --border: rgba(26,111,232,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { -webkit-user-drag: none; user-drag: none; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5%, calc((100% - 1400px) / 2));
  height: 68px;
  background: rgba(10,22,40,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, transform .3s;
}
nav.nav-hidden { transform: translateY(-100%); }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-pink);
  white-space: nowrap;
}
.nav-logo .logo-mark { fill: var(--brand-pink); flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent2); }
.nav-links a.active {
  color: #d6eeff;
  text-shadow: 0 0 8px rgba(140,210,255,1.0), 0 0 20px rgba(80,170,255,0.7);
}
.nav-right { margin-left: 1rem; display: inline-flex; align-items: center; gap: 1rem; }
.lang-slider {
  position: relative;
  display: inline-flex;
  background: rgba(30,143,255,0.12);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}
.lang-slide-option {
  position: relative; z-index: 1;
  border: none; background: transparent; color: #7A90B8;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 6px; cursor: pointer;
  transition: color 0.25s; white-space: nowrap;
}
.lang-slide-option.active { color: #fff; }
.lang-slide-thumb {
  position: absolute; top: 2px; left: 2px;
  height: calc(100% - 4px);
  border-radius: 6px;
  background: linear-gradient(135deg, #1E8FFF 0%, #0044CC 100%);
  transition: left 0.25s ease, width 0.25s ease;
  pointer-events: none;
}
.mobile-only { display: none; }
.nav-lang-item { padding-top: 8px; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px max(5%, calc((100% - 1400px) / 2)) 80px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26,111,232,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 70%, rgba(0,200,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
@keyframes hero-visual-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 14px)); }
}
.hero-graphic {
  position: absolute;
  right: max(4%, calc((100% - 1400px) / 2 + 2%));
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  width: 320px;
  max-width: 30vw;
  animation: hero-visual-float 6s ease-in-out infinite;
}
.hero-graphic::before {
  content: '';
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(26,111,232,0.35) 0%, transparent 70%);
  z-index: -1;
}
.hero-graphic img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 50px rgba(0,200,255,0.18);
}
.hero-badge {
  display: inline-block;
  background: rgba(26,111,232,0.15);
  border: 1px solid rgba(26,111,232,0.4);
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
#hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.3;
  max-width: 750px;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
#hero h1 .blue { color: var(--accent2); }
#hero > p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.6rem;
  position: relative;
  z-index: 1;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #1460cc; transform: translateY(-2px); }
.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 3.5rem;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
  max-width: 220px;
}

/* ─── SECTION COMMON ─── */
section { padding: 100px max(5%, calc((100% - 1400px) / 2)); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 1000px;
  margin-bottom: 3.5rem;
}

/* ─── ABOUT ─── */
#about { background: var(--surface); }
.about-intro { margin-bottom: 3.5rem; }
.about-intro .hero-badge { margin-bottom: 1.4rem; }
.about-heading {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.about-heading .blue { color: var(--accent2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.value-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(26,111,232,0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.value-card:hover { border-color: var(--accent2); transform: translateY(-3px); }
.value-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(26,111,232,0.2);
  color: var(--accent2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.2rem;
}
.value-icon svg { width: 18px; height: 18px; }
.value-en { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent2); }
.value-kr { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.company-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.company-info-table tr { border-bottom: 1px solid var(--border); }
.company-info-table td { padding: 12px 4px; font-size: 0.92rem; }
.company-info-table td:first-child { color: var(--muted); width: 110px; font-weight: 600; }
.mission-card {
  background: rgba(26,111,232,0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  margin-top: 1.5rem;
}
.mission-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--accent2); margin-bottom: 0.7rem; }
.mission-card p { font-size: 0.95rem; color: var(--text); margin-bottom: 1.3rem; }
.mission-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mission-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(0,200,255,0.1);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ─── BUSINESS AREAS ─── */
#business { background: var(--primary); }
.business-diagram {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  margin-bottom: 2.5rem;
  transition: border-color 0.2s;
}
.business-diagram:hover { border-color: var(--accent2); }
.business-diagram img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}
.business-diagram:hover img { transform: scale(1.015); }
.business-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.business-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(10,22,40,0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.business-card:hover { border-color: var(--accent2); transform: translateY(-3px); }
.business-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(26,111,232,0.2);
  color: var(--accent2);
  display: flex; align-items: center; justify-content: center;
}
.business-icon svg { width: 20px; height: 20px; }
.business-card p { font-size: 0.9rem; color: var(--text); }

/* ─── SOLUTIONS ─── */
#solutions { background: var(--surface); }
.solutions-heading { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.solutions-heading .center-badge { display: inline-block; }
.center-heading { text-align: center; }
.sol-icon {
  width: 56px; height: 56px;
  margin-bottom: 1.2rem;
}
.sol-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 2rem; }
.sol-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.sol-card:hover { border-color: var(--accent2); transform: translateY(-5px); }
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.sol-card-body { padding: 2rem 2rem 1.4rem; flex: 1; }
.sol-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent2);
  background: rgba(0,200,255,0.1);
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 0.9rem;
}
.sol-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.9rem; line-height: 1.35; }
.sol-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.sol-features { display: flex; flex-direction: column; gap: 0.4rem; }
.sol-features li { list-style: none; font-size: 0.85rem; color: var(--muted); }
.sol-features li::before { content: '✓  '; color: var(--accent2); font-weight: 700; }
.sol-diagram {
  margin-top: auto;
  border-top: 1px solid var(--border);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--primary);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-diagram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}
.sol-diagram:hover img { transform: scale(1.03); }

/* ─── PARTNERS ─── */
#partners { background: var(--primary); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}
.partner-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  height: 120px;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
}
.partner-card:hover { border-color: var(--accent2); transform: translateY(-3px); }
.partner-card img {
  width: 100%;
  height: 40px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(30%);
  transition: filter 0.2s;
}
.partner-card:hover img { filter: grayscale(0%); }
.partner-card span {
  width: 100%;
  margin-top: auto;
  font-size: 0.86rem;
  color: #3a4a5e;
  text-align: center;
  line-height: 1.3;
}
.partner-card.text-only span.name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a3358;
  margin: auto 0 0.3rem;
}
.partner-card.text-only span.sub {
  font-size: 0.76rem;
  color: #7a8ba8;
  margin-top: 0;
}

/* ─── TEAM ─── */
#team { background: var(--surface); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.team-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--primary);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover { border-color: var(--accent2); transform: translateY(-5px); }
.team-photo { position: relative; height: 260px; background: var(--surface); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.team-role-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; color: #fff; letter-spacing: 0.05em;
}
.team-body { padding: 1.6rem 1.8rem; }
.team-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.team-role-en { font-size: 0.8rem; color: var(--accent2); font-weight: 600; margin-bottom: 0.9rem; letter-spacing: 0.03em; }
.team-bio { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.team-caps { display: flex; flex-direction: column; gap: 0.5rem; }
.team-cap { background: rgba(26,111,232,0.08); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.9rem; }
.team-cap-title { font-size: 0.7rem; font-weight: 700; color: var(--accent2); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.25rem; }
.team-cap-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ─── CONTACT ─── */
#contact {
  background: linear-gradient(135deg, #0a1f3d 0%, #0f2040 50%, #0a2850 100%);
  text-align: center;
  border-top: 1px solid var(--border);
}
#contact .section-title { color: #fff; }
#contact .section-desc { margin: 0 auto 2.5rem; }
.contact-details { display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; flex-wrap: wrap; }
.contact-item .label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.3rem; }
.contact-item .value { font-size: 1rem; font-weight: 700; }
.contact-item a { color: var(--accent2); text-decoration: none; }

/* ─── FOOTER ─── */
footer {
  background: #05101f;
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
  color: var(--muted);
}
footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-pink);
  margin-right: 1rem;
  vertical-align: middle;
}
footer .footer-logo .logo-mark { fill: var(--brand-pink); flex-shrink: 0; }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,16,31,0.96);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  cursor: zoom-out;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  background: transparent;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .business-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-right .lang-slider { display: none; }
  .mobile-only { display: block; }
  .nav-links li { display: block; }
  .nav-links li a { display: block; padding: 10px 0; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.8rem; }
  .solutions-grid { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
}

/* Scroll fade-in */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: none; }

#top-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,111,232,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .2s;
}
#top-btn.show { opacity: 1; pointer-events: auto; }
#top-btn:hover { transform: translateY(-3px); }
