:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f3;
  --bg-dark: #14181c;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #e5e5e1;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --brand: #c8102e;
  --brand-dark: #9a0c23;
  --accent: #f3b71f;
  --radius: 8px;
  --maxw: 1160px;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --bg-alt: #181b21;
  --bg-dark: #0a0c10;
  --ink: #ececec;
  --ink-soft: #a8aab0;
  --line: #2a2e36;
  --card-bg: #181b21;
  --header-bg: rgba(15, 17, 21, 0.92);
}

html { color-scheme: light dark; }
[data-theme="dark"] html { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--brand); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.logo span { color: var(--brand); }
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav a:hover { color: var(--brand); }
.header-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .nav { display: none; }
}

/* HERO */
.hero {
  background:
    linear-gradient(135deg, rgba(20, 24, 28, 0.85), rgba(20, 24, 28, 0.65)),
    repeating-linear-gradient(45deg, #2a2f35 0 12px, #23272d 12px 24px);
  color: #fff;
  padding: 100px 0 110px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.2;
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}
.hero .hl {
  background: linear-gradient(180deg, transparent 60%, var(--brand) 60%);
  padding: 0 6px;
}
.hero .lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* SECTIONS */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-weight: 800;
  margin: 0 0 12px;
}
.section-eyebrow.light { color: var(--accent); }
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.25;
}
.section-title.light { color: #fff; }
.section-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 50px;
}
.section-dark .section-desc { color: rgba(255, 255, 255, 0.7); }

/* GRID */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* SERVICE CARDS */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.card-icon { font-size: 36px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 800; }
.card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* PROCESS */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process li {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-left: 4px solid var(--brand);
}
.process .step {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.process h4 { font-size: 17px; margin: 0 0 8px; font-weight: 800; }
.process p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .process { grid-template-columns: 1fr; }
}

/* WORKS */
.work {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
}
.work-img {
  height: 200px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)),
    repeating-linear-gradient(45deg, #555 0 10px, #666 10px 20px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-img::after {
  content: attr(data-label);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
}
.work figcaption { padding: 18px 20px; }
.work h4 { font-size: 16px; margin: 0 0 4px; font-weight: 800; }
.work p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* REASONS */
.reasons .reason {
  background: rgba(255, 255, 255, 0.04);
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.reason-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 14px;
}
.reason h3 { font-size: 19px; margin: 0 0 10px; font-weight: 800; }
.reason p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stats div { text-align: center; }
.stats strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  display: block;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 850px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info { margin-top: 24px; }
.contact-info li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.contact-info a:hover { color: var(--brand); }

.quote-form {
  background: var(--bg-alt);
  padding: 32px;
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
}
.quote-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 4px 0 0;
  text-align: center;
}

/* FOOTER */
.site-footer {
  background: #0d1014;
  color: rgba(255, 255, 255, 0.6);
  padding: 50px 0 40px;
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
.site-footer .logo { color: #fff; font-size: 20px; }
.footer-desc { margin: 8px 0 0; font-size: 13px; }
.footer-meta p { margin: 4px 0; }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* FLOATING CALL */
.float-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
  z-index: 100;
  transition: transform 0.15s;
}
.float-call:hover { transform: scale(1.08); }

html { scroll-behavior: smooth; }
