/* JUNJINSOFT — Global styles */

:root {
  --navy: #0b1533;
  --navy-2: #1b2a4a;
  --ink: #06070d;
  --ink-2: #0d0f1a;
  --ink-3: #14172a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --grad-a: #6366f1; /* indigo */
  --grad-b: #8b5cf6; /* purple */
  --grad-c: #ec4899; /* pink */
  --grad-d: #06b6d4; /* cyan */
  --grad-e: #22d3ee; /* light cyan */

  --brand-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #ec4899 100%);
  --aurora: radial-gradient(1200px 600px at 20% 10%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(1000px 500px at 80% 20%, rgba(236, 72, 153, 0.3), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(6, 182, 212, 0.28), transparent 60%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont,
    'SF Pro Display', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', 'Apple SD Gothic Neo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

body {
  background: var(--ink);
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0b12; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #ec4899);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8b5cf6, #f472b6); }

/* Typography */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; line-height: 1.6; color: var(--text-2); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.grad-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #d8b4fe 30%, #f9a8d4 60%, #67e8f9 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 8s ease-in-out infinite;
}

.grad-solid {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Header */
.jj-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(0px);
}
.jj-header.scrolled {
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px 40px;
}
.jj-header .logo-img { height: 30px; filter: brightness(0) invert(1); opacity: .95; }
.jj-header nav ul {
  display: flex; list-style: none; gap: 32px; margin: 0; padding: 0;
}
.jj-header nav a {
  font-size: 14px; color: rgba(255,255,255,0.72);
  transition: color .2s;
  padding: 6px 0;
  position: relative;
}
.jj-header nav a:hover { color: #fff; }
.jj-header nav a::after {
  content: '';
  position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand-grad);
  transition: all .3s;
  transform: translateX(-50%);
}
.jj-header nav a:hover::after { width: 100%; }
.jj-lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  border-radius: 999px; font-size: 12px;
}
.jj-lang button {
  border: 0; background: transparent; color: rgba(255,255,255,0.6);
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font-weight: 600; letter-spacing: 0.02em;
}
.jj-lang button.active {
  background: var(--brand-grad); color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
}
.hero-aurora {
  position: absolute; inset: -20%; z-index: 1;
  background: var(--aurora);
  filter: blur(30px);
  animation: auroraShift 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes auroraShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-3%, 2%) rotate(2deg); }
  66% { transform: translate(2%, -1%) rotate(-2deg); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .25;
  mix-blend-mode: screen;
}
.hero-content {
  position: relative; z-index: 5;
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399, 0 0 24px #34d399;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.hero h1 {
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  margin: 0 auto 40px;
  white-space: pre-line;
  line-height: 1.5;
}
.hero-cta {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.btn {
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: var(--brand-grad);
  color: white;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(139, 92, 246, 0.55), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Stats bar */
.hero-stats {
  position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 60px;
  margin-top: 80px;
  padding: 0 20px;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Cursor blink */
.type-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: currentColor;
  margin-left: 6px;
  vertical-align: -0.05em;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Sections */
section.jj {
  position: relative;
  padding: 140px 40px;
  z-index: 2;
}
.jj-container { max-width: 1280px; margin: 0 auto; }
.jj-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: transparent;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 20px;
}
.jj-h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: pre-line;
  margin-bottom: 24px;
  line-height: 1.05;
}
.jj-lede {
  font-size: clamp(16px, 1.3vw, 20px);
  color: rgba(255,255,255,0.7);
  max-width: 720px;
  line-height: 1.55;
}

/* About */
.about-values {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.value-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.15), transparent 40%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.value-card:hover::before { opacity: 1; }
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
}
.value-num {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}
.value-title {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 0 12px;
}
.value-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* Services — Apple-style scroll story */
.svc-hero {
  text-align: center;
  margin-bottom: 100px;
}
.svc-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.svc-item:first-child { border-top: 0; }
.svc-item.reverse .svc-visual { order: 2; }
.svc-item.reverse .svc-text { order: 1; }

.svc-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 20px;
}
.svc-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.svc-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 32px;
}
.svc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.svc-bullets li {
  font-size: 15px;
  color: rgba(255,255,255,1);
  padding-left: 24px;
  position: relative;
  padding-top : 4px;
  font-weight:bold;
}
.svc-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.svc-visual {
  aspect-ratio: 4/3;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.35), transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.3), transparent 60%),
              #0d0f1a;
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.svc-visual:hover { transform: translateY(-4px); }
.svc-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.cert-card {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.cert-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}
.cert-num {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  font-weight: 600;
}
.cert-t {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0 10px;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cert-d {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}
.cert-badge {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  opacity: .3;
  transition: opacity .3s;
}
.cert-card:hover .cert-badge { opacity: 1; }

/* Marquee */
.marquee {
  overflow: hidden;
  margin-top: 60px;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  padding: 24px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  min-width: 200px;
  text-align: center;
  letter-spacing: -0.01em;
  transition: all .3s;
}
.marquee-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 30px)); }
}

/* History timeline */
.timeline {
  margin-top: 80px;
  position: relative;
  display: grid;
  gap: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 100px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-c), var(--grad-d));
  opacity: .5;
}
.tl-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 92px; top: 30px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.6), 0 0 0 4px var(--ink);
  z-index: 2;
}
.tl-year {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tl-body {
  padding: 14px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.tl-body ul { margin: 0; padding-left: 20px; }
.tl-body li {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  padding: 6px 0;
  line-height: 1.5;
}

/* Contact */
.contact-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  padding: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute; inset: -50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 40%);
  animation: rotate 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.contact-form > * { position: relative; z-index: 1; }
@keyframes rotate { to { transform: rotate(360deg); } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
  font-family: inherit;
}
.chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.chip.active {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--brand-grad);
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all .2s;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(139, 92, 246, 0.5); }

.contact-info {
  padding: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid; gap: 24px;
}
.info-item .k {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.info-item .v {
  font-size: 17px;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}

/* Footer */
.jj-footer {
  padding: 80px 40px 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, #05060a 100%);
  text-align: center;
}
.jj-footer .logo-img { height: 36px; filter: brightness(0) invert(1); opacity: .8; margin-bottom: 20px; }
.jj-footer .slogan {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.jj-footer .cop {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .jj-header { padding: 14px 20px; }
  .jj-header nav { display: none; }
  section.jj { padding: 80px 20px; }
  .about-values { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .svc-item.reverse .svc-visual { order: 0; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 20px; }
  .tl-item::before { left: 12px; }
  .tl-year { font-size: 24px; }
  .hero-stats { gap: 30px; margin-top: 60px; }
}

/* Mockup helpers */
.mockup-frame {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}

/* ============================================================
   AX Section — About 뒤에 위치, 다크 스토리 스타일
   ============================================================ */
.ax-section {
  position: relative;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 50% 100%, rgba(236,72,153,0.08), transparent 65%);
}
.ax-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 900px 500px at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 900px 500px at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}
.ax-section > .jj-container { position: relative; z-index: 1; }

.ax-hero { text-align: center; max-width: 860px; margin: 0 auto 60px; }
.ax-hero .jj-h2 { margin: 0 auto 20px; white-space: pre-line; }
.ax-hero .jj-lede { margin: 0 auto; }

/* Section sub-header (Four Pillars / Pipeline / Why us 라벨) */
.ax-pillars-header,
.ax-pipeline-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 28px;
}
.ax-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99,102,241,0.25), rgba(236,72,153,0.18));
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}
.ax-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
}

/* ---------- Four Pillar cards ---------- */
.ax-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 100px;
}
.ax-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, background .35s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.ax-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,0.14), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.ax-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), rgba(236,72,153,0.6), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.ax-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.ax-card:hover::before,
.ax-card:hover::after { opacity: 1; }

.ax-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ax-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, #a5b4fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ax-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}
.ax-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.ax-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0 0 16px;
  flex: 1;
}
.ax-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ax-tag-chip {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Pipeline ---------- */
.ax-pipeline-block { margin-bottom: 100px; }
.ax-pipeline-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.ax-pipeline-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0 0 48px;
  max-width: 640px;
}
.ax-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 40px 0 20px;
}
.ax-pipeline-track {
  position: absolute;
  top: 74px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(139,92,246,0.5) 15%,
    rgba(236,72,153,0.5) 50%,
    rgba(6,182,212,0.5) 85%,
    transparent);
  z-index: 0;
}
.ax-step {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 6px;
}
.ax-step-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow:
    0 8px 24px rgba(139,92,246,0.45),
    inset 0 0 0 4px rgba(10,11,22,0.9),
    inset 0 0 0 5px rgba(255,255,255,0.15);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.ax-step:hover .ax-step-dot {
  transform: scale(1.08);
  box-shadow:
    0 12px 32px rgba(139,92,246,0.6),
    inset 0 0 0 4px rgba(10,11,22,0.9),
    inset 0 0 0 5px rgba(255,255,255,0.2);
}
.ax-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ax-step-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
}

/* ---------- Why us ---------- */
.ax-diffs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ax-diff {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color .3s ease, background .3s ease;
}
.ax-diff:hover {
  border-color: rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.ax-diff-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  box-shadow: 0 4px 14px rgba(139,92,246,0.4);
}
.ax-diff-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.ax-diff-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ax-pillars { grid-template-columns: repeat(2, 1fr); }
  .ax-pipeline { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .ax-pipeline-track { top: 62px; }
  .ax-step-dot { width: 52px; height: 52px; font-size: 14px; }
  .ax-step-title { font-size: 13.5px; }
  .ax-step-desc { font-size: 11.5px; }
}
@media (max-width: 720px) {
  .ax-pillars { grid-template-columns: 1fr; }
  .ax-diffs { grid-template-columns: 1fr; }
  .ax-pipeline {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 0 10px;
  }
  .ax-pipeline-track {
    top: 4%;
    bottom: 4%;
    left: calc(50% - 1px);
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      transparent,
      rgba(139,92,246,0.5) 15%,
      rgba(236,72,153,0.5) 50%,
      rgba(6,182,212,0.5) 85%,
      transparent);
  }
  .ax-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    text-align: left;
    align-items: center;
  }
  .ax-step-dot { margin: 0; }
  .ax-step > div:not(.ax-step-dot) { grid-column: 2; }
}

/* Realistic photo container */
.mock-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 3/2;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.mock-photo-wrap:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.mock-photo {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: mockPhotoIn .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes mockPhotoIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
.mock-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
.mock-glow-a {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 60%);
  left: -60px; top: -60px;
  animation: floatA 8s ease-in-out infinite;
}
.mock-glow-b {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4), transparent 60%);
  right: -60px; bottom: -60px;
  animation: floatB 10s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 15px); }
}

/* Utility — opt-in hidden pattern (safer: default visible, hide only when JS marks it) */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.fade-up.pre {
  opacity: 0;
  transform: translateY(30px);
}
.fade-up[data-delay="1"] { transition-delay: .1s; }
.fade-up[data-delay="2"] { transition-delay: .2s; }
.fade-up[data-delay="3"] { transition-delay: .3s; }
.fade-up[data-delay="4"] { transition-delay: .4s; }


/* ============================================================
   LIGHT THEME OVERRIDE — 화이트 배경 라이트 테마
   브랜드 그라디언트(인디고→핑크)는 유지, 배경/텍스트/보더/카드만 화이트 톤으로 재조정
   ============================================================ */
:root {
  --lt-bg:        #ffffff;
  --lt-bg-2:      #f7f7fa;
  --lt-bg-3:      #f0f1f5;
  --lt-text:      #0b0d1a;
  --lt-text-2:    #52556b;
  --lt-text-3:    #8a8d9f;
  --lt-line:      rgba(11, 13, 26, 0.08);
  --lt-line-2:    rgba(11, 13, 26, 0.14);
  --lt-card-bg:   #ffffff;
  --lt-card-bg-2: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

html, body {
  background: var(--lt-bg);
  color: var(--lt-text);
}
body { background: var(--lt-bg); }

::selection { background: rgba(139, 92, 246, 0.22); color: var(--lt-text); }

/* Scrollbar */
::-webkit-scrollbar-track { background: var(--lt-bg-2); }

p { color: var(--lt-text-2); }

/* ---------- Header ---------- */
.jj-header .logo-img { filter: none; opacity: 1; }
.jj-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--lt-line);
}
.jj-header nav a { color: rgba(11, 13, 26, 0.7); }
.jj-header nav a:hover { color: var(--lt-text); }
.jj-lang {
  background: var(--lt-bg-2);
  border-color: var(--lt-line);
}
.jj-lang button { color: rgba(11, 13, 26, 0.6); }
.jj-lang button.active { color: #fff; }

/* ---------- Hero ---------- */
.hero-bg { background: var(--lt-bg); }
.hero-video {
  opacity: .14;
  mix-blend-mode: multiply;
  filter: saturate(1.1);
}
.hero-aurora {
  /* 라이트 톤 오로라 */
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 80% 20%, rgba(236, 72, 153, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(6, 182, 212, 0.12), transparent 60%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(11,13,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,13,26,0.05) 1px, transparent 1px);
}
.hero-badge {
  background: rgba(255,255,255,0.7);
  border-color: var(--lt-line-2);
  color: rgba(11, 13, 26, 0.75);
  box-shadow: 0 4px 16px rgba(11, 13, 26, 0.06);
}
.hero-title-ink { color: var(--lt-text); }
.hero-sub { color: rgba(11, 13, 26, 0.65); }
.stat-lbl { color: rgba(11, 13, 26, 0.55); }
.btn-ghost {
  background: rgba(11, 13, 26, 0.04);
  color: var(--lt-text);
  border: 1px solid var(--lt-line-2);
}
.btn-ghost:hover { background: rgba(11, 13, 26, 0.08); }

/* Three.js hero canvas가 너무 진하지 않게 */
.hero canvas { opacity: 0.55; mix-blend-mode: multiply; }

/* ---------- Section text tokens ---------- */
.jj-lede { color: #000; }

/* Typewriter 라인 색상 */
.hero-typewriter-line { color: rgba(11, 13, 26, 0.85); }
.jj-footer-nav { color: rgba(11, 13, 26, 0.55); }
.jj-footer-nav a { color: rgba(11, 13, 26, 0.55); }

/* ---------- About ---------- */
.value-card {
  background: var(--lt-card-bg-2);
  border-color: var(--lt-line);
  box-shadow: 0 1px 2px rgba(11, 13, 26, 0.04);
}
.value-card::before {
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.10), transparent 40%);
}
.value-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}
.value-desc { color: rgba(11, 13, 26, 0.62); }

/* ---------- AX Section ---------- */
.ax-section {
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(99,102,241,0.06), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 50% 100%, rgba(236,72,153,0.05), transparent 65%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}
.ax-section::before {
  background-image:
    linear-gradient(rgba(11,13,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,13,26,0.05) 1px, transparent 1px);
  opacity: 0.5;
}
.ax-tag {
  color: var(--lt-text);
  background: linear-gradient(90deg, rgba(99,102,241,0.14), rgba(236,72,153,0.10));
  border-color: rgba(139, 92, 246, 0.28);
}
.ax-line { background: linear-gradient(90deg, rgba(11,13,26,0.15), transparent); }

.ax-card {
  background: var(--lt-card-bg-2);
  border-color: var(--lt-line);
  box-shadow: 0 1px 2px rgba(11, 13, 26, 0.03);
}
.ax-card::before {
  background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,0.10), transparent 60%);
}
.ax-card:hover {
  border-color: rgba(139, 92, 246, 0.30);
  background: linear-gradient(180deg, #ffffff, #f6f7ff);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}
.ax-badge {
  color: var(--lt-text);
  background: rgba(11, 13, 26, 0.05);
  border-color: var(--lt-line-2);
}
.ax-card-title { color: var(--lt-text); }
.ax-card-desc { color: rgba(11, 13, 26, 0.65); }
.ax-tag-chip {
  color: rgba(11, 13, 26, 0.7);
  background: rgba(11, 13, 26, 0.04);
  border-color: var(--lt-line);
}

.ax-pipeline-desc { color: rgba(11, 13, 26, 0.6); }
.ax-step-dot {
  box-shadow:
    0 8px 24px rgba(139,92,246,0.35),
    inset 0 0 0 4px #ffffff,
    inset 0 0 0 5px rgba(11, 13, 26, 0.08);
}
.ax-step-title { color: var(--lt-text); }
.ax-step-desc { color: rgba(11, 13, 26, 0.55); }

.ax-diff {
  background: var(--lt-card-bg-2);
  border-color: var(--lt-line);
}
.ax-diff:hover {
  border-color: rgba(139, 92, 246, 0.30);
  background: linear-gradient(180deg, #ffffff, #f6f7ff);
}
.ax-diff-title { color: var(--lt-text); }
.ax-diff-desc { color: rgba(11, 13, 26, 0.6); }

/* ---------- Services ---------- */
.svc-item { border-top-color: var(--lt-line); }
.svc-tag { color: rgba(11, 13, 26, 0.5); }
.svc-desc { color: rgba(11, 13, 26, 0.65); }
.svc-bullets li { color: rgba(11, 13, 26, 0.85); }
.svc-visual {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.12), transparent 60%),
    #f7f7fa;
  border-color: var(--lt-line);
}
.svc-visual::before {
  background-image:
    linear-gradient(rgba(11,13,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,13,26,0.04) 1px, transparent 1px);
}

/* Mockup photo — 라이트 배경에 맞게 그림자 부드럽게 */
.mock-photo-wrap {
  border-color: var(--lt-line);
  box-shadow:
    0 30px 60px rgba(11, 13, 26, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.mock-glow-a { background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 60%); }
.mock-glow-b { background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 60%); }

/* ---------- Certifications ---------- */
.cert-card {
  background: var(--lt-card-bg-2);
  border-color: var(--lt-line);
  box-shadow: 0 1px 2px rgba(11, 13, 26, 0.03);
}
.cert-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}
.cert-num { color: rgba(11, 13, 26, 0.4); }
.cert-t {
  background: linear-gradient(135deg, #0b0d1a, #6366f1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cert-d { color: rgba(11, 13, 26, 0.62); }

/* ---------- Partners marquee ---------- */
.marquee {
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-item {
  background: #ffffff;
  border-color: var(--lt-line);
  color: rgba(11, 13, 26, 0.85);
  box-shadow: 0 1px 2px rgba(11, 13, 26, 0.03);
}
.marquee-item:hover {
  background: #f6f7ff;
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--lt-text);
}

/* ---------- History timeline ---------- */
.timeline::before {
  opacity: 0.7;
}
.tl-item::before {
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35), 0 0 0 4px #ffffff;
}
.tl-body {
  background: var(--lt-card-bg-2);
  border-color: var(--lt-line);
  box-shadow: 0 1px 2px rgba(11, 13, 26, 0.03);
}
.tl-body li { color: rgba(11, 13, 26, 0.78); }

/* ---------- Contact ---------- */
.contact-form {
  background: var(--lt-card-bg-2);
  border-color: var(--lt-line);
  box-shadow: 0 4px 24px rgba(11, 13, 26, 0.05);
}
.contact-form::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 40%);
}
.form-field label { color: #000; }
.form-field input,
.form-field select,
.form-field textarea {
  background: #ffffff;
  border-color: var(--lt-line-2);
  color: var(--lt-text);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(11, 13, 26, 0.35); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.10);
}
.chip {
  background: #ffffff;
  border-color: var(--lt-line-2);
  color: rgba(11, 13, 26, 0.7);
}
.chip.active { color: #fff; }

.contact-info {
  background: var(--lt-card-bg-2);
  border-color: var(--lt-line);
  box-shadow: 0 1px 2px rgba(11, 13, 26, 0.03);
}
.info-item .k { color: rgba(11, 13, 26, 0.5); }
.info-item .v { color: var(--lt-text); }

/* Contact 하단 미니맵 (인라인 스타일로 다크 배경 지정된 부분 오버라이드) */
.contact-info > div[style*="linear-gradient(135deg, #0f1128, #0a0b13)"] {
  background:
    radial-gradient(ellipse at center, rgba(99,102,241,0.18), transparent 70%),
    linear-gradient(135deg, #f6f7ff, #eef0ff) !important;
  border-color: var(--lt-line) !important;
}

/* ---------- Footer ---------- */
.jj-footer {
  border-top-color: var(--lt-line);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
}
.jj-footer .logo-img { filter: none; opacity: 1; }
.jj-footer .slogan {
  background: linear-gradient(135deg, #0b0d1a, #6366f1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.jj-footer .cop { color: rgba(11, 13, 26, 0.4); }
.jj-footer a { color: rgba(11, 13, 26, 0.55); }

/* ---------- Grad text — 라이트 배경에서 대비 확보 ---------- */
.grad-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #ec4899 60%, #06b6d4 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
