/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4a7fdf;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #3366c4;
}

ul {
  list-style: none;
}

/* === Layout === */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: #f8f9fa;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.nav-logo:hover {
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #888;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a1a1a;
}

/* === Language Toggle === */
.lang-toggle {
  position: relative;
  z-index: 101;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  flex-shrink: 0;
}

.lang-toggle:hover {
  color: #1a1a1a;
  border-color: #aaa;
  background: #f5f5f5;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #1a1a1a;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === Hero === */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(180deg, #f0f5ff 0%, #fff 100%);
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  line-height: 1.25;
  color: #1a1a1a;
}

.hero-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 600px;
}

/* === Products === */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-card {
  padding: 32px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border-color: #ddd;
}

.product-featured {
  border-left: 4px solid #4a7fdf;
  background: linear-gradient(135deg, #fafcff 0%, #fff 100%);
}

.product-featured:hover {
  border-color: #e8e8e8;
  border-left-color: #4a7fdf;
}

.products-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-compact {
  padding: 28px;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eef3ff;
  color: #4a7fdf;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.product-card > p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
}

.product-detail {
  font-size: 0.9rem;
  color: #777;
}

.product-metric {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a7fdf;
  margin-top: 8px;
}

.product-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 12px;
}

/* === Partners === */
.partners {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #eee;
  text-align: center;
}

.partners-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
}

.partners-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #bbb;
  transition: color 0.2s;
}

.partners-list a:hover {
  color: #666;
}

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid #e0e0e0;
}

.timeline-item {
  position: relative;
  padding: 6px 0 6px 20px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a7fdf;
  border: 2px solid #fff;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a7fdf;
  white-space: nowrap;
  min-width: 72px;
  font-variant-numeric: tabular-nums;
}

.timeline-text {
  font-size: 0.875rem;
  color: #555;
}

/* === Press === */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.press-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.press-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border-color: #ddd;
  color: #1a1a1a;
}

.press-featured {
  border-left: 4px solid #4a7fdf;
  background: linear-gradient(135deg, #fafcff 0%, #fff 100%);
}

.press-featured:hover {
  border-color: #e8e8e8;
  border-left-color: #4a7fdf;
}

.press-source {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4a7fdf;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.press-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  flex: 1;
}

.press-date {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

/* === Contact === */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.corporate-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

.corporate-name-ko {
  font-weight: 400;
  color: #999;
  margin-left: 8px;
}

.contact-email {
  margin-top: 8px;
}

.contact-email a {
  font-size: 1rem;
  font-weight: 500;
}

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.office-card {
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
}

.office-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.office-card p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: #aaa;
}

/* === Mobile === */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 72px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .products-secondary {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: #fff;
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .nav-right {
    gap: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .timeline-item {
    flex-direction: column;
    gap: 4px;
  }
}

/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 98;
}

.nav-overlay.open {
  display: block;
}
