/* ============================================
   PIOTECH - Main Page Stylesheet
   ============================================ */

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h) - 32px);
  min-height: 560px;
  max-height: 760px;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 35, 68, 0.85) 0%, rgba(11, 95, 166, 0.6) 50%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(circle at 30% 40%, #0b5fa6 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, #1a3a5c 0%, transparent 60%),
    #0a1929;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 182, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 182, 232, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 70%, rgba(0, 184, 212, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(95, 182, 232, 0.2) 0%, transparent 40%);
}

/* Decorative animated dots */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(95, 182, 232, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(95, 182, 232, 0.8);
  animation: floatUp 18s linear infinite;
}
.hero-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 22s; }
.hero-particles span:nth-child(2) { left: 25%; animation-delay: 3s; animation-duration: 18s; }
.hero-particles span:nth-child(3) { left: 40%; animation-delay: 6s; animation-duration: 25s; }
.hero-particles span:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 20s; }
.hero-particles span:nth-child(5) { left: 70%; animation-delay: 9s; animation-duration: 23s; }
.hero-particles span:nth-child(6) { left: 85%; animation-delay: 4s; animation-duration: 19s; }
.hero-particles span:nth-child(7) { left: 92%; animation-delay: 7s; animation-duration: 21s; }
.hero-particles span:nth-child(8) { left: 5%; animation-delay: 12s; animation-duration: 24s; }

@keyframes floatUp {
  0% { transform: translateY(110vh) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(90vh) scale(1); }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-sky);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: slideUp 0.8s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: none;
}
.hero h2 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: slideUp 0.8s ease 0.4s forwards;
}
.hero h2 .accent { color: var(--color-sky); }
.hero p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 40px;
  opacity: 0;
  animation: slideUp 0.8s ease 0.6s forwards;
  color: rgba(255,255,255,0.85);
}
.hero-cta {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: slideUp 0.8s ease 0.8s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 95, 166, 0.4);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.btn:hover .arrow { transform: translateX(4px); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION: Business Areas
   ============================================ */
.section {
  padding: 100px 20px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--color-text);
}
.section-desc {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin: 0;
}

.business-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.biz-card {
  position: relative;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  transition: all var(--transition);
  overflow: hidden;
  cursor: pointer;
}
.biz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.biz-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.biz-card:hover::before { transform: scaleX(1); }
.biz-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f3fc, #d4e7f7);
  border-radius: 12px;
  margin-bottom: 22px;
  color: var(--color-primary);
  transition: all var(--transition);
}
.biz-card:hover .biz-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  transform: rotate(-5deg) scale(1.05);
}
.biz-icon svg { width: 32px; height: 32px; }
.biz-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-text);
}
.biz-card p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin: 0 0 20px;
}
.biz-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.biz-link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.biz-card:hover .biz-link svg { transform: translateX(4px); }

/* ============================================
   SECTION: Value Strip (수치/실적)
   ============================================ */
.value-strip {
  background: linear-gradient(135deg, #0b5fa6 0%, #074478 100%);
  position: relative;
  overflow: hidden;
  padding: 70px 20px;
}
.value-strip::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: 50px 50px;
}
.value-grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-item {
  text-align: center;
  color: #fff;
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.value-item:last-child { border-right: none; }
.value-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fff 30%, #9ed2f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.value-num .suf {
  font-size: 24px;
  margin-left: 4px;
  -webkit-text-fill-color: var(--color-sky);
}
.value-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

/* ============================================
   SECTION: News & Notice
   ============================================ */
.news-section {
  background: var(--color-bg-soft);
}
.news-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.news-block {
  background: #fff;
  border-radius: 6px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--color-text);
}
.news-head h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.news-head .more {
  font-size: 12px;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.news-head .more:hover { color: var(--color-primary); }
.news-head .more::after {
  content: '+';
  font-size: 16px;
  font-weight: 300;
}
.news-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-line);
  transition: padding var(--transition);
  cursor: pointer;
}
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { padding-left: 6px; }
.news-list .tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--color-bg-gray);
  color: var(--color-text-sub);
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.news-list .tag.new { background: var(--color-primary); color: #fff; }
.news-list .title {
  flex: 1;
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-list li:hover .title { color: var(--color-primary); }
.news-list .date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, #1a3a5c 0%, #0b5fa6 100%);
  color: #fff;
  border-radius: 6px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}
.contact-card::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}
.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  position: relative;
}
.contact-card .sub-en {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-sky);
  margin-bottom: 22px;
  text-transform: uppercase;
  position: relative;
}
.contact-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
}
.contact-row .ico {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row .ico svg { width: 16px; height: 16px; }
.contact-row .info { font-size: 13px; line-height: 1.5; }
.contact-row .info strong { display: block; font-size: 11px; opacity: 0.7; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-row .info span { font-size: 15px; font-weight: 500; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .value-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 20px; }
  .value-item:nth-child(2n) { border-right: none; }
  .news-wrap { grid-template-columns: 1fr; }
  .hero h2 { font-size: 48px; }
}

@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .hero-eyebrow { font-size: 11px; }
  .hero h2 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .btn { width: 100%; justify-content: center; }

  .section { padding: 60px 20px; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 14px; }

  .business-grid { grid-template-columns: 1fr; gap: 20px; }
  .biz-card { padding: 30px 24px; }

  .value-grid { grid-template-columns: 1fr; gap: 20px; }
  .value-num { font-size: 44px; }

  .news-block, .contact-card { padding: 24px; }
  .news-list .tag { display: none; }
  .news-list .date { font-size: 11px; }
}
