/* Argon Lumina Design System (Pearl White • Sky Azure • Solar Gold • Emerald • Deep Slate) */
:root {
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --surface-tint: #f0f9ff;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --azure: #0284c7;
  --azure-dark: #0369a1;
  --azure-bright: #0ea5e9;
  --gold: #f59e0b;
  --gold-dark: #b45309;
  --gold-tint: #fffbeb;
  --emerald: #10b981;
  --emerald-dark: #047857;
  --emerald-tint: #ecfdf5;
  --error: #b91c1c;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.10), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(245, 158, 11, 0.10), transparent 34%),
    var(--bg-page);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--azure-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark strong { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark small { display: block; font-size: 0.78rem; color: var(--muted); }

.brand-orb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #0369a1);
  border: 2px solid var(--gold);
  color: #ffffff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}
.top-nav a.pill-cta {
  background: var(--azure-dark);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.22s var(--ease-spring), background 0.22s var(--ease-spring);
}
.top-nav a.pill-cta:hover { transform: translateY(-2px); background: var(--ink); }

.hero-card, .panel-card, .basket-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  margin-top: 28px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azure), var(--gold), var(--emerald));
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-dark);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.lead { margin: 0 0 18px; color: var(--ink-secondary); font-size: 1.02rem; }

.protocol-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  background: var(--surface-tint);
  border: 1px solid rgba(2, 132, 199, 0.24);
  border-radius: 12px;
  font-size: 0.85rem;
}
.badge-live { color: var(--emerald-dark); font-weight: 700; }

.sim-bar {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--gold-tint);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.sim-label { font-size: 0.84rem; font-weight: 700; color: var(--gold-dark); }
.sim-feedback { font-size: 0.84rem; font-weight: 600; color: var(--ink-secondary); }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-tile {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--line);
}
.stat-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-tile strong { display: block; margin: 3px 0; font-size: 0.96rem; }
.stat-tile small { color: var(--muted); font-size: 0.82rem; }

.panel-card { margin-top: 24px; padding: 24px 28px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: 1.4rem; letter-spacing: -0.02em; }
.muted { color: var(--muted); margin: 0; font-size: 0.92rem; }

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}
.fit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fit-summary {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-primary, .btn-secondary, .btn-gold, .btn-ghost {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring), background 0.2s;
}
.btn-primary { background: var(--azure-dark); color: #ffffff; }
.btn-primary:hover { transform: translateY(-2px); background: var(--ink); }
.btn-secondary { background: #ffffff; color: var(--ink); border-color: var(--line-strong); padding: 7px 12px; font-size: 0.83rem; }
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--azure); }
.btn-gold { background: linear-gradient(135deg, #d97706, #b45309); color: #ffffff; }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: #f1f5f9; color: var(--ink-secondary); border-color: var(--line); }
.btn-ghost:hover { background: #e2e8f0; }
.full-width { width: 100%; }

.workspace-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.gear-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s var(--ease-spring), border-color 0.24s var(--ease-spring);
}
.gear-card:hover {
  transform: translateY(-3px);
  border-color: var(--azure-bright);
}
.gear-card.fit-excluded {
  opacity: 0.58;
  background: #f8fafc;
}
.gear-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.gear-cat {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--azure-dark);
}
.gear-grade {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-tint);
  padding: 3px 9px;
  border-radius: 999px;
}
.gear-card h3 { margin: 6px 0 4px; font-size: 1.06rem; }
.gear-meta { margin: 0; font-size: 0.83rem; color: var(--muted); }
.gear-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.81rem;
}
.gear-fit-note {
  margin: 0;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--emerald-dark);
}
.gear-card.fit-excluded .gear-fit-note { color: var(--error); }
.gear-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.basket-panel { position: sticky; top: 90px; }
.basket-card { padding: 22px; }
.basket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.basket-header h2 { margin: 0; font-size: 1.25rem; }
.version-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
}
.basket-list { list-style: none; padding: 0; margin: 12px 0; }
.basket-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.basket-totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  margin: 12px 0;
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.hold-form h3 { margin: 0 0 6px; font-size: 1.08rem; }
.hold-form .field { margin-bottom: 12px; }
.small-note { font-size: 0.81rem; color: var(--muted); margin: 0 0 12px; }
.field-error {
  color: var(--error);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.receipt-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--emerald-tint);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.receipt-box h4 { margin: 2px 0 6px; font-size: 1.15rem; color: var(--emerald-dark); }
.receipt-box p { margin: 0; font-size: 0.85rem; }

.hubs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.clean-list { margin: 8px 0 0; padding-left: 18px; color: var(--ink-secondary); }
.clean-list li { margin-bottom: 8px; }

.site-footer {
  margin: 40px auto 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Official agentify-website assistant styles, tuned to Argon Lumina contrast >= 5.8:1 */
.assistant { margin-top: 32px; }
.assistant-note { font-size: 0.88rem; color: var(--muted); }

#agent-app {
  --ns-font: "Inter", "Segoe UI", system-ui, sans-serif;
  --ns-bg: #ffffff;
  --ns-fg: #0f172a;
  --ns-primary: #0369a1;
  --ns-accent: #0369a1;
  --ns-border: #cbd5e1;
  --ns-panelbg: #ffffff;
  --ns-msgbg: #f1f5f9;
  --ns-muted: #475569;
}

.assistant-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  margin-top: 16px;
}

#agent-app.ns-composed-app [data-ns-slot="chat"] { height: 680px; }
#agent-app .ns-chat { background: var(--ns-bg); }
#agent-app input[type="checkbox"],
#agent-app input[type="radio"] { width: auto; }
#agent-app .ns-header { flex-wrap: wrap; }
#agent-app .ns-settings-body label { margin: 4px 0; font-weight: 400; }
#agent-app .ns-w-label { font-family: inherit; }
#agent-app .ns-widget label { margin: 0; }
#agent-app .ns-w-radio label,
#agent-app .ns-w-multi label,
#agent-app .ns-w-toggle { font-weight: 400; }
#agent-app .ns-w-toggle { font-size: 13px; }
#agent-app button { margin: 0; }
#agent-app .ns-w-choice { color: var(--ns-fg); }
#agent-app .ns-devtoggle:not(.on):hover,
#agent-app .ns-modal-close:hover { background: transparent; }
#agent-app .ns-w-choice:disabled:hover { background: #fafbfc; }
#agent-app .ns-consent { background: #fffbeb; }
#agent-app .ns-msgs:has(.ns-consent-actions) > .ns-turn-status { display: none; }
#agent-app .ns-msg { overflow-wrap: break-word; }
#agent-app .ns-consent-actions { flex-wrap: wrap; }
#agent-app .ns-consent-actions button { white-space: nowrap; }

body > dialog h2 { margin: 0 0 12px; font: 700 1.25em system-ui, sans-serif; color: var(--ink); }
body > dialog button {
  margin-right: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--azure-dark);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}
.assistant-review {
  max-width: 640px;
  width: 88%;
  max-height: 85vh;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  font: 16px system-ui, sans-serif;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}
.assistant-review dl {
  display: grid;
  grid-template-columns: fit-content(42%) 1fr;
  gap: 6px 16px;
  margin: 14px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
}
.assistant-review dt { font-weight: 700; color: var(--ink-secondary); }
.assistant-review dd { margin: 0; overflow-wrap: anywhere; }
.assistant-review details { margin: 12px 0; font-size: 0.88rem; }
.assistant-review pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f1f5f9; padding: 10px; border-radius: 8px; }
.assistant-review .assistant-decline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }

@media (max-width: 920px) {
  .hero-card, .workspace-grid, .hubs-grid, .fit-grid { grid-template-columns: 1fr; }
  .basket-panel { position: static; }
}

@media (max-width: 760px) {
  .assistant-panels { grid-template-columns: 1fr; }
  .assistant-review dl { grid-template-columns: 1fr; gap: 0; }
  .assistant-review dd { margin-bottom: 8px; }
}
