@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --primary: #0b3d91;
  --primary-dark: #072d6e;
  --primary-light: #1a5cb5;
  --accent: #4a90e2;
  --dark: #0a1628;
  --gray-dark: #444;
  --gray-mid: #777;
  --gray-light: #f4f6f9;
  --white: #ffffff;
}

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

body {
  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--white);
  color: var(--gray-dark);
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ── HEADER ── */
.header {
  background: transparent;
  border-bottom: 1px solid transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo img {
  height: 36px;
  width: auto;
}

nav a {
  margin-left: 28px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--white);
}

.header.scrolled nav a {
  color: var(--gray-dark);
}

.header.scrolled nav a:hover {
  color: var(--primary);
}

/* ── HERO ── */
.hero {
  padding: 160px 0 80px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(18, 18, 18, 0.82) 50%, rgba(35, 35, 35, 0.72) 100%),
    url('asset/img/main_background_img.jpeg') center top/cover no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(11, 61, 145, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(74, 144, 226, 0.2);
  border: 1px solid rgba(74, 144, 226, 0.4);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.h1-accent {
  color: var(--accent);
}

.h1-mute {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
}

.sub-item {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.sub-dot {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

.primary:hover {
  background: #3a7fd5;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 144, 226, 0.5);
}

.outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── PROBLEM ── */
.problem {
  background: var(--gray-light);
  padding: 80px 0;
}

.problem h2 {
  color: var(--dark);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.problem ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.problem ul li {
  background: var(--primary);
  border: 1px solid var(--primary-dark);
  border-top: 3px solid #7eb8f7;
  color: rgba(255, 255, 255, 0.92);
  padding: 32px 24px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
  cursor: default;
}

.problem ul li i {
  font-size: 28px;
  color: #7eb8f7;
  transition: color 0.3s;
}

.problem ul li:hover {
  background: var(--white);
  border-color: #e8ebf0;
  border-top-color: var(--primary);
  color: var(--dark);
}

.problem ul li:hover i {
  color: var(--primary);
}

/* ── SECTION COMMON ── */
.section {
  padding: 100px 0;
}

.section h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.light {
  background: var(--gray-light);
}

/* ── ABOUT ── */
.lead {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 60px;
}

.lead-accent {
  color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-grid > div {
  background: var(--white);
  border: 1px solid #e8ebf0;
  border-top: 3px solid var(--primary);
  padding: 36px;
  border-radius: 4px;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.about-grid > div:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.about-grid > div:hover h3 {
  color: var(--white);
}

.about-grid > div:hover p {
  color: rgba(255, 255, 255, 0.8);
}

.about-grid > div:hover .about-icon-wrap {
  color: rgba(255, 255, 255, 0.85);
}

.about-grid > div:hover strong {
  color: var(--white);
}

.about-grid > div:hover .about-exp {
  color: rgba(255, 255, 255, 0.75);
}

.about-grid > div:hover .about-career {
  color: rgba(255, 255, 255, 0.65);
}

.about-grid > div:hover .about-career i {
  color: rgba(255, 255, 255, 0.3);
}

.about-grid > div:hover .career-now {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.about-icon-wrap {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: color 0.3s;
}

.about-grid h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.about-grid p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.8;
}

.about-grid strong {
  color: var(--dark);
  transition: color 0.3s;
}

.about-person {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about-avatar {
  width: 90px;
  height: 100px;
  flex-shrink: 0;
  background: #eef0f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde2ec;
}

.about-avatar i {
  font-size: 52px;
  color: #b0bccf;
}

.about-grid > div:hover .about-avatar {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.about-grid > div:hover .about-avatar i {
  color: rgba(255, 255, 255, 0.6);
}

.about-person-info {
  flex: 1;
}

.about-exp {
  font-size: 14px !important;
  margin-bottom: 16px;
  margin-top: 2px;
  transition: color 0.3s;
}

.about-exp strong {
  color: var(--accent);
  font-size: 16px;
}

.about-career {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  color: var(--gray-mid);
  transition: color 0.3s;
}

.about-career i {
  font-size: 9px;
  color: #c8d0de;
  transition: color 0.3s;
}

.career-now {
  color: var(--primary);
  font-weight: 700;
  background: rgba(11, 61, 145, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  transition:
    background 0.3s,
    color 0.3s;
}

/* ── SERVICES ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.card {
  background: var(--white);
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 0;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.card-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 28px 32px 32px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11, 61, 145, 0.1);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.8;
}

/* ── INSIGHT ── */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.blog-item {
  text-decoration: none;
  background: var(--white);
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  padding: 32px;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.blog-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(11, 61, 145, 0.25);
}

.blog-item:hover .blog-tag {
  color: #7eb8f7;
}

.blog-item:hover h4 {
  color: var(--white);
}

.blog-item:hover p {
  color: rgba(255, 255, 255, 0.8);
}

.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.blog-item p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.7;
}

/* ── CASE ── */
#case h2 {
  margin-bottom: 20px;
}

.case-desc {
  font-size: 16px;
  color: var(--gray-mid);
  margin-bottom: 36px;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.case-tab {
  background: var(--white);
  border: 1px solid #d0d8e8;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.case-tab:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

.case-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.case-panel {
  display: none;
}

.case-panel.active {
  display: block;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-item {
  background: var(--white);
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.25s;
}

.case-item:hover {
  box-shadow: 0 8px 30px rgba(11, 61, 145, 0.1);
}

.case-logo {
  width: 90px;
  height: 64px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.case-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-item-body {
  flex: 1;
}

.case-item-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.case-item-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.case-item-body p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.7;
}

/* ── CONTACT ── */
.contact {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
}

.contact h2 {
  color: var(--accent);
}

.contact .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  margin-bottom: 48px;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* ── FOOTER ── */
footer {
  background: #050d1a;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.footer-inner {
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.footer-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.85;
  margin-top: 2px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-info p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.footer-info a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.3px;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.header.scrolled .hamburger span {
  background: var(--gray-dark);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-item {
    flex-direction: column;
  }

  .case-logo {
    width: 100%;
    height: 48px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .lead {
    font-size: 18px;
  }

  .hamburger {
    display: flex;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(8px);
    padding: 16px 0;
  }

  #nav-menu.open {
    display: flex;
  }

  #nav-menu a {
    margin-left: 0;
    padding: 14px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #nav-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
  }

  .header.scrolled #nav-menu {
    background: rgba(255, 255, 255, 0.97);
  }

  .header.scrolled #nav-menu a {
    color: var(--gray-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .header.scrolled #nav-menu a:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.03);
  }
}
