:root {
  --p8-orange: #f36f2d;
  --p8-orange-deep: #d95d1f;
  --p8-charcoal: #111315;
  --p8-ink: #1f252b;
  --p8-gray: #d9d9d9;
  --p8-mist: #f5f6f7;
  --p8-white: #ffffff;
  --p8-border: #e4e6e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--p8-ink);
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 30%, #ffffff 100%);
}

.heading-en {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(17, 19, 21, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link {
  color: #f6f6f6;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--p8-orange);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--p8-orange);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: var(--p8-orange-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--p8-charcoal);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--p8-ink);
  color: var(--p8-ink);
  font-weight: 700;
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--p8-charcoal);
  color: #fff;
  min-height: 560px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  padding: 4.5rem 3rem 3rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--p8-orange);
  background: rgba(243, 111, 45, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-sub {
  margin-top: 1rem;
  color: #dfdfdf;
  font-size: 1.05rem;
  max-width: 60ch;
}

.stat-panel {
  background: rgba(17, 19, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--p8-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: #5a636c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  margin-top: 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.2;
  color: var(--p8-charcoal);
  font-weight: 800;
}

.section-desc {
  margin-top: 0.8rem;
  color: #53606c;
  max-width: 68ch;
}

.panel {
  background: #fff;
  border: 1px solid var(--p8-border);
  border-radius: 20px;
  padding: 1.25rem;
}

.panel-dark {
  background: var(--p8-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.service-card,
.portfolio-card,
.product-card,
.value-card {
  background: #fff;
  border: 1px solid var(--p8-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.portfolio-card:hover,
.product-card:hover,
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(20, 24, 28, 0.08);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  background: #ffe8dc;
  color: var(--p8-orange-deep);
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--p8-border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--p8-border);
  text-align: left;
}

th {
  background: #f8f8f8;
  color: #44505a;
  font-weight: 700;
}

.faq-item {
  border: 1px solid var(--p8-border);
  border-radius: 14px;
  background: #fff;
}

.faq-btn {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-weight: 700;
}

.faq-content {
  display: none;
  padding: 0 1rem 1rem;
  color: #586673;
}

.faq-item.open .faq-content {
  display: block;
}

.footer {
  background: var(--p8-charcoal);
  color: #c7ced5;
  margin-top: 3.5rem;
  border-radius: 28px 28px 0 0;
}

.footer a {
  color: #edf0f2;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffbb99;
  background: #fff3ec;
  color: #ad4a1a;
  border-radius: 999px;
  padding: 0.22rem 0.68rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem 1.8rem;
  }

  .section {
    padding: 3.4rem 0;
  }
}

@media (max-width: 768px) {
  .hero-frame {
    border-radius: 20px;
    min-height: auto;
  }

  .page-shell {
    width: min(1200px, calc(100% - 1.2rem));
  }
}
