@import url("./tokens.css?v=26");

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--p-blue);
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--p-blue);
  outline-offset: 3px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg-light);
  color: var(--ink-900);
  word-break: keep-all;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   1. Sticky Glassmorphism Header (header.site-nav)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hdr-h);
  background: rgba(27, 38, 44, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-200);
  transition: color 0.18s ease;
}

.nav-links a.is-active,
.nav-links a:hover {
  color: var(--p-ice);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: rgba(187, 225, 250, 0.1);
  border: 1px solid var(--glass-border-on-dark);
  font-size: 12px;
  font-weight: 700;
  color: var(--p-ice);
}

.nav-kmong-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: rgba(187, 225, 250, 0.12);
  border: 1px solid var(--glass-border-strong-dark);
  color: var(--p-ice);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-kmong-pill:hover {
  background: rgba(187, 225, 250, 0.24);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--p-blue);
  border: 1px solid rgba(187, 225, 250, 0.4);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta-pill:hover {
  background: var(--p-navy);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Hero Section (#1B262C · #0F4C75 · #3282B8 · #BBE1FA + 3D Circular Photos)
   ========================================================================== */
.hm-hero {
  position: relative;
  min-height: calc(100vh - var(--hdr-h));
  padding: 56px 0 88px;
  display: flex;
  align-items: center;
  background: var(--bg-hero-grad);
  color: var(--on-dark-100);
  overflow: hidden;
}

.hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 46%, rgba(50, 130, 184, 0.42) 0%, rgba(15, 76, 117, 0.18) 34%, transparent 64%),
    radial-gradient(circle at 18% 22%, rgba(15, 76, 117, 0.55) 0%, transparent 52%),
    radial-gradient(circle at 82% 24%, rgba(187, 225, 250, 0.2) 0%, transparent 38%);
  pointer-events: none;
}

.hm-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 36px;
}

.hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--p-ice);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hm-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--p-ice);
}

.hm-hero__en {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.hm-hero__en .text-accent {
  color: var(--p-ice);
}

.hm-hero__kr {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  color: var(--on-dark-200);
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.hm-hero__lede {
  margin-top: 24px;
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(220, 239, 251, 0.84);
  max-width: 540px;
}

.hm-hero__glass-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glass-tag {
  padding: 8px 16px;
  border-radius: var(--pill);
  background: rgba(187, 225, 250, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(187, 225, 250, 0.32);
  color: var(--p-ice);
  font-size: 13px;
  font-weight: 600;
}

/* Right Column: 3D Circular Rotating Photo Carousel */
.orbit-stage {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.orbit-scene {
  width: 100%;
  height: 390px;
  perspective: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orbit-halo {
  position: absolute;
  width: 480px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px dashed rgba(187, 225, 250, 0.36);
  background: radial-gradient(ellipse at center, rgba(50, 130, 184, 0.26) 0%, transparent 72%);
  transform: translateY(78px) rotateX(68deg);
  pointer-events: none;
}

.orbit-ring {
  width: 326px;
  height: 204px;
  position: relative;
  transform-style: preserve-3d;
}

.orbit-card {
  position: absolute;
  inset: 0;
  width: 326px;
  height: 204px;
  border-radius: var(--r3);
  padding: 8px;
  background: rgba(15, 76, 117, 0.44);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(187, 225, 250, 0.48);
  display: flex;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  will-change: transform, opacity;
  transition: border-color 0.25s ease;
}

.orbit-card:hover {
  border-color: #FFFFFF;
}

.orbit-card__screen {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(187, 225, 250, 0.22);
  background: var(--p-dark);
}

.orbit-card__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.hm-scroll-cue {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--p-ice);
}

.hm-scroll-cue::before {
  content: "";
  width: 1px;
  height: 30px;
  background: rgba(187, 225, 250, 0.45);
}

/* ==========================================================================
   3. Deep Ocean Navy Philosophy Band (#philosophy on #0F4C75 + Glass Cards)
   ========================================================================== */
.hm-principles {
  position: relative;
  background: var(--bg-philosophy-grad);
  color: #FFFFFF;
  padding: 92px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}

.hm-principles::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 38% 50%, rgba(50, 130, 184, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 86% 30%, rgba(187, 225, 250, 0.16) 0%, transparent 44%);
  pointer-events: none;
}

.hm-principles__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.hm-principles__h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.hm-principles__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-col {
  padding: 28px 26px;
  border-radius: var(--r3);
  background: rgba(27, 38, 44, 0.46);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-on-dark);
}

.principle-idx {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--p-ice);
  margin-bottom: 12px;
}

.principle-title {
  font-size: 23px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.principle-en {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--p-ice);
  opacity: 0.78;
  margin-bottom: 16px;
}

.principle-desc {
  font-size: 15px;
  line-height: 1.76;
  color: var(--on-dark-200);
}

/* ==========================================================================
   4. Development Areas Section (#products — Rotating Dotted Circle + Pentagon)
   ========================================================================== */
.a-part {
  position: relative;
  padding: 108px 0 116px;
  background: linear-gradient(180deg, #1B262C 0%, #0F4C75 52%, #1B262C 100%);
  color: #FFFFFF;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}

.a-part::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 54%, rgba(50, 130, 184, 0.36) 0%, rgba(15, 76, 117, 0.14) 38%, transparent 66%),
    radial-gradient(circle at 20% 25%, rgba(187, 225, 250, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.a-part > .wrap {
  position: relative;
  z-index: 2;
}

.a-part__header-center {
  text-align: center;
  margin-bottom: 52px;
}

.a-part__h2-light {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

/* Rotating Dotted Circle + Pentagon Orbit Stage */
.pentagon-orbit-wrap {
  position: relative;
  width: 560px;
  height: 560px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Dotted Circles & Inscribed Pentagon Geometry */
.pentagon-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Center Core Glass Hub */
.pentagon-center-core {
  position: relative;
  z-index: 3;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: rgba(15, 76, 117, 0.52);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid rgba(187, 225, 250, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
}

.core-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.2;
}

.core-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--p-ice);
  margin-top: 4px;
}

/* 5 Pentagon Vertex Nodes (Positioned dynamically along the Dotted Circle) */
.pentagon-nodes-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.pentagon-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 176px;
  padding: 15px 16px;
  border-radius: var(--r3);
  background: rgba(27, 38, 44, 0.66);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(187, 225, 250, 0.48);
  text-align: center;
  pointer-events: auto;
  will-change: transform;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.pentagon-node:hover {
  border-color: #FFFFFF;
  background: rgba(15, 76, 117, 0.78);
}

.pentagon-node__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-ice);
  margin-bottom: 7px;
}

.pentagon-node__title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

.pentagon-node__en {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--p-ice);
  opacity: 0.85;
  margin-top: 3px;
}

/* ==========================================================================
   5. Contact Section (#contact on Ice-Light + Frosted Glass Form Card)
   ========================================================================== */
.a-contact {
  position: relative;
  background: var(--bg-light);
  padding: 92px 0 100px;
  overflow: hidden;
}

.a-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(187, 225, 250, 0.65) 0%, transparent 50%);
  pointer-events: none;
}

.a-contact__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.a-contact__h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--p-dark);
}

.a-contact__h2 .text-blue {
  color: var(--p-blue);
}

.a-contact__divider {
  width: 100%;
  height: 1px;
  background: var(--line-light);
  margin: 36px 0 28px;
}

.a-contact__label {
  font-size: 14px;
  color: var(--ink-400);
  margin-bottom: 6px;
}

.a-contact__mail {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: var(--p-navy);
  border-bottom: 2px solid var(--p-navy);
  padding-bottom: 2px;
}

.a-contact__kmong-box {
  margin-top: 28px;
}

.a-contact__kmong-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--pill);
  background: var(--p-navy);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.a-contact__kmong-btn:hover {
  background: var(--p-blue);
  transform: translateY(-1px);
}

.a-form {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(50, 130, 184, 0.3);
  border-radius: var(--r4);
  padding: 36px;
}

.a-form__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
  margin-bottom: 22px;
}

.f-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--p-dark);
  margin-bottom: 8px;
}

.f-label .req {
  color: var(--p-blue);
}

.f-label .opt {
  font-weight: 500;
  color: var(--ink-400);
}

.f-input,
.f-textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r1);
  border: 1px solid rgba(50, 130, 184, 0.25);
  background: rgba(242, 248, 252, 0.85);
  color: var(--p-dark);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.f-input:focus,
.f-textarea:focus {
  outline: none;
  border-color: var(--p-blue);
  background: #FFFFFF;
}

.f-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.f-chip {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(50, 130, 184, 0.25);
  background: rgba(242, 248, 252, 0.85);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
  transition: all 0.16s ease;
}

.f-chip.is-active {
  background: var(--p-navy);
  border-color: var(--p-navy);
  color: #FFFFFF;
}

.a-form__foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.f-note {
  font-size: 12.5px;
  color: var(--ink-400);
}

.f-submit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--pill);
  border: 1px solid var(--p-navy);
  background: var(--p-navy);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.f-submit-pill:hover {
  background: var(--p-blue);
  border-color: var(--p-blue);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. Dark Slate Footer (IMSM Logo + Business Info Next to It + Bottom Line)
   ========================================================================== */
.site-foot {
  background: var(--p-dark);
  color: #FFFFFF;
  padding: 52px 0 38px;
  border-top: 1px solid var(--line-dark);
}

.f-main-row {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}

.f-brand-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  margin-top: 4px;
}

.f-biz-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 48px;
  font-size: 13.5px;
  color: var(--on-dark-200);
  line-height: 1.65;
}

.f-biz-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.f-biz-item.full-span {
  grid-column: 1 / -1;
}

.f-biz-label {
  color: rgba(187, 225, 250, 0.62);
  font-weight: 500;
}

.f-biz-val {
  color: #FFFFFF;
  font-weight: 600;
}

.f-bot {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(187, 225, 250, 0.72);
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hm-hero__grid,
  .hm-principles__grid,
  .a-contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hm-principles__cols {
    grid-template-columns: 1fr;
  }
}

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

  .a-form__grid-2,
  .f-biz-grid {
    grid-template-columns: 1fr;
  }

  .f-main-row {
    flex-direction: column;
    gap: 24px;
  }

  .pentagon-orbit-wrap {
    width: 340px;
    height: 340px;
  }

  .pentagon-node {
    width: 136px;
    padding: 10px 12px;
  }

  .pentagon-node__title {
    font-size: 13px;
  }
}
