/* ════════════════════════════════════════════════
   AutoSite Tools — Luxury Dark Design System
   Aesthetic DNA: BrewOak / Setupod Flagship Dark
   Deep Velvet Onyx + Neon Emerald / Mint Cyan Glow
   ════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Brand Atmospheric Dark Colors */
  --bg-primary: #060908;
  --bg-radial: #0d1a16;
  --bg-card: rgba(12, 22, 19, 0.72);
  --bg-card-hover: rgba(18, 32, 28, 0.85);
  --bg-card-active: rgba(22, 42, 36, 0.95);
  --bg-input: rgba(6, 12, 10, 0.65);

  /* Delicate Luminous Borders */
  --border-subtle: rgba(16, 185, 129, 0.14);
  --border-hover: rgba(16, 185, 129, 0.32);
  --border-strong: rgba(16, 185, 129, 0.5);

  /* Accent: Neon Emerald → Mint Cyan */
  --accent-1: #10b981;
  --accent-2: #06b6d4;
  --accent-3: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.28);
  --accent-glow-strong: rgba(16, 185, 129, 0.5);
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.12) 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(240, 253, 244, 0.72);
  --text-tertiary: rgba(240, 253, 244, 0.45);
  --text-muted: rgba(240, 253, 244, 0.3);

  /* Spacing */
  --container-max: 1100px;
  --container-narrow: 820px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s var(--ease-out);
  --transition-med: all 0.3s var(--ease-out);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% -12%, var(--bg-radial) 0%, var(--bg-primary) 68%), var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ── Subtle Dot Matrix Texture (BrewOak DNA) ── */
.bg-mesh {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(16, 185, 129, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Typography & Gradient Text ── */
.font-display {
  font-family: 'Montserrat', sans-serif;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Containers ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Luxury Glass Cards (Cockpit Glass Panel) ── */
.card-box, .calc-card, .doc-box, .tool-card, .guide-card, .legal-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
  transition: var(--transition-med);
}

.card-box:hover, .calc-card:hover, .tool-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-glow);
}

/* ── High-End Form Inputs ── */
.form-input, .form-select {
  width: 100%;
  height: 50px;
  padding: 0 42px 0 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: 'Montserrat', 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-1);
  background: rgba(10, 20, 16, 0.85);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ── Luxury Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.08);
}

.btn--secondary {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #ffffff;
}

/* ── Pill Badges ── */
.badge-pill, .section-badge, .top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.18);
}

/* ── Site Footer ── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 8, 7, 0.95);
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-top {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 2.4fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-tertiary);
  max-width: 380px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-1);
  transform: translateX(2px);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 540px) {
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── 도구 설명 글 (2026-10-14) ── */
.explainer { max-width: 860px; margin: 56px auto 24px; padding: 0 20px; color: var(--text-secondary); line-height: 1.85; font-size: 15px; }
.explainer h2 { color: var(--text-primary); font-size: 22px; margin: 0 0 14px; letter-spacing: -0.01em; }
.explainer h3 { color: var(--text-primary); font-size: 16px; margin: 26px 0 8px; }
.explainer p, .explainer li { margin: 0 0 10px; }
.explainer ul, .explainer ol { padding-left: 20px; margin: 0 0 12px; }
.explainer code { background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.explainer .ex-box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 16px 18px; margin: 12px 0 16px; }
.explainer a { color: var(--accent-3); text-decoration: underline; }
.explainer-note { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.35); color: #fde68a; border-radius: 12px; padding: 12px 16px; margin: 14px 0 18px; font-size: 14px; line-height: 1.7; }


/* ── 공통 콘텐츠 블록 (2026-11-13) ── */
.cmp-table { width:100%; border-collapse:collapse; margin:16px 0 22px; font-size:14px; }
.cmp-table th, .cmp-table td { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.1); text-align:left; vertical-align:top; }
.cmp-table thead th { color:#fff; font-weight:700; background:rgba(255,255,255,0.04); }
.cmp-table td.num, .cmp-table th.num { text-align:right; font-variant-numeric:tabular-nums; }
.cmp-table .neg { color:#f87171; font-weight:700; }
.cmp-table .pos { color:#34d399; font-weight:700; }
.tbl-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.note-box { margin:18px 0; padding:14px 16px; border:1px solid rgba(255,255,255,0.14); border-left:3px solid #f59e0b; border-radius:10px; font-size:14px; line-height:1.7; }
.src-box { margin:22px 0; padding:14px 16px; border:1px solid rgba(255,255,255,0.12); border-left:3px solid #10b981; border-radius:10px; font-size:13.5px; line-height:1.7; }
.src-box h3 { margin:0 0 6px; font-size:14px; }
.src-box ul { margin:6px 0 0 18px; padding:0; }
.formula { display:block; margin:12px 0; padding:12px 14px; border-radius:10px; background:rgba(255,255,255,0.05); font-family:ui-monospace,Menlo,Consolas,monospace; font-size:14px; line-height:1.8; overflow-x:auto; }
.how-box { margin:28px 0; padding:20px 22px; border:1px solid rgba(255,255,255,0.12); border-radius:14px; background:rgba(255,255,255,0.03); }
.how-box h2 { margin-top:0; }
.how-box h3 { font-size:15px; margin:16px 0 6px; }
.how-box p, .how-box li { font-size:14px; line-height:1.75; }
