/* Conjure — dark "magic" theme */
:root {
  --bg: #0b0a12;
  --bg-soft: #131120;
  --card: #17142a;
  --card-2: #1d1936;
  --border: #2c2650;
  --text: #ece9ff;
  --muted: #9c96c0;
  --accent: #8b5cf6;
  --accent-2: #f59e0b;
  --good: #34d399;
  --bad: #f87171;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.logo span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav .links a { color: var(--muted); font-size: 0.95rem; }
nav .links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; border: none; font: inherit;
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
  background: var(--card-2); color: var(--text); border: 1px solid var(--border);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}
.btn.gold { background: linear-gradient(135deg, var(--accent-2), #d97706); border-color: transparent; color: #1a1205; }
.btn.small { padding: 7px 14px; font-size: 0.85rem; border-radius: 8px; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; overflow: hidden; padding: 80px 24px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(500px 350px at 75% 70%, rgba(245, 158, 11, 0.12), transparent 70%);
}
.hero .eyebrow {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 850; letter-spacing: -0.03em;
  line-height: 1.08; max-width: 850px; position: relative;
}
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { margin: 24px auto 36px; max-width: 620px; color: var(--muted); font-size: 1.2rem; position: relative; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; position: relative; }
.hero .fineprint { margin-top: 22px; color: var(--muted); font-size: 0.85rem; position: relative; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-soft); }
h2.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
p.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 12px auto 48px; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
}

/* Pricing */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 2px; }
.price-card .per { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
.price-card ul { list-style: none; margin: 0 0 22px; flex: 1; }
.price-card ul li { padding: 6px 0; color: var(--muted); font-size: 0.92rem; }
.price-card ul li::before { content: "✦ "; color: var(--accent-2); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(139, 92, 246, 0.18); }
.badge-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase;
}

/* App / dashboard */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.panel h3 { margin-bottom: 16px; }
.auth-box { max-width: 420px; margin: 0 auto; text-align: center; }
.auth-box .btn { width: 100%; margin-bottom: 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

label { display: block; font-size: 0.85rem; font-weight: 600; margin: 14px 0 6px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], textarea, select {
  width: 100%; padding: 11px 14px; border-radius: 10px; font: inherit;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }

.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.dash-head .who { color: var(--muted); font-size: 0.9rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.project-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px;
  margin-bottom: 12px; background: var(--card-2); cursor: pointer;
}
.project-item:hover { border-color: var(--accent); }
.project-item .row1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.project-item h4 { font-size: 1rem; }
.project-item .meta { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.chip {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.chip.submitted { color: #93c5fd; border-color: #3b5aa0; }
.chip.in_review { color: #fcd34d; border-color: #a07d1d; }
.chip.approved, .chip.building { color: #c4b5fd; border-color: #6d5ac0; }
.chip.ready, .chip.fulfilled { color: var(--good); border-color: #1f7a5c; }
.chip.rejected { color: var(--bad); border-color: #99403c; }
.chip.pending { color: #fcd34d; border-color: #a07d1d; }

.detail-box { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; cursor: default; }
.detail-box .spec { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 0.88rem; color: var(--muted); max-height: 180px; overflow-y: auto; }
.note { background: var(--bg); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 0.88rem; color: var(--muted); margin: 10px 0; }
.artifact-box { background: rgba(52, 211, 153, 0.08); border: 1px solid #1f7a5c; border-radius: 10px; padding: 16px; margin: 12px 0; }

.svc-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.svc-item:last-child { border-bottom: none; }
.svc-item .nm { font-weight: 600; font-size: 0.95rem; }
.svc-item .ds { color: var(--muted); font-size: 0.82rem; }
.svc-item .pr { font-weight: 700; color: var(--accent-2); white-space: nowrap; }

.empty { color: var(--muted); text-align: center; padding: 32px 0; font-size: 0.95rem; }

/* Admin */
.tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  font: inherit; cursor: pointer; padding: 9px 18px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--muted); font-weight: 600;
}
.tabs button.active { background: var(--card-2); color: var(--text); border-color: var(--accent); }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--card-2); border: 1px solid var(--accent); color: var(--text);
  padding: 12px 22px; border-radius: 10px; font-size: 0.9rem; z-index: 100;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; }
.demo-banner {
  background: rgba(245, 158, 11, 0.1); border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-2); text-align: center; font-size: 0.8rem; padding: 6px 12px;
}
