/* ============================================================
   FRONT PAGE - 메인 페이지 전용 스타일
   ============================================================ */

.pi-front {
  /* 메인 페이지 컨테이너 */
}

/* ============================================================
   HERO 섹션
   ============================================================ */
.pi-hero {
  position: relative;
  background: var(--pi-navy-950);
  color: var(--pi-white);
  padding: 100px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.pi-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pi-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 164, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 164, 55, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 70%);
}

.pi-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.pi-hero-glow-gold {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 164, 55, 0.15) 0%, transparent 60%);
  top: -150px;
  right: -100px;
}
.pi-hero-glow-cyan {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 214, 240, 0.1) 0%, transparent 60%);
  bottom: -100px;
  left: 30%;
}

.pi-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 560px;
}

/* HERO LEFT */
.pi-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(212, 164, 55, 0.08);
  border: 1px solid rgba(212, 164, 55, 0.3);
  border-radius: var(--pi-radius-full);
  font-family: var(--pi-font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pi-gold-400);
  margin-bottom: 28px;
}
.pi-hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--pi-gold-500);
  border-radius: 50%;
  animation: pi-pulse 2s ease-in-out infinite;
}

.pi-hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--pi-white);
  margin: 0 0 28px 0;
}
.pi-hero-title-accent {
  color: var(--pi-gold-500);
}
.pi-hero-title-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pi-gold-500);
}

.pi-hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--pi-gray-200);
  margin: 0 0 40px 0;
  max-width: 540px;
  font-weight: 300;
}
.pi-hero-desc strong {
  color: var(--pi-white);
  font-weight: 600;
}

.pi-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* HERO TRUST INDICATORS */
.pi-hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 540px;
}
.pi-hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pi-hero-trust-num {
  font-family: var(--pi-font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--pi-gold-500);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pi-hero-trust-num span {
  font-size: 18px;
  color: var(--pi-gold-400);
}
.pi-hero-trust-label {
  font-family: var(--pi-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pi-gray-400);
  line-height: 1.5;
}
.pi-hero-trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* HERO RIGHT - TECH CARDS */
.pi-hero-visual {
  position: relative;
  height: 580px;
}

/* 배경 회로 라인 데코 */
.pi-hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.pi-tech-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pi-radius-md);
  padding: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--pi-font-mono);
  font-size: 11px;
  color: var(--pi-gray-200);
  box-shadow: var(--pi-shadow-xl);
  z-index: 1;
}

/* CARD 1: CAN BUS LIVE DATA (우상단) */
.pi-tech-card-1 {
  top: 15px;
  right: 0;
  width: 260px;
  z-index: 3;
  animation: pi-float 6s ease-in-out infinite;
}
@keyframes pi-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* CARD 5: SYSTEM STATUS (좌상단 작은 배지) */
.pi-tech-card-status {
  top: 0;
  left: 0;
  width: 175px;
  padding: 14px 16px;
  z-index: 4;
  animation: pi-float 6.5s ease-in-out infinite 1.5s;
}

/* CARD 2: SIMULINK DIAGRAM (중앙, 큰 카드) */
.pi-tech-card-simulink {
  top: 175px;
  left: 30px;
  width: 340px;
  z-index: 2;
  animation: pi-float 7.5s ease-in-out infinite 0.3s;
}

/* CARD 3: HiLS WAVEFORM (좌하단) */
.pi-tech-card-2 {
  bottom: 0;
  left: 0;
  width: 320px;
  z-index: 2;
  animation: pi-float 7s ease-in-out infinite 0.5s;
}

/* CARD 4: TORQUE GAUGE (우중간) */
.pi-tech-card-3 {
  bottom: 30px;
  right: 0;
  width: 180px;
  text-align: center;
  z-index: 3;
  animation: pi-float 5.5s ease-in-out infinite 1s;
}
.pi-tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pi-tech-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pi-cyan-400);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 11px;
}
.pi-tech-card-title-center {
  display: block;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.pi-tech-card-title-gold {
  color: var(--pi-gold-500) !important;
}
.pi-tech-card-dot {
  width: 6px;
  height: 6px;
  background: var(--pi-cyan-400);
  border-radius: 50%;
  animation: pi-pulse 1.5s ease-in-out infinite;
}
.pi-tech-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.pi-tech-card-meta {
  color: var(--pi-gray-400);
  font-size: 10px;
}

.pi-tech-signal {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.pi-tech-signal span {
  width: 3px;
  background: var(--pi-cyan-400);
  animation: pi-signal 1.5s ease-in-out infinite;
}
.pi-tech-signal span:nth-child(1) { height: 30%; animation-delay: 0s; }
.pi-tech-signal span:nth-child(2) { height: 50%; animation-delay: 0.2s; }
.pi-tech-signal span:nth-child(3) { height: 70%; animation-delay: 0.4s; }
.pi-tech-signal span:nth-child(4) { height: 100%; animation-delay: 0.6s; }
@keyframes pi-signal {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.pi-tech-data {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pi-tech-data-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.pi-tech-data-row:last-child { border: none; }
.pi-tech-data-label { color: var(--pi-gray-400); font-size: 10px; }
.pi-tech-data-value {
  color: var(--pi-white);
  font-weight: 500;
  font-size: 11px;
}
.pi-tech-data-ok { color: var(--pi-cyan-400) !important; }

/* CARD 2: SIMULINK DIAGRAM 내부 스타일 */
.pi-simulink-diagram {
  margin-top: 8px;
}
.pi-simulink-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* CARD 3: HiLS WAVEFORM 내부 스타일 */
.pi-tech-waveform {
  height: 70px;
  margin: 10px 0 8px;
}
.pi-tech-waveform svg {
  width: 100%;
  height: 100%;
}
.pi-tech-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pi-tech-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pi-tech-stat-label {
  font-size: 9px;
  color: var(--pi-gray-500);
  letter-spacing: 0.05em;
}
.pi-tech-stat-val {
  font-size: 12px;
  color: var(--pi-cyan-400);
  font-weight: 600;
}

/* CARD 4: TORQUE GAUGE 내부 스타일 */
.pi-tech-gauge {
  width: 110px;
  height: 55px;
  margin: 6px auto 8px;
  overflow: hidden;
}
.pi-tech-gauge svg { width: 100%; }
.pi-tech-gauge-value {
  font-family: var(--pi-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--pi-white);
}
.pi-tech-gauge-unit {
  font-size: 13px;
  color: var(--pi-gray-400);
  font-weight: 500;
}
.pi-tech-gauge-label {
  font-size: 9px;
  color: var(--pi-gold-500);
  margin-top: 2px;
  letter-spacing: 0.08em;
}

/* CARD 5: 핵심 가치 슬로건 카드 */
.pi-tech-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(212, 164, 55, 0.2);
}
.pi-tech-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pi-gold-500);
  flex-shrink: 0;
  animation: pi-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(212, 164, 55, 0.7);
}
.pi-tech-status-tag {
  font-family: var(--pi-font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--pi-gold-400);
  font-weight: 600;
}

.pi-tech-status-quote {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.pi-tech-quote-mark {
  font-family: 'Manrope', serif;
  font-size: 32px;
  color: var(--pi-gold-500);
  line-height: 0.6;
  margin-top: 6px;
  font-weight: 300;
}
.pi-tech-quote-text {
  font-family: var(--pi-font-display);
  font-size: 13px;
  line-height: 1.4;
  color: var(--pi-white);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}
.pi-tech-quote-text strong {
  color: var(--pi-gold-400);
  font-weight: 700;
}

.pi-tech-status-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.pi-tech-status-meta-key {
  font-family: var(--pi-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--pi-gray-500);
}
.pi-tech-status-meta-val {
  font-family: var(--pi-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--pi-gold-400);
  letter-spacing: -0.01em;
}

/* ============================================================
   WHY PICODE - 4대 영역
   ============================================================ */
.pi-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.pi-pillar {
  background: var(--pi-white);
  border: 1px solid var(--pi-gray-200);
  border-top: 3px solid var(--pi-navy-950);
  border-radius: var(--pi-radius-md);
  padding: 32px 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.pi-pillar:hover {
  transform: translateY(-6px);
  border-color: var(--pi-gold-500);
  border-top-color: var(--pi-gold-500);
  box-shadow: var(--pi-shadow-xl);
}
.pi-pillar-num {
  font-family: var(--pi-font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--pi-navy-900);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.pi-pillar:hover .pi-pillar-num {
  color: var(--pi-gold-600);
}
.pi-pillar-line {
  width: 32px;
  height: 2px;
  background: var(--pi-gold-500);
  margin-bottom: 20px;
  transition: width 0.3s;
}
.pi-pillar:hover .pi-pillar-line {
  width: 60px;
}
.pi-pillar-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--pi-navy-950);
}
.pi-pillar-sub {
  font-size: 14px;
  color: var(--pi-gold-600);
  margin: 0 0 16px 0;
  font-weight: 500;
}
.pi-pillar-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--pi-gray-600);
  margin: 0;
}

.pi-banner-emphasis {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: var(--pi-navy-950);
  color: var(--pi-white);
  border-radius: var(--pi-radius-md);
  border-left: 4px solid var(--pi-gold-500);
}
.pi-banner-emphasis strong {
  color: var(--pi-white);
  font-weight: 700;
  font-size: 17px;
}
.pi-banner-emphasis-sep {
  color: var(--pi-gold-500);
  margin: 0 4px;
}
.pi-banner-emphasis > span {
  color: var(--pi-gray-200);
  font-size: 15px;
}
.pi-banner-emphasis-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--pi-gold-500);
  color: var(--pi-navy-950);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SOLUTIONS - 4대 사업
   ============================================================ */
.pi-solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pi-solution-card {
  display: block;
  background: var(--pi-white);
  border: 1px solid var(--pi-gray-200);
  border-radius: var(--pi-radius-md);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  color: inherit !important;
}
.pi-solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 164, 55, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pi-solution-card:hover {
  border-color: var(--pi-navy-950);
  transform: translateY(-4px);
  box-shadow: var(--pi-shadow-xl);
}
.pi-solution-card:hover::before {
  opacity: 1;
}

.pi-solution-num {
  font-family: var(--pi-font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--pi-gold-600);
  margin-bottom: 20px;
  font-weight: 500;
}
.pi-solution-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--pi-navy-950);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pi-solution-badge {
  display: inline-block;
  font-family: var(--pi-font-mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--pi-gold-500);
  color: var(--pi-navy-950);
  padding: 3px 8px;
  border-radius: var(--pi-radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}
.pi-solution-sub {
  font-size: 14px;
  color: var(--pi-gold-600);
  margin: 0 0 16px 0;
  font-weight: 500;
  font-style: italic;
}
.pi-solution-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pi-gray-600);
  margin: 0 0 24px 0;
}

.pi-solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pi-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--pi-gray-100);
  color: var(--pi-navy-900);
  font-family: var(--pi-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--pi-radius-full);
  transition: all 0.2s;
}
.pi-solution-card:hover .pi-chip {
  background: var(--pi-navy-950);
  color: var(--pi-gold-400);
}

.pi-solution-arrow {
  position: absolute;
  top: 36px;
  right: 36px;
  font-size: 24px;
  color: var(--pi-gray-300);
  transition: transform 0.3s, color 0.3s;
}
.pi-solution-card:hover .pi-solution-arrow {
  color: var(--pi-gold-500);
  transform: translate(4px, -4px);
}

/* ============================================================
   ARCHITECTURE - HiLS 통합
   ============================================================ */
.pi-arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pi-arch-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--pi-radius-md);
  overflow: hidden;
  transition: all 0.3s;
}
.pi-arch-col:hover {
  border-color: rgba(212, 164, 55, 0.3);
  transform: translateY(-4px);
}
.pi-arch-col-head {
  background: var(--pi-navy-900);
  border-bottom: 2px solid var(--pi-gold-500);
  padding: 20px 24px;
  text-align: center;
}
.pi-arch-col-title {
  font-family: var(--pi-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--pi-white);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.pi-arch-col-sub {
  font-size: 12px;
  color: var(--pi-gold-400);
  letter-spacing: 0.05em;
}
.pi-arch-col-list {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pi-arch-col-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--pi-gray-200);
  line-height: 1.5;
}
.pi-arch-col-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--pi-gold-500);
  border-radius: 50%;
}

.pi-arch-footer {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: var(--pi-gold-400);
  font-size: 15px;
}
.pi-arch-footer-arrow {
  display: inline-block;
  margin-right: 8px;
  font-style: normal;
  font-weight: 700;
}

/* ============================================================
   REFERENCES - 고객사
   ============================================================ */
.pi-refs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pi-refs-group {
  background: var(--pi-white);
  border-radius: var(--pi-radius-md);
  padding: 32px;
  transition: all 0.3s;
  border-top: 3px solid var(--pi-gold-500);
}
.pi-refs-group:hover {
  box-shadow: var(--pi-shadow-lg);
  transform: translateY(-4px);
}
.pi-refs-label {
  font-family: var(--pi-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--pi-navy-950);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pi-gray-200);
}
.pi-refs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pi-refs-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--pi-gray-700);
  line-height: 1.5;
}
.pi-refs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 2px;
  background: var(--pi-gold-500);
}

/* ============================================================
   CTA - 메인 페이지에서 사용 (스타일은 components.css에 정의)
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .pi-hero {
    padding: 80px 0;
  }
  .pi-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pi-hero-visual {
    display: none;
  }
  .pi-pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pi-solutions-grid {
    grid-template-columns: 1fr;
  }
  .pi-arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pi-refs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pi-hero {
    padding: 56px 0 72px;
  }
  .pi-hero-title {
    font-size: 36px;
  }
  .pi-hero-desc {
    font-size: 16px;
  }
  .pi-hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 40px;
  }
  .pi-hero-cta .pi-btn {
    justify-content: center;
  }
  .pi-hero-trust {
    gap: 16px;
  }
  .pi-hero-trust-num { font-size: 22px; }
  .pi-hero-trust-num span { font-size: 14px; }
  .pi-hero-trust-label { font-size: 9px; }

  .pi-pillar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pi-pillar { padding: 28px 24px; }
  .pi-pillar-num { font-size: 32px; }

  .pi-solution-card { padding: 28px 24px; }
  .pi-solution-card h3 { font-size: 22px; }
  .pi-solution-arrow {
    top: 28px;
    right: 24px;
  }

  .pi-arch-grid { grid-template-columns: 1fr; }
  .pi-arch-col-head { padding: 16px 20px; }
  .pi-arch-col-list { padding: 20px; }

  .pi-banner-emphasis {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 12px;
  }
  .pi-banner-emphasis-sep { display: none; }
}
