*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'IBM Plex Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* ─── HERO (FF버전) ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-dim) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 0, 77, 0.07) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(224, 0, 77, 0.3);
  border-radius: 999px;
  background: var(--brand-dim);
  font-size: 12px;
  font-weight: 500;
  color: rgba(224, 0, 77, 0.9);
  margin-bottom: 32px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
  animation: fadeUp 0.6s ease both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.hero-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title .accent {
  color: var(--brand);
}
.hero-title .line2 {
  display: block;
  color: var(--text-secondary);
  font-weight: 300;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition:
    opacity 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 32px var(--brand-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  border-radius: 8px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
/* ─── STATS ─────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats--3col {
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 24px 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 45px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num .unit {
  color: var(--brand);
  font-size: 34px;
}
.stat-label {
  font-size: 18px;
  color: var(--text-muted);
}

/* ─── SECTIONS COMMON ─────────────────────────────────── */
section {
  padding: 110px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(224, 0, 77, 0.2);
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.accent {
  color: var(--brand);
}
.muted {
  color: var(--text-secondary);
}

/* ─── SERVICES ─────────────────────────────────── */
#services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 48px;
}
#services > .muted {
  font-size: 17px;
  line-height: 1.8;
  margin: 20px 0 44px;
  max-width: 760px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.service-card--full {
  grid-column: 1 / -1;
}
.service-card:hover {
  border-color: rgba(224, 0, 77, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.service-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.service-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.service-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.service-link {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── CLIENTS MARQUEE (FF버전) ─────────────────────────────────── */
#clients {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 48px;
}
.section-header {
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}
.clients-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.clients-track {
  display: flex;
  gap: 0;
  align-items: center;
  width: -moz-max-content;
  width: max-content;
  will-change: transform;
}
.client-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: opacity 0.2s;
  opacity: 0.85;
}
.client-chip:hover {
  opacity: 1;
}
.client-chip img {
  height: 38px;
  width: auto;
  max-width: 140px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  filter: none;
}
.client-chip img.logo-white {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ─── WHY NNT ─────────────────────────────────── */
#why {
  border-top: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.why-no {
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ─── CTA (FF버전) ─────────────────────────────────── */
#cta {
  border-top: 1px solid var(--border);
  max-width: 100%;
  padding: 0;
}
#cta .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-left .cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta-left .cta-title .accent {
  color: var(--brand);
}
.cta-left .cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}
.cta-right {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
/* ─── CTA CONTACT FORM OVERRIDE ─────────────────────────────────── */
#cta .cta-right.contact-form-wrap {
  background: rgba(17, 17, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: clamp(20px, 2.5vw, 34px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#cta .contact-form h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
#cta .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#cta .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#cta .contact-form input,
#cta .contact-form textarea,
#cta .contact-form .custom-select-trigger {
  width: 100%;
  background-color: #090909;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: var(--text);
  font-family: 'IBM Plex Sans KR', sans-serif;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
#cta .contact-form input,
#cta .contact-form .custom-select-trigger {
  height: 48px;
  padding: 0 14px;
}
#cta .contact-form textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
  line-height: 1.65;
}
#cta .contact-form input::-moz-placeholder, #cta .contact-form textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.28);
}
#cta .contact-form input::placeholder,
#cta .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
#cta .contact-form input:focus,
#cta .contact-form textarea:focus,
#cta .contact-form .custom-select.open .custom-select-trigger,
#cta .contact-form .custom-select-trigger:focus {
  border-color: rgba(224, 0, 77, 0.45);
  background-color: #0c0c0c;
}
#cta .contact-form button[type='submit'] {
  height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-family: 'IBM Plex Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(224, 0, 77, 0.22);
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
#cta .contact-form button[type='submit']:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(224, 0, 77, 0.32);
}
@media (max-width: 767px) {
  #cta .cta-right.contact-form-wrap {
    padding: 24px;
    border-radius: 16px;
  }
  #cta .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
/* ─── NNT SOLUTION (redesigned) ─────────────────────────────────── */
#solution {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 48px;
  border-top: 1px solid var(--border);
}
#solution > .muted {
  font-size: 16px;
  line-height: 1.8;
  margin: 16px 0 0;
  max-width: 1000px;
}

.sol-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.sol-item {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 260px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.sol-item:last-child {
  border-bottom: none;
}
.sol-item:hover {
  background: var(--bg-card2);
}
.sol-item:hover .sol-item-arrow {
  color: var(--brand);
  transform: translate(3px, -3px);
}
.sol-item:hover .sol-item-screen {
  transform: scale(1.02);
}

/* Left info panel */
.sol-item-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.sol-item-top {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sol-item-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.sol-item-logo-wrap {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.sol-item-logo {
  height: 30px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
.sol-item-logo-text {
  display: none; /* 기본 숨김 — img onerror 시 inline display:block로 노출 */
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 60%, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sol-item-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sol-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

.sol-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}
.sol-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sol-item-tag {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}
.sol-item-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition:
    color 0.2s,
    transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Right visual panel */
.sol-item-visual {
  position: relative;
  overflow: hidden;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 260px;
}
.sol-item-visual::after {
  display: none;
}
.sol-item-screen {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
  box-sizing: border-box;
  display: block;
  transition: transform 0.4s ease;
  opacity: 1;
}

@media (min-width: 1024px) {
  .sol-item[data-name='GRYYD'] .sol-item-screen {
    padding: 40px 56px;
  }
}

.sol-item-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.35) 0%, transparent 40%);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .sol-item {
    grid-template-columns: 1fr;
  }
  .sol-item-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sol-item-visual {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .sol-item-info {
    padding: 28px 24px;
  }
  .sol-item-visual {
    min-height: 200px;
  }
  .sol-list {
    border-radius: 14px;
  }
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1023px) {
  #cta .inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #cta .contact-form textarea {
    resize: none !important;
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  section,
  #services,
  #clients,
  #solution {
    padding: 72px 24px;
  }
  #cta .inner {
    padding: 72px 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 48px 24px;
  }
  .hero {
    padding: 100px 24px 72px;
  }
}
