/* ============================================================
   digo.kr — 링키솔루션 디지털 카탈로그
   공유 스타일시트
   ============================================================ */

:root {
  --orange: #E8611A;
  --orange-light: #F28C28;
  --orange-pale: #FFF3EC;
  --orange-dark: #C4511A;
  --dark: #111118;
  --text: #1E1E2E;
  --text-secondary: #64748B;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 20px; width: auto; display: block; }
.logo-wrap { display: flex; align-items: center; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--orange); background: var(--orange-pale); }
.site-nav a.active { color: var(--orange); font-weight: 700; }

.nav-contact {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 60%, #0F3460 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,97,26,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,97,26,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  background: rgba(232,97,26,0.15);
  border: 1px solid rgba(232,97,26,0.4);
  color: var(--orange-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange-light);
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* Product hero (individual pages) */
.product-hero {
  background: var(--orange);
  color: white;
  padding: 60px 24px;
}
.product-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.product-hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.product-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.product-hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.6;
}
.product-hero .meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== SECTION ===== */
section { padding: 64px 24px; }
section.alt { background: var(--orange-pale); }
section.dark { background: var(--dark); color: white; }

.container { max-width: 1000px; margin: 0 auto; }
.container-sm { max-width: 780px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
}

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-top-accent { border-top: 3px solid var(--orange); }

/* Product cards on main page */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.product-card-icon {
  width: 48px; height: 48px;
  background: var(--orange-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.product-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.product-card-en {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.product-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.product-card-body {
  padding: 20px 24px;
  flex: 1;
}
.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--orange-pale);
  color: var(--orange-dark);
  border: 1px solid rgba(232,97,26,0.2);
}
.product-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,97,26,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange-pale);
}
.btn-white {
  background: white;
  color: var(--orange);
}
.btn-white:hover {
  background: var(--orange-pale);
}
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.feature-item .fi-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--orange-pale);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  margin-top: 1px;
}
.feature-item strong { color: var(--orange); }

/* ===== SCRIPT BOX ===== */
.script-box {
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 4px solid var(--orange);
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
}
.script-box::before {
  content: '"';
  position: absolute;
  top: 12px; left: 24px;
  font-size: 3rem;
  color: var(--orange);
  opacity: 0.4;
  line-height: 1;
  font-family: Georgia, serif;
}
.script-box p { padding-left: 8px; }

/* ===== FAQ ===== */
.faq-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  padding: 18px 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--orange); }
.faq-q .arrow {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform 0.3s;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--orange);
  color: white;
  padding: 64px 24px;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-section p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 40px 24px;
  font-size: 0.8rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo-img { height: 16px; width: auto; filter: brightness(0) invert(1); }
.footer-info { line-height: 1.9; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ===== DIVIDER ===== */
.divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 12px 0 24px;
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .cta-section, .btn-group, .no-print { display: none !important; }
  .product-hero { background: white !important; color: var(--dark) !important; border-bottom: 3px solid var(--orange); }
  section { padding: 32px 0; }
  .card, .feature-item { break-inside: avoid; box-shadow: none; }
  body { font-size: 11pt; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 48px 20px; }
  .header-inner { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; width: 100%; }
  .hero { padding: 56px 20px; }
  .product-hero { padding: 40px 20px; }
  .script-box { padding: 20px 20px 20px 28px; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .product-card-name { font-size: 1.1rem; }
  .section-title { font-size: 1.4rem; }
}
