/* ========================================
   dgdgM Design System
   Minimal & Modern Gallery Style (Swiss Design)
   ======================================== */

@font-face {
  font-family: '에이투지체';
  src: url('/fonts/에이투지체-3Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: '에이투지체';
  src: url('/fonts/에이투지체-4Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: '에이투지체';
  src: url('/fonts/에이투지체-7Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: '에이투지체';
  src: url('/fonts/에이투지체-8ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

/* --- Tokens --- */
:root {
  --color-white: #FFFFFF;
  --color-black: #111111;
  --color-gray-light: #F9F9F9;
  --color-gray-border: #E5E5E5;
  --color-gray-mid: #888888;
  --color-accent: #1B3C35;

  --font-family: '에이투지체', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1400px;
  --nav-height: 80px;
  --section-padding: 160px;
  --section-padding-mobile: 80px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--color-black);
  text-transform: none;
}
.nav-logo span {
  font-weight: 300;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-black);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-black);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background: var(--color-black);
  transition: opacity 0.3s;
}
.nav-cta:hover {
  opacity: 0.8;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-black);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 99;
  padding: 40px;
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 32px; }
.nav-mobile a {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* --- Typography --- */
.page-spacer {
  height: var(--nav-height);
}
h1, .h1 {
  font-size: 80px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
h2, .h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
h3, .h3 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.subtitle {
  font-size: 24px;
  font-weight: 300;
  color: var(--color-gray-mid);
  line-height: 1.5;
  max-width: 800px;
}
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-mid);
  margin-bottom: 24px;
}
.text-center { text-align: center; }
.text-center .subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.btn-primary {
  color: var(--color-white);
  background: var(--color-black);
}
.btn-primary:hover {
  background: var(--color-gray-mid);
}
.btn-outline {
  color: var(--color-black);
  border: 1px solid var(--color-black);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-gray-light);
}
.btn-ghost {
  color: var(--color-black);
  padding: 16px 0;
  font-weight: 700;
  border-bottom: 1px solid var(--color-black);
}
.btn-ghost:hover {
  color: var(--color-gray-mid);
  border-bottom-color: var(--color-gray-mid);
}

/* --- Sections --- */
section {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--color-gray-border);
}
section:last-of-type {
  border-bottom: none;
}
.section-gray {
  background: var(--color-gray-light);
}

/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--color-gray-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content {
  max-width: 100%;
}
.hero .subtitle {
  margin-bottom: 48px;
}
.hero-cta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--color-gray-light);
  overflow: hidden;
  border: 1px solid var(--color-gray-border);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* --- Cards --- */
.card {
  padding: 48px;
  border: 1px solid var(--color-gray-border);
  background: var(--color-white);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--color-gray-mid);
  margin-bottom: 32px;
  display: block;
}
.card h3 {
  margin-bottom: 16px;
  font-size: 24px;
}
.card p {
  color: var(--color-gray-mid);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
}
.card ul {
  margin-top: 24px;
}
.card ul li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-gray-border);
  display: flex;
  align-items: center;
}
.card ul li::before {
  content: '—';
  margin-right: 12px;
  color: var(--color-gray-mid);
}
.card ul li:last-child {
  border-bottom: none;
}

/* --- Steps --- */
.step-number {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-gray-mid);
  margin-bottom: 24px;
  display: block;
}

/* --- Pricing --- */
.pricing-card {
  padding: 64px 48px;
  border: 1px solid var(--color-gray-border);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--color-black);
}
.pricing-tag {
  position: absolute;
  top: -16px;
  left: 48px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background: var(--color-black);
}
.pricing-name {
  font-size: 32px;
  font-weight: 800;
}
.pricing-target {
  font-size: 16px;
  color: var(--color-gray-mid);
  font-weight: 300;
  margin-top: 8px;
  margin-bottom: 40px;
}
.pricing-price {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 40px;
}
.pricing-price small {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-gray-mid);
}
.pricing-features {
  flex: 1;
  margin-bottom: 48px;
}
.pricing-features li {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-gray-border);
}
.pricing-features li:last-child {
  border-bottom: none;
}

/* --- Use Cases --- */
.case-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.case-card {
  padding: 64px;
  border: 1px solid var(--color-gray-border);
  background: var(--color-white);
}
.case-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-mid);
  margin-bottom: 24px;
  display: block;
}
.case-card h3 {
  font-size: 32px;
  margin-bottom: 24px;
}
.case-card p {
  font-size: 18px;
  font-weight: 300;
  color: var(--color-gray-mid);
}
.case-stats {
  display: flex;
  gap: 64px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-gray-border);
}
.case-stat-value {
  font-size: 40px;
  font-weight: 800;
}
.case-stat-label {
  font-size: 14px;
  color: var(--color-gray-mid);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Section images --- */
.section-image {
  border: 1px solid var(--color-gray-border);
  background: var(--color-gray-light);
  overflow: hidden;
}
.section-image img {
  width: 100%;
  height: auto;
  display: block;
}
.image-caption {
  font-size: 13px;
  color: var(--color-gray-mid);
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--color-gray-border);
}

/* --- Trust / Logos --- */
.trust-item {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  padding: 48px 24px;
  border: 1px solid var(--color-gray-border);
  background: var(--color-white);
}

/* --- FAQ --- */
.faq-grid {
  margin-top: 64px;
}
.faq-item {
  border-bottom: 1px solid var(--color-gray-border);
  padding: 32px 0;
}
.faq-item:first-child {
  border-top: 1px solid var(--color-gray-border);
}
.faq-item summary {
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  color: var(--color-gray-mid);
  margin-top: 24px;
  font-size: 18px;
  font-weight: 300;
  max-width: 800px;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 120px 40px;
  border: 1px solid var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
}
.cta-banner h2 {
  color: var(--color-white);
}
.cta-banner p {
  color: var(--color-gray-mid);
  font-size: 24px;
  margin: 0 auto 48px;
  max-width: 640px;
}
.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.cta-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-black);
}
.cta-banner .btn-primary:hover {
  background: var(--color-gray-border);
}
.cta-banner .btn-outline {
  color: var(--color-white);
  border-color: var(--color-white);
}
.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-detail {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-gray-border);
  font-size: 18px;
}
.contact-detail:first-of-type {
  border-top: 1px solid var(--color-gray-border);
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-gray-border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 80px;
}
.footer-brand {
  max-width: 400px;
}
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--color-black);
  margin-bottom: 24px;
  display: block;
}
.footer-logo span {
  font-weight: 300;
}
.footer-brand p {
  font-size: 15px;
  color: var(--color-gray-mid);
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 80px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--color-gray-mid);
  padding: 8px 0;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--color-black);
}
.footer-bottom {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-border);
  font-size: 13px;
  color: var(--color-gray-mid);
  display: flex;
  justify-content: space-between;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--color-gray-border);
}
.page-hero h1 {
  margin-bottom: 24px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 120px;
  }
  h1, .h1 { font-size: 56px; }
  h2, .h2 { font-size: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .footer-inner { flex-direction: column; gap: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }
  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 32px; }
  h3, .h3 { font-size: 24px; }
  .subtitle { font-size: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 32px; }
  .pricing-card { padding: 40px 24px; }
  .cta-banner { padding: 64px 24px; }
  .footer-links { flex-direction: column; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
