/* ========================================
   1. Design Tokens & Reset
   ======================================== */
:root {
  /* Palette - Sophisticated & Editorial */
  --bg-color: #ffffff;
  --bg-light: #f9f9f9;
  --text-main: #111111;
  --text-muted: #666666;
  --text-light: #999999;

  --accent-color: #C5A065;
  /* Muted Luxurious Gold */
  --accent-dark: #A08040;

  --border-color: #e5e5e5;
  --border-dark: #333333;

  /* Typography */
  --font-main: 'Noto Sans KR', sans-serif;
  --font-display: 'Playfair Display', serif;
  /* Optional for headings if we add it, otherwise Noto Sans */

  /* Spacing */
  --container-width: 1400px;
  /* Wider for modern feel */
  --section-padding: 160px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Korean Typography Optimization */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Typography Utility */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-padding) 0;
}

/* ========================================
   2. Components
   ======================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--text-main);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--text-main);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: #fff;
}

/* Loading */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-color);
}

/* System Status Indicator */
.system-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #2ecc71;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--accent-color);
}

/* Trusted Partners Section */
.trusted-section {
  padding: 30px 0;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border-color);
}

.trusted-label {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  font-weight: 700;
}

.logo-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.logo-item {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: default;
}

.logo-item i {
  font-size: 22px;
}

.logo-item:hover {
  opacity: 1;
  color: var(--text-main);
  transform: translateY(-2px);
}

/* ========================================
   3. Sections
   ======================================== */

/* Why Bunyang Marketing Section */
.why-section {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.why-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.why-card.pain {
  border-top: none;
  border-left: 3px solid var(--border-dark);
}

.why-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1;
}

.why-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.why-solution {
  text-align: center;
}

.solution-divider {
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  margin: 0 auto 30px;
}

.solution-box {
  background: var(--text-main);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.solution-box h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--accent-color);
}

.solution-box p {
  font-size: 15px;
  line-height: 1.8;
  color: #ccc;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s var(--ease-out-expo) forwards 0.5s;
}

.hero-pre-title {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
  font-size: 64px;
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.1;
}

.hero h1 .highlight {
  font-weight: 700;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-cta .btn-outline {
  border-color: #fff;
  color: #fff;
}

.hero-cta .btn-outline:hover {
  background: #fff;
  color: var(--text-main);
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About - Minimal */
.about-content-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  margin-top: 60px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header.text-left {
  text-align: left;
}

.section-header.text-center {
  text-align: center;
}

.section-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 400;
  color: var(--text-main);
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
  color: var(--text-main);
}

.text-highlight {
  background: linear-gradient(120deg, rgba(197, 160, 101, 0.3) 0%, rgba(197, 160, 101, 0.3) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 88%;
  font-weight: 600;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.stat-minimal {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-bottom: 40px;
}

.stat-num {
  display: block;
  font-size: 56px;
  font-weight: 300;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Services - Editorial Grid */
.service-grid-editorial {
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 80px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-item.reverse {
  direction: rtl;
  /* Quick way to swap columns visually */
}

.service-item.reverse>* {
  direction: ltr;
  /* Reset content direction */
}

.service-img {
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #eee;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-item:hover .service-img img {
  transform: scale(1.05);
}

.service-info h3 {
  font-size: 32px;
  margin-bottom: 24px;
  font-weight: 400;
}

.service-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-main);
}

.feature-list li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}

/* Marketing Section - Clean Grid */
.bg-light {
  background-color: var(--bg-light);
}

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.marketing-card {
  padding: 40px;
  background: #fff;
  border-top: 2px solid var(--text-main);
  transition: transform 0.3s ease;
}

.marketing-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}

.marketing-card h4 {
  font-size: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marketing-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Portfolio - Typography & Image Focus */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.portfolio-item {
  position: relative;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.portfolio-item:hover img {
  filter: grayscale(0%);
}

.portfolio-caption {
  margin-top: 16px;
  text-align: left;
}

.portfolio-caption h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.portfolio-caption span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Contact - Minimal Split */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 80px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

.contact-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.detail-group {
  margin-bottom: 32px;
}

.detail-group .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.detail-group .value {
  font-size: 16px;
  font-weight: 500;
}

.contact-form-minimal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-light);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--text-main);
}

textarea {
  resize: vertical;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
}

.submit-btn {
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: var(--accent-color);
}

/* Fabricated AI Dashboard */
.ai-dashboard-container {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  color: #fff;
  font-family: 'Courier New', monospace;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.dash-title {
  color: var(--accent-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-status {
  font-size: 12px;
  color: #2ecc71;
  animation: pulse-green 2s infinite;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-card {
  background: #252525;
  padding: 16px;
  border-radius: 8px;
}

.dash-card.full-width {
  grid-column: span 2;
}

.dash-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dash-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.dash-value.highlight {
  color: var(--accent-color);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  border-radius: 3px;
}

.dash-sub {
  font-size: 11px;
  color: #666;
}

.dashboard-log {
  font-size: 11px;
  color: #666;
  line-height: 1.6;
  height: 60px;
  overflow: hidden;
  border-top: 1px solid #333;
  padding-top: 10px;
}

/* Notification Popup */
.notification-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  max-width: 340px;
  border-left: 4px solid var(--accent-color);
}

.notification-popup.active {
  transform: translateY(0);
  opacity: 1;
}

.notif-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.notif-content {
  flex-grow: 1;
}

.notif-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.notif-message {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.notif-time {
  font-size: 11px;
  color: #999;
}

.notif-close {
  color: #999;
  cursor: pointer;
  padding: 4px;
}

/* Initial Mobile Adjustments */
@media (max-width: 768px) {
  .notification-popup {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }
}

/* FAQ - Accordion */
.faq-list {
  max-width: 800px;
  margin: 60px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-color);
}

.faq-question i {
  transition: transform 0.3s ease;
  font-size: 14px;
  color: var(--text-light);
}

.faq-item.active .faq-question {
  color: var(--accent-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-color);
}

/* Fix: Expand answer when active */
.faq-item.active .faq-answer {
  max-height: 500px;
  /* Adjust if content is longer */
  transition: max-height 0.5s ease-in-out;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Footer */
footer {
  background: var(--text-main);
  color: #fff;
  padding: 80px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
}

.copyright {
  font-size: 12px;
  color: #666;
  text-align: right;
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  :root {
    --section-padding: 100px;
  }

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

  .service-item,
  .service-item.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
    /* Reset for mobile */
  }

  .portfolio-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  /* Simplified mobile handling */
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

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

  .portfolio-gallery {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 32px;
  }
}