/* =========================================================
   Mindora — main.css
   Dark, minimalist, system-font stack. ~200 lines.
   ========================================================= */

/* ----- Reset & variables -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0b;
  --bg-2:        #111113;
  --bg-3:        #1a1a1e;
  --border:      #252528;
  --text:        #e8e8ea;
  --text-muted:  #6b6b72;
  --accent:      #7c5cff;
  --accent-dim:  #5a3fe0;
  --danger:      #e05252;
  --danger-dim:  #b83c3c;
  --green:       #3ecf8e;
  --font:        system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:        ui-monospace, "SF Mono", "Cascadia Mono", monospace;
  --radius:      10px;
  --radius-lg:   16px;
  --max-w:       1080px;
  --shadow:      0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.25);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .875em; background: var(--bg-3); padding: .1em .35em; border-radius: 4px; }

/* ----- Layout ------------------------------------------- */
main { flex: 1; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ----- Header ------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  background: linear-gradient(135deg, #a78bfa, #7c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo:hover { text-decoration: none; }

nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: var(--text-muted); font-size: .9rem; transition: color .15s; }
nav a:hover { color: var(--text); text-decoration: none; }

/* ----- Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dim); }

.btn.cta { background: var(--accent); color: #fff; padding: .45rem 1rem; font-size: .85rem; }
.btn.cta:hover { background: var(--accent-dim); }

.btn.large { padding: .75rem 1.75rem; font-size: 1rem; border-radius: var(--radius-lg); }

.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: var(--danger-dim); }

.btn.ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-muted); }

/* ----- Cards -------------------------------------------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* ----- Hero --------------------------------------------- */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, #e8e8ea 30%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}
.hero .tagline { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; }

/* ----- Section headings --------------------------------- */
section { padding: 3.5rem 0; }
section h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.75rem; }

/* ----- Grids -------------------------------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.agents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.card h3 { font-size: 1.05rem; font-weight: 600; margin: .75rem 0 .5rem; }
.card p { color: var(--text-muted); font-size: .9rem; }
.agent-icon { font-size: 2rem; }
.disclaimer { font-size: .78rem !important; color: #444 !important; margin-top: .5rem; font-style: italic; }

.feature-item .step { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.feature-item h3 { margin: .4rem 0 .5rem; font-size: 1.05rem; }
.feature-item p { color: var(--text-muted); font-size: .9rem; }

.privacy-block ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.privacy-block li::before { content: "✓  "; color: var(--green); font-weight: 700; }

.pricing-block h2 { text-align: center; }
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.pro { border-color: rgba(124,92,255,.55); }
.price-card h3 { font-size: 1.2rem; margin-top: 0; }
.price-intro { margin-bottom: 1rem; }
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.price-card li::before { content: "✓  "; color: var(--green); font-weight: 700; }
.soon-card { margin-top: 1.25rem; text-align: center; }
.soon-card h3 { margin-top: 0; }

.cta-block { text-align: center; padding: 4rem 0 5rem; }
.cta-block h2 { margin-bottom: .5rem; }
.cta-block p { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ----- Footer ------------------------------------------- */
.site-footer { text-align: center; padding: 2rem 1.5rem; color: var(--text-muted); font-size: .85rem; border-top: 1px solid var(--border); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .footer-support { color: var(--accent); font-weight: 600; }
.site-footer .footer-support:hover { color: #a78bfa; }

/* ----- Legal pages -------------------------------------- */
.legal-page { max-width: 720px; padding: 3rem 0 5rem; }
.legal-page h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .4rem; }
.legal-page section { padding: 1.5rem 0 0; border-top: 1px solid var(--border); margin-top: 1.5rem; }
.legal-page section:first-of-type { border-top: none; margin-top: 1rem; }
.legal-page h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: .95rem; margin-bottom: .5rem; }
.legal-page ul { padding-left: 1.25rem; }
.legal-callout { background: var(--bg-2); border: 1px solid rgba(124,92,255,.35); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1rem 0; }
.legal-callout p { margin-bottom: 0; color: var(--text); }
.disclaimer-box { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.disclaimer-box li { margin-bottom: .75rem; }

/* ----- Login -------------------------------------------- */
.login-page { display: flex; justify-content: center; padding: 5rem 0; }
.login-card { max-width: 420px; width: 100%; text-align: center; }
.login-card h1 { font-size: 1.75rem; margin-bottom: .75rem; }
.login-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.widget-wrapper { display: flex; justify-content: center; margin: 1.5rem 0; }
.small { font-size: .82rem; }

/* ----- Dashboard ---------------------------------------- */
.dashboard { padding: 2.5rem 0 5rem; }
.dashboard h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.75rem; }
.dashboard .card { margin-bottom: 1.25rem; }
.dashboard h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }

.profile-dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; }
.profile-dl dt { color: var(--text-muted); font-size: .875rem; }
.profile-dl dd { font-size: .875rem; }

.stat-big { font-size: 2rem; font-weight: 700; margin-bottom: .75rem; }
.stat-list { list-style: none; color: var(--text-muted); font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; }

.item-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.item-list li { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.tag { background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: .15rem .5rem; font-size: .75rem; color: var(--text-muted); white-space: nowrap; }

.integration-card h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.integration-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.integration-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: .75rem;
  padding: .25rem .65rem;
}
.status-pill.connected {
  border-color: rgba(62,207,142,.35);
  color: var(--green);
  background: rgba(62,207,142,.08);
}

.danger-zone { border-color: rgba(224,82,82,.25); }
.danger-zone h2 { color: var(--danger); }

.muted { color: var(--text-muted); }

/* ----- Responsive --------------------------------------- */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero h1 { font-size: 2.25rem; }
  nav .btn.cta { display: none; }
  .site-header { padding: .85rem 1rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  main { padding: 0 1rem; }
}
