/* ════════════════════════════════════════════════
   MAZA US Tools — Luxury Dark Design System
   Aesthetic DNA: BrewOak / Setupod Flagship Dark
   Deep Midnight Obsidian + Electric Sapphire / Ice 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: #06090e;
  --bg-radial: #131b2e;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-card-active: rgba(28, 44, 78, 0.95);
  --bg-input: rgba(8, 12, 20, 0.65);

  /* Delicate Luminous Borders */
  --border-subtle: rgba(96, 165, 250, 0.14);
  --border-hover: rgba(96, 165, 250, 0.32);
  --border-strong: rgba(96, 165, 250, 0.5);

  /* Accent: Electric Sapphire → Ice Cyan */
  --accent-1: #3b82f6;
  --accent-2: #60a5fa;
  --accent-3: #93c5fd;
  --accent-spark: #38bdf8;
  --accent-glow: rgba(59, 130, 246, 0.28);
  --accent-glow-strong: rgba(59, 130, 246, 0.5);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(6, 182, 212, 0.12) 100%);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(241, 245, 249, 0.72);
  --text-tertiary: rgba(241, 245, 249, 0.45);
  --text-muted: rgba(241, 245, 249, 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(96, 165, 250, 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;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #93c5fd 0%, #38bdf8 100%);
  -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 {
  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 {
  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 {
  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 {
  border-color: var(--accent-1);
  background: rgba(12, 18, 32, 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 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
}

/* ── Site Footer ── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 7, 12, 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, #cbd5e1); line-height: 1.85; font-size: 15px; }
.explainer h2 { color: var(--text-primary, #fff); font-size: 22px; margin: 0 0 14px; }
.explainer h3 { color: var(--text-primary, #fff); 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: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px 18px; margin: 12px 0 16px; }
.explainer a { color: #93c5fd; 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; }
