/* CSS 변수 및 기본 설정 */
:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
}

body {
  background-color: #f8fafc;
  color: #0a0f1a;
  overflow-x: hidden;
}

/* 텍스트 그라데이션 */
.text-gradient {
  background: linear-gradient(135deg, #2563eb, #20d6a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism 유틸리티 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

/* 스크롤 애니메이션 상태 클래스 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 사용자 정의 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 모달 전환 효과 */
#modal {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
#modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content-transition {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}
#modal.hidden .modal-content-transition {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
}
#modal:not(.hidden) .modal-content-transition {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 노이즈 텍스처 (프리미엄 퀄리티 디테일) */
.noise-bg {
  position: relative;
}
.noise-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Imported portfolio section — tuned to the clean first-design system */
.bento-card {
  border-radius: 28px;
  box-shadow: var(
    --bento-shadow,
    0 4px 24px -4px rgba(0, 0, 0, 0.03),
    0 1px 4px rgba(0, 0, 0, 0.02)
  );
  border: 1px solid rgba(226, 232, 240, 0.72);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.16);
}
.portfolio-section .container {
  max-width: 80rem;
  margin: 0 auto;
}
.portfolio-section .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.portfolio-section .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.portfolio-section .eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #20d6a8);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}
.portfolio-section .section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #0a0f1a;
  margin: 0;
}
.portfolio-section .highlight {
  background: linear-gradient(135deg, #2563eb, #20d6a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.portfolio-section .section-copy {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
  max-width: 38rem;
  margin-top: 1rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}
.filter-btn-ref {
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 850;
  transition: all 0.25s ease;
  backdrop-filter: blur(14px);
}
.filter-btn-ref:hover,
.filter-btn-ref.active {
  background: #0a0f1a;
  color: #fff;
  border-color: #0a0f1a;
  box-shadow: 0 12px 28px -18px rgba(10, 15, 26, 0.7);
}
.project-loading {
  display: none;
  margin: -1rem 0 2rem;
  padding: 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}
.project-loading.is-active {
  display: block;
}
.loading-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #0a0f1a;
  font-size: 0.95rem;
}
.loading-head span {
  color: #2563eb;
  font-weight: 900;
}
.loading-track {
  height: 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.loading-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #20d6a8);
  transition: width 0.25s ease;
}
.loading-skeletons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.loading-skeletons i {
  height: 5.5rem;
  border-radius: 18px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 200% 100%;
  animation: skeletonMove 1.1s infinite linear;
}
@keyframes skeletonMove {
  to {
    background-position: -200% 0;
  }
}
#apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.app-card-ref {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow:
    0 4px 24px -4px rgba(0, 0, 0, 0.035),
    0 1px 4px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.25s ease;
  overflow: hidden;
}
.app-card-ref:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.18);
  border-color: rgba(37, 99, 235, 0.22);
}
.app-card-ref.is-hidden {
  display: none;
}
.badge-ios {
  background: linear-gradient(135deg, #0f172a, #475569);
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Imported detailed modal — preserves second HTML structure with first-design glass styling */
.uq-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 15, 26, 0.48);
  backdrop-filter: blur(14px);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.uq-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.uq-modal-card {
  width: min(1120px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 36px 90px -30px rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transform: scale(1);
  opacity: 1;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease;
}
.uq-modal.hidden .uq-modal-card,
.uq-modal-card.scale-95 {
  transform: scale(0.96) translateY(18px);
  opacity: 0;
}
.uq-modal-hero {
  position: relative;
  height: 270px;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
  overflow: hidden;
}
.uq-modal-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uq-modal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0.08),
    rgba(10, 15, 26, 0.72)
  );
}
.uq-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0a0f1a;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}
.uq-modal-close:hover {
  transform: rotate(90deg);
  background: #fff;
}
.uq-modal-title-block {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.25rem);
  right: 5rem;
  bottom: 1.5rem;
  color: #fff;
}
.uq-modal-icon-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.uq-modal-icon {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: 1.35rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.uq-modal-title-block h3 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 0;
}
.uq-modal-title-block p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  margin-top: 0.35rem;
}
.uq-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  padding: 1.5rem;
  max-height: calc(92vh - 270px);
  overflow: auto;
}
.uq-modal-main {
  display: grid;
  gap: 1rem;
}
.uq-modal-section,
.uq-modal-side-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 1.25rem;
  background: #fff;
}
.uq-modal-kicker {
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.uq-modal-description {
  color: #475569;
  font-weight: 600;
  line-height: 1.8;
  white-space: pre-line;
}
.uq-modal-feature-list {
  display: grid;
  gap: 0.65rem;
  color: #334155;
  font-weight: 650;
}
.uq-modal-feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.uq-modal-feature-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  margin-top: 0.55rem;
  background: #20d6a8;
}
.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.modal-metrics-grid div,
.modal-architecture div {
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.9rem;
}
.modal-metrics-grid b {
  display: block;
  color: #0a0f1a;
  font-size: 1.2rem;
  font-weight: 950;
}
.modal-metrics-grid span,
.modal-architecture span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 750;
  margin-top: 0.2rem;
}
.modal-architecture {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.uq-modal-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
}
.uq-modal-screens img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.uq-modal-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}
.side-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.side-row:first-child {
  padding-top: 0;
}
.side-row span {
  display: block;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.side-row p {
  color: #0a0f1a;
  font-weight: 850;
}
.uq-modal-badges,
.modal-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.modal-store-actions a,
.uq-modal-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}
.modal-store-actions a {
  background: #0a0f1a;
  color: #fff;
}
.uq-modal-badges span {
  background: #f1f5f9;
  color: #334155;
}
.uq-modal-wip {
  margin-bottom: 0.85rem;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  padding: 0.85rem;
  font-weight: 850;
}
.uq-modal-side-card.is-gradient {
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: #fff;
  border: 0;
}
.uq-modal-side-card.is-gradient h4 {
  font-weight: 950;
  margin-bottom: 0.85rem;
}
.side-bullet {
  display: grid;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 650;
}
.side-bullet li {
  display: flex;
  gap: 0.5rem;
}
.side-bullet li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #20d6a8;
  margin-top: 0.55rem;
  flex: 0 0 auto;
}
@media (max-width: 860px) {
  .portfolio-section .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .filter-row {
    justify-content: flex-start;
  }
  #apps-grid {
    grid-template-columns: 1fr;
  }
  .loading-skeletons {
    grid-template-columns: 1fr;
  }
  .uq-modal {
    padding: 0.65rem;
    align-items: flex-end;
  }
  .uq-modal-card {
    border-radius: 28px 28px 0 0;
    max-height: 94vh;
  }
  .uq-modal-hero {
    height: 220px;
  }
  .uq-modal-body {
    grid-template-columns: 1fr;
    max-height: calc(94vh - 220px);
    padding: 1rem;
  }
  .modal-metrics-grid,
  .modal-architecture {
    grid-template-columns: 1fr;
  }
  .uq-modal-screens {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

/* Language switcher + mobile navigation */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.lang-btn {
  min-width: 2.35rem;
  height: 2rem;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  transition: all 0.22s ease;
}
.lang-btn:hover {
  color: #0a0f1a;
}
.lang-btn.active {
  background: #0a0f1a;
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(10, 15, 26, 0.8);
}
.mobile-panel {
  position: fixed;
  top: 5rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 49;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 70px -34px rgba(15, 23, 42, 0.35);
  padding: 1rem;
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
}
.mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: #0a0f1a;
  font-weight: 850;
}
.mobile-panel a:hover {
  background: #f8fafc;
}
.mobile-panel .language-switch {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Hero: clean programmer-grade motion layer */
.engineer-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0 0 44px 44px;
}
.hero-code-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 72%);
  opacity: 0.7;
}
.hero-scanline {
  position: absolute;
  inset: -35%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(32, 214, 168, 0.17) 49%,
    transparent 56%
  );
  animation: heroScan 7s ease-in-out infinite;
}
@keyframes heroScan {
  0%,
  100% {
    transform: translateX(-22%) translateY(8%) rotate(0deg);
    opacity: 0.25;
  }
  50% {
    transform: translateX(20%) translateY(-5%) rotate(3deg);
    opacity: 0.8;
  }
}
.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}
.hero-terminal {
  position: relative;
  background: rgba(10, 15, 26, 0.92);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px -36px rgba(15, 23, 42, 0.65);
}
@keyframes terminalFloat {
  0%,
  100% {
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg)
      translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateY(-1deg) rotateX(1deg)
      translateY(-10px);
  }
}
.hero-title-main {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}
html[lang="ko"] .hero-title-main {
  font-size: clamp(3.6rem, 6.1vw, 5.85rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
}
.hero-console-stack {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1rem;
  align-self: center;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  animation: terminalFloat 5.2s ease-in-out infinite;
}
.hero-mini-panel,
.hero-system-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 20px 60px -42px rgba(15, 23, 42, 0.45);
}
.hero-mini-panel {
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
}
.hero-mini-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #20d6a8);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 10px 22px -16px rgba(37, 99, 235, 0.7);
}
.hero-mini-panel b {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.hero-mini-panel span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 0.12rem;
}
.hero-mini-panel code {
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 900;
}
.hero-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.hero-system-card {
  padding: 1rem;
  min-height: 5.7rem;
}
.hero-system-card small {
  display: block;
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-system-card b {
  display: block;
  color: #0f172a;
  margin-top: 0.45rem;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.hero-system-card span {
  display: block;
  color: #64748b;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  font-weight: 750;
}
.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.9);
}
.terminal-dots {
  display: flex;
  gap: 0.45rem;
}
.terminal-dots span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #94a3b8;
}
.terminal-dots span:nth-child(1) {
  background: #fb7185;
}
.terminal-dots span:nth-child(2) {
  background: #fbbf24;
}
.terminal-dots span:nth-child(3) {
  background: #34d399;
}
.terminal-top code {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
}
.terminal-body {
  padding: 1.2rem;
  display: grid;
  gap: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
}
.code-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #cbd5e1;
}
.code-line .prompt {
  color: #20d6a8;
  font-weight: 900;
}
.code-line .muted {
  color: #64748b;
}
.code-line .blue {
  color: #60a5fa;
}
.code-line .mint {
  color: #5eead4;
}
.code-line .yellow {
  color: #fde68a;
}
.build-status {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.7rem;
}
.status-row {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  align-items: center;
  gap: 0.7rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 850;
}
.status-track {
  height: 0.45rem;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
.status-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #20d6a8);
  animation: fillPulse 2.8s ease-in-out infinite;
  transform-origin: left;
}
.status-row:nth-child(2) i {
  animation-delay: 0.35s;
}
.status-row:nth-child(3) i {
  animation-delay: 0.7s;
}
@keyframes fillPulse {
  0%,
  100% {
    transform: scaleX(0.82);
    opacity: 0.75;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}
.hero-proof span {
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  color: #475569;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 850;
}
.hero-career-note {
  margin: 0 0 1.35rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px -28px rgba(15, 23, 42, 0.35);
  max-width: 42rem;
}
.hero-career-label {
  display: block;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.42rem;
}
.hero-career-text {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 800;
  letter-spacing: -0.01em;
}
@media (max-width: 960px) {
  .engineer-hero {
    min-height: auto;
    padding-top: 9rem;
    padding-bottom: 4.5rem;
    border-radius: 0 0 34px 34px;
  }
  .hero-shell {
    grid-template-columns: 1fr;
  }
  .hero-console-stack {
    transform: none;
    animation: none;
  }
  html[lang="ko"] .hero-title-main {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }
}
@media (max-width: 560px) {
  .hero-system-grid {
    grid-template-columns: 1fr;
  }
  .hero-mini-panel {
    grid-template-columns: auto 1fr;
  }
  .hero-mini-panel code {
    display: none;
  }
}

/* Stronger separation for development / pipeline section */
.pipeline-section {
  margin-top: 5rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: 34px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(241, 245, 249, 0.64)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 70px -50px rgba(15, 23, 42, 0.32);
}
#dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 860px) {
  #dev-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-section {
    margin-top: 3.5rem;
    padding: 1.25rem;
    border-radius: 28px;
  }
}

/* v3 fixes: mobile title/platform layout, rich Supabase HTML text, official store buttons */
.portfolio-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.portfolio-card-title {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-height: 1.25;
}
.portfolio-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-end;
  flex: 0 1 auto;
  max-width: 52%;
  min-width: 0;
}
.portfolio-desc,
.uq-modal-description {
  overflow-wrap: anywhere;
}
.portfolio-desc p {
  display: inline;
  margin: 0;
}
.portfolio-desc br {
  display: none;
}
.uq-modal-description {
  white-space: normal;
}
.uq-modal-description p {
  margin: 0 0 0.85rem;
}
.uq-modal-description p:last-child {
  margin-bottom: 0;
}
.uq-modal-description ul,
.uq-modal-description ol {
  margin: 0.75rem 0 0.75rem 1.15rem;
  padding: 0;
}
.uq-modal-description ul {
  list-style: disc;
}
.uq-modal-description ol {
  list-style: decimal;
}
.uq-modal-description a {
  color: #2563eb;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-store-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.modal-store-actions:empty {
  display: none;
}
.modal-store-actions .store-link-btn {
  width: 100%;
  min-height: 4.6rem;
  border-radius: 1.15rem;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: #050816;
  box-shadow: 0 16px 32px -22px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    border-color 0.22s ease;
}
.modal-store-actions .store-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -24px rgba(15, 23, 42, 0.9);
  filter: saturate(1.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.store-link-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.store-link-btn svg {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
}
.store-link-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
  line-height: 1.1;
  align-content: center;
}
.store-link-kicker {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.74;
}
.store-link-title {
  font-size: 1.03rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-link-arrow {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.72;
}
.store-link-btn.play {
  background: linear-gradient(135deg, #050505, #111827);
}
.store-link-btn.apple {
  background: linear-gradient(135deg, #050505, #111827);
}
.store-link-btn.onestore {
  background: linear-gradient(135deg, #ff3434, #ff4d4d);
}
.store-link-btn.website {
  background: linear-gradient(135deg, #0f172a, #2563eb);
}
.store-link-btn.generic {
  background: linear-gradient(135deg, #0f172a, #334155);
}
.store-link-btn.onestore .store-link-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}
.store-link-btn.website .store-link-icon,
.store-link-btn.generic .store-link-icon {
  background: rgba(255, 255, 255, 0.12);
}
.footer-title-refined {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.footer-copy-refined {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 500;
}
@media (max-width: 640px) {
  .app-card-ref {
    padding: 1rem;
  }
  .app-card-ref .aspect-video {
    margin-bottom: 1rem;
  }
  .portfolio-card-body {
    gap: 0.75rem;
    align-items: flex-start;
  }
  .portfolio-card-icon {
    width: 3.1rem !important;
    height: 3.1rem !important;
    border-radius: 1rem !important;
  }
  .portfolio-card-header {
    display: block;
  }
  .portfolio-platforms {
    max-width: 100%;
    justify-content: flex-start;
    margin-bottom: 0.35rem;
  }
  .portfolio-card-title {
    width: 100%;
    font-size: 1.08rem !important;
    line-height: 1.25 !important;
  }
  .portfolio-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .modal-store-actions {
    grid-template-columns: 1fr;
  }
  .modal-store-actions .store-link-btn {
    min-height: 4.2rem;
    padding: 0.82rem 0.95rem;
    grid-template-columns: 2.85rem minmax(0, 1fr) auto;
  }
  .store-link-icon {
    width: 2.85rem;
    height: 2.85rem;
  }
  .store-link-title {
    font-size: 0.98rem;
  }
}

