/* ================================================================
   MetalHunter — Global Design System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:           #f3efe3;
  --surface:      #fffdf8;
  --surface-soft: #faf5e9;

  /* Text */
  --text:         #18120a;
  --muted:        #6b614a;

  /* Brand */
  --accent:       #9a6f12;
  --accent-light: #c49532;
  --accent-dark:  #7a5509;

  /* UI */
  --border:       #ddd0b0;
  --border-soft:  #eae0c8;

  /* State */
  --ok:           #0f6b35;
  --error:        #8a2d18;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(36, 24, 6, 0.07);
  --shadow-md:   0 8px 28px rgba(36, 24, 6, 0.10);
  --shadow-lg:   0 20px 52px rgba(36, 24, 6, 0.13);
  --shadow-soft: var(--shadow-md); /* backward compat */

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 170ms;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse at 6% 0%,  rgba(255, 243, 180, 0.50) 0%, transparent 44%),
    radial-gradient(ellipse at 96% 6%, rgba(222, 192, 126, 0.36) 0%, transparent 38%),
    linear-gradient(180deg, #f8f3e7 0%, #f2ede0 100%);
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-main,
.main {
  flex: 1;
  padding: 36px 0 56px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    rgba(31, 139, 79, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(31, 139, 79, 0);   }
  100% { box-shadow: 0 0 0 0    rgba(31, 139, 79, 0);   }
}

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(154, 111, 18, 0.07);
  border: 1px solid rgba(154, 111, 18, 0.22);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 16px;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

button.button { appearance: none; }

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(154, 111, 18, 0.38);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.button.primary {
  color: #fff;
  background: linear-gradient(155deg, #ad8018 0%, #8a5f0b 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(138, 95, 11, 0.32);
}

.button.primary:hover {
  background: linear-gradient(155deg, #9a6e12 0%, #744f09 100%);
  box-shadow: 0 8px 24px rgba(138, 95, 11, 0.40);
}

.button.share {
  background: transparent;
  border-color: rgba(154, 111, 18, 0.28);
  color: var(--accent);
}

.button.share:hover {
  background: rgba(154, 111, 18, 0.06);
  border-color: rgba(154, 111, 18, 0.45);
}

.button-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Focus ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(154, 111, 18, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Panel ─────────────────────────────────────────────────── */
.panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 18px;
  animation: riseIn 380ms var(--ease) both;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(148deg, #fffefb 0%, #fbf4e3 60%, #f7e9c1 100%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -58px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 111, 18, 0.18) 0%, transparent 72%);
  pointer-events: none;
}

.hero-copy,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

/* ── Live dot ──────────────────────────────────────────────── */
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f8b4f;
  box-shadow: 0 0 0 0 rgba(31, 139, 79, 0.7);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

/* ── Card (base) ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(154, 111, 18, 0.3);
  transform: translateY(-2px);
}

/* ── Section title ─────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── Inputs / Forms ────────────────────────────────────────── */
input, select, textarea {
  font-family: var(--font-body);
}

label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  margin-top: 44px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, transparent 0%, rgba(216, 196, 152, 0.10) 100%);
}

.footer-inner {
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 340px;
}

.footer-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.65;
  line-height: 1.5;
  max-width: 340px;
}

.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a,
.footer-links button {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
  transition: color var(--duration) var(--ease);
  text-align: left;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copyright {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Cookie banner ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: none;
  max-width: 460px;
}

.cookie-banner.show { display: block; }

.cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.cookie-btn {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition:
    border-color var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

.cookie-btn:hover {
  border-color: rgba(154, 111, 18, 0.4);
}

.cookie-btn.primary {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
}

.cookie-btn.primary:hover {
  background: var(--accent-dark);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-inner > section:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .footer-inner > section:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
