/* Dashovia — Neumorphic UI (light soft-gray + indigo) */
:root {
  --surface: #e0e5ec;
  --surface-2: #e6ebf2;
  --text: #3a4256;
  --text-strong: #2b3140;
  --muted: #8a93a6;
  --accent: #5b6ef5;
  --accent-ink: #ffffff;
  --danger: #e05a5a;
  --ok: #34a887;
  --warn: #c9922b;

  --shadow-dark: #a3b1c6;
  --shadow-light: #ffffff;

  /* Raised (extruded) and inset (pressed) neumorphic shadows */
  --raise: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  --raise-sm: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  --raise-lg: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
  --inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  --inset-sm: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);

  --radius: 20px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.82; }

.container { width: min(1080px, 92vw); margin: 0 auto; padding: 40px 0 72px; flex: 1; }
.inline { display: inline; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--surface); }
.nav__inner {
  width: min(1080px, 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-strong); font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: #ffffff; box-shadow: var(--raise-sm); overflow: hidden;
}
.brand__mark img { width: 70%; height: 70%; object-fit: contain; display: block; }
.brand__name { color: var(--text-strong); }
.nav__links { display: flex; align-items: center; gap: 10px; }
.nav__links a:not(.btn) { color: var(--muted); font-size: .95rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav__links a:not(.btn):hover { color: var(--text-strong); box-shadow: var(--inset-sm); opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: none; border-radius: 14px;
  background: var(--surface); color: var(--text-strong); font: inherit; font-weight: 700;
  font-size: .92rem; cursor: pointer; box-shadow: var(--raise-sm);
  transition: box-shadow .15s ease, color .15s ease, transform .05s ease;
}
.btn:hover { box-shadow: var(--raise); }
.btn:active { box-shadow: var(--inset); transform: translateY(1px); }
.btn--primary { color: var(--accent); }
.btn--primary:hover { color: var(--accent); }
.btn--cta {
  background: linear-gradient(145deg, #6577ff, #4f61e8); color: var(--accent-ink);
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
}
.btn--cta:hover { filter: brightness(1.05); }
.btn--cta:active { box-shadow: var(--inset); }
.btn--ghost { box-shadow: none; color: var(--muted); }
.btn--ghost:hover { box-shadow: var(--inset-sm); color: var(--text-strong); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: .85rem; border-radius: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: var(--inset-sm); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 16px; letter-spacing: -1px; color: var(--text-strong); }
.hero .grad { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__meta { margin-top: 22px; color: var(--muted); font-size: .9rem; }

/* ---------- sections ---------- */
.section { margin-top: 52px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section__head h2 { font-size: 1.4rem; margin: 0; color: var(--text-strong); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--muted); font-weight: 700; }

/* ---------- card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--raise); display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--raise-lg); }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--surface); box-shadow: var(--inset-sm); margin-bottom: 14px;
}
.card__title { font-size: 1.1rem; font-weight: 800; margin: 2px 0 8px; color: var(--text-strong); }
.card__desc { color: var(--muted); font-size: .92rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.tag { font-size: .72rem; color: var(--muted); border-radius: 999px; padding: 5px 12px; box-shadow: var(--inset-sm); }

/* ---------- pricing ---------- */
.free-banner {
  background: var(--surface); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--inset);
  max-width: 760px; margin: 0 auto 28px; text-align: center; color: var(--text);
}
.free-banner b { color: var(--text-strong); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 26px auto 0; align-items: start; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; max-width: 380px; } }
.plan { position: relative; background: var(--surface); border-radius: var(--radius); padding: 32px 26px; text-align: center; box-shadow: var(--raise); }
.plan--featured { box-shadow: var(--raise-lg); }
.plan--featured .plan__price { color: var(--accent); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(145deg, #6577ff, #4f61e8); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--raise-sm); white-space: nowrap;
}
.plan__name { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; }
.plan__price { font-size: 2.9rem; font-weight: 800; margin: 10px 0 0; color: var(--text-strong); }
.plan__period { color: var(--muted); font-size: .9rem; }
.plan__blurb { color: var(--muted); font-size: .9rem; margin: 14px 0 22px; min-height: 46px; }
.feature-list { list-style: none; padding: 0; margin: 30px auto 0; max-width: 480px; text-align: left; }
.feature-list li { padding: 12px 6px; display: flex; align-items: center; gap: 12px; color: var(--text); border-bottom: 1px solid rgba(163,177,198,.25); }
.feature-list li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--ok); box-shadow: var(--inset-sm); font-weight: 800; font-size: .8rem; flex: none; }

/* ---------- forms / auth ---------- */
.auth { max-width: 420px; margin: 48px auto; background: var(--surface); border-radius: var(--radius); padding: 36px; box-shadow: var(--raise-lg); }
.auth h1 { margin: 0 0 6px; font-size: 1.6rem; color: var(--text-strong); }
.auth p.sub { color: var(--muted); margin: 0 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 13px 16px; border: none; border-radius: 12px;
  background: var(--surface); color: var(--text-strong); font: inherit; box-shadow: var(--inset);
}
.field input:focus { outline: none; box-shadow: var(--inset), 0 0 0 2px rgba(91,110,245,.25); }
.auth__foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- alerts ---------- */
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-size: .92rem; box-shadow: var(--inset-sm); }
.alert--error { color: var(--danger); }
.alert--ok { color: var(--ok); }
.alert--warn { color: var(--warn); }

/* ---------- dashboard ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--raise); }
.panel h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--text-strong); }
.panel .muted { color: var(--muted); font-size: .9rem; }
.keybar { display: flex; gap: 12px; margin-top: 16px; }
.keybar code, pre { background: var(--surface); border-radius: 12px; box-shadow: var(--inset); }
.keybar code { flex: 1; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: nowrap; color: var(--text-strong); }
.meter { height: 16px; background: var(--surface); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; box-shadow: var(--inset); }
.meter__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6577ff, #4f61e8); box-shadow: 2px 0 6px rgba(79,97,232,.4); }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; box-shadow: var(--inset-sm); }
.pill--active { color: var(--ok); }
.pill--inactive { color: var(--warn); }
.stat-row { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 14px; }
.stat b { font-size: 1.5rem; color: var(--text-strong); }
.stat span { color: var(--muted); font-size: .85rem; display: block; }

/* ---------- docs / endpoints ---------- */
.endpoint { background: var(--surface); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--raise-sm); }
.method { font-weight: 800; font-size: .74rem; padding: 5px 11px; border-radius: 8px; margin-right: 10px; box-shadow: var(--inset-sm); }
.method--GET { color: var(--accent); }
.method--POST { color: var(--ok); }
.method--PUT, .method--DELETE, .method--PATCH { color: var(--warn); }
pre { padding: 16px; overflow-x: auto; font-size: .85rem; color: var(--text-strong); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- footer ---------- */
.footer { margin-top: auto; }
.footer__inner { width: min(1080px, 92vw); margin: 0 auto; padding: 28px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; }

@media (max-width: 640px) {
  .nav__links { gap: 4px; }
  .nav__links a:not(.btn) { display: none; }
}
