/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f172a;
  --bg-card:   #1e293b;
  --bg-dark:   #080f1e;
  --border:    #1e293b;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --text-dim:  #64748b;
  --accent:    #3b82f6;
  --accent-2:  #60a5fa;
  --danger:    #ef4444;
  --warn:      #f59e0b;
  --success:   #22c55e;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── UTILITIES ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: #f8fafc;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

.body-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ── ANIMATION BASE ── */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-anim="fade-right"] { transform: translateX(-28px); }
[data-anim="fade-left"]  { transform: translateX(28px); }
[data-anim].is-visible {
  opacity: 1;
  transform: translate(0);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(15,23,42,0.95);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  font-size: 15px;
  color: var(--text-muted);
  padding: 6px 0;
}
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb-1 {
  width: 600px; height: 600px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  animation: drift 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, #ef4444, transparent 70%);
  animation: drift 15s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 72px;
  padding: 28px 48px;
  background: rgba(30,41,59,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
}
.stat-unit {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── SECTION ── */
.section {
  padding: 96px 0;
}
.section-dark { background: var(--bg-dark); }
.section-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 60px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.accent-bar {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 20px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(59,130,246,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(59,130,246,0.25);
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.12);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 16px 0 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.service-icon {
  font-size: 28px;
  color: var(--accent);
}
.service-num {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}

/* ── WORKS ── */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.work-card--large { grid-column: 1 / 2; grid-row: 1 / 3; }
a.work-card { color: inherit; text-decoration: none; display: block; }
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.work-card:hover { border-color: var(--accent); transform: scale(1.01); }
.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
  position: relative;
  overflow: hidden;
}
.work-card--large .work-thumb { aspect-ratio: 4 / 5; }
.work-thumb-inner {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, var(--accent) 0%, transparent 60%);
  opacity: 0.15;
  transition: opacity var(--transition);
}
.work-card:hover .work-thumb-inner { opacity: 0.28; }
.work-info { padding: 20px 22px; }
.work-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.work-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 8px 0 6px;
}
.work-info p { font-size: 13px; color: var(--text-muted); }

/* ── TESTIMONIAL ── */
.testimonial-slider {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-wrap {
  min-width: 100%;
  text-align: center;
  padding: 20px 0;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.testimonial-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s;
}
.testimonial-dots .dot.active {
  background: var(--accent);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.4;
  display: block;
  margin-bottom: 20px;
}
blockquote {
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 300;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.testimonial-author strong { display: block; font-size: 14px; color: #f1f5f9; }
.testimonial-author span  { font-size: 12px; color: var(--text-dim); }

/* ── CONTACT ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-icon { color: var(--accent); font-size: 16px; width: 20px; text-align: center; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.ref-url {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  width: 100%;
  margin-bottom: 6px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ref-url:last-child { margin-bottom: 0; }
.ref-url::placeholder { color: var(--text-dim); }
.ref-url:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.file-input-hidden { display: none; }
.file-upload-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.file-upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
  color: var(--text-muted);
}
.file-upload-btn:hover { border-color: var(--accent); background: rgba(59,130,246,0.04); }
.file-upload-btn.has-file { border-style: solid; border-color: var(--accent); color: var(--text); }
.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}
.file-upload-btn.has-file .file-icon { background: var(--accent); color: #fff; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 16px;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-success {
  display: none;
  text-align: center;
  font-size: 14px;
  color: var(--success);
  padding: 12px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
}
.form-success.show { display: block; }

/* ── FOOTER ── */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); margin-top: 5px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── BACK TO TOP ── */
.grecaptcha-badge { bottom: 80px !important; }

.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
  z-index: 99;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--accent-2); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap  { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner  { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 24px; padding: 24px 28px; }
  .stat-divider { width: 48px; height: 1px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-column: auto; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── IMAGE SLIDESHOW ── */
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: imgFade 12s infinite;
}
.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 4s; }
.slide-img:nth-child(3) { animation-delay: 8s; }

/* 5장용 (large 카드) */
.work-card--large .slide-img { animation: imgFade5 20s infinite; }
.work-card--large .slide-img:nth-child(1) { animation-delay: 0s; }
.work-card--large .slide-img:nth-child(2) { animation-delay: 4s; }
.work-card--large .slide-img:nth-child(3) { animation-delay: 8s; }
.work-card--large .slide-img:nth-child(4) { animation-delay: 12s; }
.work-card--large .slide-img:nth-child(5) { animation-delay: 16s; }
@keyframes imgFade5 {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes imgFade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  41%  { opacity: 0; }
  100% { opacity: 0; }
}
