/* Daria MCP — Homepage / landing
 * Dark "Ink + Mahogany" theme. Reuses the same token vocabulary as auth.css
 * but lays out a scrolling landing column instead of a centered card. */

:root {
  --ink:          hsl(120, 10%, 1%);
  --mahogany:     hsl(18, 65%, 6%);
  --surface:      hsl(18, 70%, 10%);
  --surface-2:    hsl(18, 72%, 14%);
  --border:       hsl(18, 55%, 18%);
  --border-soft:  hsl(18, 50%, 14%);

  --text:         hsl(34, 60%, 92%);
  --text-muted:   hsl(28, 26%, 70%);
  --text-faint:   hsl(28, 20%, 52%);

  --primary:        hsl(28, 86%, 49%);
  --primary-hover:  hsl(29, 90%, 57%);
  --primary-soft:   hsl(22, 70%, 13%);
  --on-primary:     hsl(18, 80%, 7%);

  --font-display: 'Crimson Pro', Georgia, serif;
  --font-sans:    'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-card:  16px;
  --radius-md:    11px;
  --radius-pill:  9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

/* Atmospheric backdrop — concentrated at the top behind the hero */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 60% at 50% -8%, hsla(28, 86%, 49%, 0.18), transparent 50%),
    url('/auth/assets/banner.png') center top / 1200px auto no-repeat;
  opacity: 0.42;
  filter: saturate(0.9);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsla(120,10%,1%,0.25) 0%, hsla(120,10%,1%,0.75) 40%, var(--ink) 70%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 0 0;
}
.topbar__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border), 0 0 20px -4px hsla(28, 86%, 49%, 0.55);
}
.topbar__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1; }
.topbar__sub { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-faint); margin-top: 2px; }
.topbar__badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid hsla(28, 86%, 49%, 0.3);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.topbar__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-muted);
  margin-left: 14px;
}
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: hsl(150, 60%, 45%);
  box-shadow: 0 0 10px hsl(150, 70%, 45%);
}

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 64px 0 8px; text-align: center; }
.hero__eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero__title em { color: var(--primary); font-style: normal; }
.hero__lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ── Connect URL block ───────────────────────────────── */
.connect {
  margin: 40px auto 0;
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: 0 30px 70px -28px hsla(0,0%,0%,0.7);
  position: relative;
}
.connect::before {
  content: "";
  position: absolute; top: 0; left: 26px; right: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, hsla(28,86%,55%,0.7), transparent);
}
.connect__label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 11px; display: block; text-align: left;
}
.urlrow {
  display: flex; align-items: stretch; gap: 9px;
}
.urlrow__field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  background: hsla(18, 60%, 7%, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text);
  overflow: hidden;
}
.urlrow__field svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.urlrow__field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copybtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 80ms ease;
}
.copybtn:hover { background: var(--primary-hover); }
.copybtn:active { transform: translateY(1px); }
.copybtn svg { width: 15px; height: 15px; }
.connect__hint {
  margin-top: 13px;
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.connect__hint svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

/* ── Section heading ─────────────────────────────────── */
.section { margin-top: 72px; }
.section__head { margin-bottom: 26px; }
.section__kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 9px;
}
.section__title {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1;
  letter-spacing: -0.2px;
}
.section__sub { font-size: 15px; color: var(--text-muted); margin-top: 8px; max-width: 560px; text-wrap: pretty; }

/* ── Steps ───────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.step__num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid hsla(28, 86%, 49%, 0.35);
}
.step__body { flex: 1; min-width: 0; }
.step__title { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.step__title code, .step__body code {
  font-family: var(--font-mono); font-size: 13px; color: var(--primary);
  background: var(--primary-soft); border: 1px solid hsla(28,86%,49%,0.25);
  padding: 1px 7px; border-radius: 6px;
}
.step__desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.step__desc a { color: var(--primary); text-decoration: none; }
.step__desc a:hover { text-decoration: underline; }

/* Code block inside a step */
.codeblock {
  margin-top: 13px;
  background: hsl(18, 55%, 5%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.codeblock__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px;
  border-bottom: 1px solid var(--border-soft);
  background: hsla(18, 60%, 8%, 0.6);
}
.codeblock__file { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.codeblock__copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  transition: color 120ms ease;
}
.codeblock__copy:hover { color: var(--primary); }
.codeblock__copy svg { width: 12px; height: 12px; }
.codeblock pre {
  margin: 0; padding: 15px 16px;
  overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.65;
  color: var(--text);
}
.tok-key { color: hsl(28, 70%, 70%); }
.tok-str { color: hsl(150, 40%, 62%); }
.tok-punc { color: var(--text-faint); }

/* Client tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}
.tab:hover { border-color: hsl(18,55%,26%); color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.tabpanel { display: none; }
.tabpanel[data-active] { display: block; }

/* ── Tools grid ──────────────────────────────────────── */
.tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.tool:hover { border-color: hsl(18,55%,26%); transform: translateY(-2px); }
.tool__icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px hsla(28,86%,49%,0.25);
  margin-bottom: 14px;
}
.tool__icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.tool__name { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.tool__name code { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 400; display: block; margin-top: 3px; }
.tool__desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ── Scope / privacy callout ─────────────────────────── */
.callout {
  margin-top: 22px;
  display: flex; gap: 14px;
  background: hsla(18, 60%, 8%, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.callout svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.callout__title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.callout__desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ── Footer ──────────────────────────────────────────── */
.foot {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.foot__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.foot__brand img { width: 26px; height: 26px; border-radius: 50%; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { color: var(--text-faint); font-size: 13.5px; text-decoration: none; transition: color 120ms ease; }
.foot__links a:hover { color: var(--primary); }

/* Copied toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
  box-shadow: 0 20px 50px -16px hsla(0,0%,0%,0.8);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 50;
}
.toast svg { width: 16px; height: 16px; color: var(--primary); }
.toast[data-show] { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
  .tools { grid-template-columns: 1fr; }
  .urlrow { flex-direction: column; }
  .copybtn { justify-content: center; }
  .hero { padding-top: 44px; }
}
