/* ==========================================================================
   BuyHunter – Design System (Launch Funnel Demo)
   Wird von allen Seiten geladen: sales / checkout / upsell / thankyou / admin
   ========================================================================== */

:root {
  --bg: #05070a;
  --bg-2: #080b11;
  --panel: #0c1118;
  --panel-2: #101722;
  --navy: #0d1524;
  --anthracite: #141a23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef3f8;
  --text-2: #a9b6c6;
  --text-3: #6f7d8f;
  --green: #ffb547;
  --green-2: #e0912b;
  --green-deep: #3a2405;
  --cyan: #ff7a45;
  --amber: #ffc44d;
  --red: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --glow-green: 0 0 0 1px rgba(255, 181, 71, 0.3), 0 24px 70px -30px rgba(255, 181, 71, 0.45);
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(255, 181, 71, 0.13), transparent 70%),
    radial-gradient(760px 480px at 8% 4%, rgba(255, 122, 69, 0.09), transparent 70%),
    radial-gradient(1100px 700px at 50% 110%, rgba(13, 21, 36, 0.9), transparent 70%);
}

.bh-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 3px 3px;
}

main, header, footer, section { position: relative; z-index: 1; }

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 90px) 0; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.22rem); color: var(--text-2); }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 36px; }
.mono { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }

/* --- Eyebrow / badges ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.28);
  background: rgba(255, 181, 71, 0.07);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.badge--green { color: var(--green); border-color: rgba(255, 181, 71, 0.35); background: rgba(255, 181, 71, 0.1); }
.badge--cyan { color: var(--cyan); border-color: rgba(255, 122, 69, 0.3); background: rgba(255, 122, 69, 0.08); }
.badge--amber { color: var(--amber); border-color: rgba(255, 196, 77, 0.32); background: rgba(255, 196, 77, 0.1); }
.badge--red { color: var(--red); border-color: rgba(255, 107, 107, 0.3); background: rgba(255, 107, 107, 0.1); }

/* --- Cards / glass ------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.card--flat { box-shadow: none; }
.card--solid { background: var(--panel); backdrop-filter: none; }
.card--green { border-color: rgba(255, 181, 71, 0.35); box-shadow: var(--glow-green); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 16px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, opacity 0.2s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #2a1a04;
  box-shadow: 0 18px 45px -18px rgba(255, 181, 71, 0.65);
}
.btn--primary:hover { box-shadow: 0 26px 60px -18px rgba(255, 181, 71, 0.8); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn--quiet { background: transparent; color: var(--text-2); border-color: transparent; padding: 10px 4px; }
.btn--quiet:hover { color: var(--text); }

.btn--lg { font-size: clamp(1.05rem, 1.5vw, 1.35rem); padding: 22px 36px; border-radius: 16px; }
.btn--xl { font-size: clamp(1.1rem, 1.8vw, 1.55rem); padding: 26px 40px; border-radius: 18px; }
.btn--block { width: 100%; }
.btn--danger { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.35); color: #ffb3b3; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.nav-links { display: flex; gap: 28px; font-size: 0.94rem; color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.03em; }
.logo svg { display: block; }
.logo span b { color: var(--green); font-weight: 800; }

/* --- Feature list ------------------------------------------------------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 0.99rem; }
.check-list li svg { flex: none; margin-top: 3px; }
.check-list li b { color: var(--text); font-weight: 600; }

/* --- Score ring / pills ------------------------------------------------- */
.score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 181, 71, 0.35);
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.16), rgba(255, 181, 71, 0.04));
}
.score b { font-size: 1.35rem; line-height: 1; color: var(--green); }
.score small { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: 5px; }

.dot-live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.6);
  animation: pulse 2.1s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 181, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); }
}

/* --- Forms -------------------------------------------------------------- */
.field { display: block; }
.field > span.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
input[type="text"], input[type="email"], select {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: rgba(255, 181, 71, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.12);
  background: rgba(255, 255, 255, 0.055);
}
input::placeholder { color: var(--text-3); }
input.invalid, select.invalid { border-color: rgba(255, 107, 107, 0.7); box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1); }
select { appearance: none; background-image: none; }
option { background: #0c1118; color: var(--text); }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }

.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.segmented button {
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-2);
  background: transparent; border: 0; padding: 9px 18px; border-radius: 9px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: rgba(255, 181, 71, 0.16); color: var(--green); }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--text-2); cursor: pointer; }
.checkbox input { appearance: none; flex: none; width: 21px; height: 21px; border-radius: 7px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); cursor: pointer; position: relative; margin: 0; }
.checkbox input:checked { background: var(--green); border-color: var(--green); }
.checkbox input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #2a1a04; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* --- Table -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 1020px; }
table.data th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; padding: 15px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02); white-space: nowrap;
}
table.data td { padding: 15px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); color: var(--text-2); white-space: nowrap; }
table.data tbody tr { cursor: pointer; transition: background 0.15s ease; }
table.data tbody tr:hover { background: rgba(255, 181, 71, 0.05); }
table.data td b { color: var(--text); }

/* --- Reveal animation --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.22,.7,.3,1), transform 0.7s cubic-bezier(.22,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-3); font-size: 0.86rem; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer a:hover { color: var(--text-2); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .card { padding: 22px; }
}

/* BuyHunter production refinements */
@media (max-width: 760px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn--xl { width: 100%; padding: 20px 22px; }
  .site-footer .inner { align-items:flex-start; }
}
