/* Burndrop — Linear Dark / Glassmorphism / Bento design system */
:root {
  --bg: #0d0e12;
  --bg-2: #101218;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-3: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ebf2;
  --text-dim: #a7adbf;
  --text-faint: #6d7488;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.14);
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-dim: rgba(139, 92, 246, 0.16);
  --danger: #f4536e;
  --danger-dim: rgba(244, 83, 110, 0.14);
  --warn: #f5b759;
  --warn-dim: rgba(245, 183, 89, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 12% -10%, rgba(16, 185, 129, 0.09), transparent 60%),
    radial-gradient(900px 600px at 95% 0%, rgba(139, 92, 246, 0.10), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--emerald-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
code, pre, .mono { font-family: var(--mono); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------------- Glass panels & bento ---------------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-pad { padding: 22px; }

.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.bento > * { grid-column: span 12; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.row-tight { display: flex; gap: 16px; }
@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .row-tight { flex-direction: column; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 600 0.92rem var(--font);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease, border-color 0.15s ease;
  text-decoration: none !important;
  user-select: none;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), #0a8f66);
  border-color: transparent;
  color: #04120c;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--emerald-bright), var(--emerald)); }
.btn-violet {
  background: linear-gradient(135deg, var(--violet), #6d3fd6);
  border-color: transparent;
  color: #f4f0ff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}
.btn-violet:hover { background: linear-gradient(135deg, var(--violet-bright), var(--violet)); }
.btn-danger { background: var(--danger-dim); border-color: rgba(244, 83, 110, 0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(244, 83, 110, 0.25); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 14px; }

/* ---------------- Forms ---------------- */
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text-dim); margin: 14px 0 6px; }
.input, select.input, textarea.input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: 400 0.95rem var(--font);
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.input.mono { font-family: var(--mono); font-size: 0.85rem; }
textarea.input { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 0; background: var(--surface); }
legend { font-weight: 650; color: var(--text-dim); padding: 0 8px; font-size: 0.85rem; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-dim); margin: 12px 0; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--emerald); margin-top: 2px; flex: none; }

/* ---------------- Badges & progress ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 650;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim);
}
.badge-emerald { background: var(--emerald-dim); border-color: rgba(16,185,129,.35); color: var(--emerald-bright); }
.badge-violet { background: var(--violet-dim); border-color: rgba(139,92,246,.4); color: var(--violet-bright); }
.badge-danger { background: var(--danger-dim); border-color: rgba(244,83,110,.4); color: var(--danger); }
.badge-warn { background: var(--warn-dim); border-color: rgba(245,183,89,.4); color: var(--warn); }

.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--emerald-bright)); transition: width 0.4s ease; }
.progress.violet > div { background: linear-gradient(90deg, var(--violet), var(--violet-bright)); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 14, 18, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.05rem; color: var(--text); text-decoration: none !important; letter-spacing: -0.02em; }
.nav-logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: conic-gradient(from 210deg, var(--emerald), var(--violet), var(--emerald));
  display: grid; place-items: center; color: #06080c; font-size: 15px; font-weight: 900;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 550; text-decoration: none !important; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { gap: 12px; } .nav-links .hide-sm { display: none; } }

/* ---------------- Hero / landing ---------------- */
.hero { padding: 96px 0 72px; }
.hero-eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: var(--violet-dim); border: 1px solid rgba(139,92,246,.35);
  color: var(--violet-bright); font-size: 0.8rem; font-weight: 650;
}
.hero p.lead { font-size: 1.13rem; color: var(--text-dim); max-width: 620px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Terminal animation */
.terminal {
  border-radius: var(--radius);
  background: rgba(4, 6, 10, 0.85);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--mono); font-size: 0.83rem;
}
.terminal-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.terminal-bar i:nth-child(1) { background: #f4536e; } .terminal-bar i:nth-child(2) { background: #f5b759; } .terminal-bar i:nth-child(3) { background: #10b981; }
.terminal-body { padding: 18px 18px 26px; min-height: 250px; line-height: 1.75; }
.terminal-body .ln { white-space: pre-wrap; word-break: break-all; }
.terminal-body .ln.ok { color: var(--emerald-bright); }
.terminal-body .ln.violet { color: var(--violet-bright); }
.terminal-body .ln.dim { color: var(--text-faint); }
.terminal-cursor { display: inline-block; width: 8px; height: 15px; background: var(--emerald-bright); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Feature cards */
.feature { padding: 24px; height: 100%; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, var(--emerald-dim), var(--violet-dim));
  border: 1px solid var(--border);
}
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

/* Pricing */
.toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--surface); }
.toggle button {
  border: 0; background: transparent; color: var(--text-dim);
  font: 650 0.88rem var(--font); padding: 8px 20px; border-radius: 999px; cursor: pointer;
}
.toggle button.active { background: var(--surface-3); color: var(--text); }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan .price { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; }
.plan .price span { font-size: 0.95rem; color: var(--text-faint); font-weight: 500; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; color: var(--text-dim); font-size: 0.93rem; }
.plan li::before { content: "✓"; color: var(--emerald-bright); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan.highlight { border-color: rgba(139,92,246,.5); background: linear-gradient(180deg, rgba(139,92,246,.12), var(--surface)); }
.plan .pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

/* FAQ accordion */
.faq-item { margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: 650 1.02rem var(--font); padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .chev { transition: transform 0.2s ease; color: var(--text-faint); }
.faq-item.open .chev { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text-dim); font-size: 0.95rem; }
.faq-item.open .faq-a { display: block; }

/* ---------------- Tables ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text-dim); }
.table tr:hover td { background: rgba(255,255,255,.025); }
.table td:first-child { color: var(--text); }

/* ---------------- Cards (submissions) ---------------- */
.card { padding: 20px; cursor: pointer; transition: border-color .15s ease, transform .1s ease; }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------------- Modal ---------------- */
.modal-back { position: fixed; inset: 0; background: rgba(5, 6, 10, 0.7); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal { width: min(680px, 100%); max-height: 88vh; overflow: auto; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 22px; }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: grid; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 13px; font-size: 0.9rem; font-weight: 550; box-shadow: var(--shadow); border: 1px solid var(--border-strong); background: var(--bg-2); animation: toast-in .18s ease; }
.toast.ok { border-color: rgba(16,185,129,.5); color: var(--emerald-bright); }
.toast.err { border-color: rgba(244,83,110,.5); color: var(--danger); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ---------------- Consent banner ---------------- */
.consent-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; padding: 0 16px 16px; pointer-events: none; }
.consent-inner { max-width: 980px; margin: 0 auto; pointer-events: auto; padding: 18px 22px; box-shadow: var(--shadow); background: rgba(16, 18, 24, 0.92); backdrop-filter: blur(18px); }
.consent-choices { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.consent-choices label { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 0.9rem; color: var(--text-dim); cursor: pointer; }

/* ---------------- App shell ---------------- */
.app-head { border-bottom: 1px solid var(--border); background: rgba(13,14,18,.75); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 40; }
.app-head-inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--text-dim); font-size: 0.9rem; font-weight: 600; text-decoration: none !important; }
.tabs a:hover { background: var(--surface); color: var(--text); }
.tabs a.active { background: var(--surface-2); color: var(--text); }

/* Recovery mnemonic inputs */
.mnemonic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .mnemonic-grid { grid-template-columns: repeat(2, 1fr); } }
.mnemonic-grid .mword { display: flex; gap: 8px; align-items: center; }
.mnemonic-grid .num { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); width: 22px; text-align: right; }

/* Form layout blocks & option inputs */
.block-hr { border: 0; height: 1px; background: var(--border); margin: 26px 0; }
.instructions-panel {
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--emerald);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px; margin: 14px 0;
}
.instructions-panel .strong { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.note-block { padding: 6px 2px; margin: 12px 0; color: var(--text-dim); }
.option-group { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.option-item {
  display: flex; gap: 10px; align-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 0.92rem; color: var(--text-dim);
  transition: border-color .15s ease, background .15s ease;
}
.option-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.option-item input { width: 18px; height: 18px; accent-color: var(--emerald); flex: none; }
.option-group.invalid, .option-item.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-dim); }
.label-bool { font-size: 1rem; cursor: pointer; margin: 6px 0; }
.input-bool { width: 20px; height: 20px; accent-color: var(--emerald); }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 34px; text-align: center; color: var(--text-dim);
  transition: border-color .15s ease, background .15s ease; cursor: pointer;
}
.dropzone.drag { border-color: var(--emerald); background: var(--emerald-dim); color: var(--emerald-bright); }
.upload-meter { font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }

/* Misc */
.divider { height: 1px; background: var(--border); margin: 24px 0; border: 0; }
.kbd { font-family: var(--mono); font-size: 0.8em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
footer { border-top: 1px solid var(--border); padding: 40px 0 60px; margin-top: 60px; color: var(--text-faint); font-size: 0.88rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--text-faint); text-decoration: none; }
footer a:hover { color: var(--text); }

.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--border-strong); border-top-color: var(--emerald-bright); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Form validation ---------------- */
.input.invalid, .dropzone.invalid, textarea.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-dim); }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 5px; }
