/* ===================================================================
   금광산 (Geumgwangsan) — 공식 홈페이지
   디자인 토큰
   - Ink   : #2A1B0F  딥 브라운 (헤더/푸터, 본문 텍스트)
   - Brown : #6B4423  미드 브라운 (보조 섹션)
   - Gold  : #D9A23B  메인 골드 (포인트, 버튼)
   - Gold L: #F4D88B  라이트 골드 (하이라이트, 그라데이션)
   - Cream : #FFF7E6  배경 (메인)
   - Card  : #FFFCF5  카드 배경
   =================================================================== */

:root {
  --ink: #2a1b0f;
  --ink-soft: #4a3520;
  --brown: #6b4423;
  --brown-soft: #8a5f35;
  --gold: #d9a23b;
  --gold-deep: #b8842a;
  --gold-light: #f4d88b;
  --cream: #fff7e6;
  --cream-deep: #fbedc9;
  --card: #fffcf5;
  --white: #ffffff;
  --line: rgba(42, 27, 15, 0.1);

  --font-display: "Black Han Sans", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 40px -16px rgba(42, 27, 15, 0.28);
  --shadow-soft: 0 8px 24px -12px rgba(42, 27, 15, 0.2);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 47px;
  height: 47px;
  border-radius: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.site-nav a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-deep);
  border-bottom-color: var(--gold-deep);
}

.nav-mail {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 9px 16px !important;
  border-radius: 999px;
  border-bottom: none !important;
}

.nav-mail:hover {
  background: var(--brown);
  color: var(--cream) !important;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 70%);
  color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(184, 132, 42, 0.55);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(184, 132, 42, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(255, 247, 230, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 247, 230, 0.1);
  border-color: var(--cream);
}

.btn[disabled],
.btn.is-soon {
  cursor: default;
  opacity: 0.92;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 78% 0%, #4a3520 0%, var(--ink) 58%, #1c120a 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 64px 0 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  background: rgba(217, 162, 59, 0.16);
  border: 1px solid rgba(217, 162, 59, 0.4);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.18;
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--gold-light), var(--gold) 55%, #fff1c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 20px;
  font-size: 17.5px;
  color: rgba(255, 247, 230, 0.82);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 162, 59, 0.35), transparent 70%);
  filter: blur(4px);
}

.hero-visual img {
  position: relative;
  width: 310px;
  max-width: 80%;
  animation: float-mascot 5s ease-in-out infinite;
}

@keyframes float-mascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* live counter card */

.miner-card {
  position: absolute;
  left: -8px;
  bottom: -8px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  min-width: 248px;
  z-index: 3;
}

.miner-card .miner-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brown-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.miner-card .miner-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fae5a;
  box-shadow: 0 0 0 0 rgba(63, 174, 90, 0.5);
  animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(63, 174, 90, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 174, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 174, 90, 0); }
}

.miner-card .miner-amount {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 6px;
  color: var(--gold-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.miner-card .miner-caption {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  opacity: 0.75;
}

.miner-amount.tick {
  animation: tick-pop 0.5s ease;
}

@keyframes tick-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.04); color: var(--gold); }
  100% { transform: scale(1); }
}

.hero-divider {
  height: 110px;
  margin-top: 56px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.12));
}

/* ---------------- Section heads ---------------- */

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-head {
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  background: rgba(217, 162, 59, 0.14);
  color: var(--gold-deep);
  border-color: rgba(217, 162, 59, 0.35);
}

.section-dark .section-head .eyebrow {
  color: var(--gold-light);
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-top: 18px;
}

.section-head p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
}

.section-dark .section-head p {
  color: rgba(255, 247, 230, 0.72);
}

/* ---------------- Features ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 8px 8px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.feature-card img {
  border-radius: 22px;
  width: 100%;
}

.feature-card .feature-text {
  padding: 14px 16px 0;
}

.feature-card .feature-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
}

.feature-card h3 {
  font-size: 18px;
  margin-top: 6px;
  color: var(--ink);
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 8px 0 0;
}

/* ---------------- Showcase (screenshots) ---------------- */

.section-brown {
  background: linear-gradient(180deg, var(--brown) 0%, #5a3a1f 100%);
  color: var(--cream);
}

.section-brown .section-head .eyebrow {
  background: rgba(255, 247, 230, 0.14);
  color: var(--gold-light);
  border-color: rgba(255, 247, 230, 0.35);
}

.section-brown .section-head p {
  color: rgba(255, 247, 230, 0.82);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.phone {
  background: var(--ink);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.5);
}

.phone img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: fill;
  display: block;
}

.showcase-cap {
  text-align: center;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gold-light);
}

/* ---------------- How it works strip ---------------- */

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.flow-step {
  flex: 1;
  padding: 34px 26px;
  position: relative;
}

.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--line);
}

.flow-step .flow-icon {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-deep);
}

.flow-step h3 {
  font-size: 19px;
  margin-top: 12px;
}

.flow-step p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.55;
}

/* ---------------- CTA ---------------- */

.cta {
  background: radial-gradient(120% 160% at 50% 0%, #4a3520, var(--ink) 70%);
  color: var(--cream);
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
}

.cta p {
  margin-top: 16px;
  color: rgba(255, 247, 230, 0.75);
  font-size: 16.5px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #1c120a;
  color: rgba(255, 247, 230, 0.65);
  padding: 56px 0 32px;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 247, 230, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  color: var(--cream);
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-meta {
  margin-top: 28px;
  line-height: 1.9;
}

.footer-meta b {
  color: rgba(255, 247, 230, 0.85);
}

.footer-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.6;
}

/* ---------------- Legal pages ---------------- */

.legal-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 48px;
}

.legal-hero .wrap {
  max-width: 760px;
}

.legal-hero h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  color: var(--white);
}

.legal-hero .legal-date {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gold-light);
}

.legal-lang {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,247,230,0.55);
}

.legal-body {
  padding: 56px 0 110px;
}

.legal-body .wrap {
  max-width: 760px;
}

.legal-doc h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 19px;
  margin-top: 44px;
  margin-bottom: 12px;
  color: var(--ink);
  scroll-margin-top: 90px;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--brown-soft);
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  color: var(--ink-soft);
}

.legal-doc ol,
.legal-doc ul {
  padding-left: 20px;
  margin: 10px 0;
}

.legal-doc li {
  margin: 6px 0;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 13.8px;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--cream-deep);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.legal-note {
  margin-top: 36px;
  padding: 18px 20px;
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.toc {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.toc b {
  font-size: 13px;
  color: var(--brown-soft);
}

.toc ol {
  margin: 10px 0 0;
  padding-left: 18px;
  columns: 2;
  font-size: 13.8px;
}

.toc li {
  margin: 4px 0;
}

.toc a:hover {
  color: var(--gold-deep);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .flow {
    flex-direction: column;
  }
  .flow-step + .flow-step::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    min-height: 300px;
    margin-top: 20px;
  }
  .miner-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -16px;
  }
  .site-nav {
    gap: 16px;
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 64px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
  .footer-top {
    flex-direction: column;
  }
  .toc ol {
    columns: 1;
  }
  .site-nav .nav-label {
    display: none;
  }
  .brand {
    font-size: 28px;
  }
  .site-header .wrap {
    height: 70px;
  }
  .site-nav {
    gap: 14px;
  }
  .site-nav a:not(.nav-mail):not([aria-current="page"]) {
    display: none;
  }
  .nav-mail {
    padding: 8px 14px !important;
    font-size: 13.5px;
  }
}

@media (max-width: 520px) {
  .site-nav {
    gap: 12px;
  }
}
