/* Telecaller.io SaaS - main styles (same for site, portal, admin) */
*,
*::before,
*::after { box-sizing:border-box; }

:root {
  --bg:#020617;
  --bg-soft:#0b1220;
  --border-subtle:rgba(148,163,184,0.35);
  --accent:#22c55e;
  --text:#e5e7eb;
  --muted:#9ca3af;
}

body {
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at top left,#020617 0,#000 45%,#020617 100%);
  color:var(--text);
}

a { color:inherit; text-decoration:none; }

.site-header {
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 28px;
  background:linear-gradient(90deg,rgba(15,23,42,0.96),rgba(15,23,42,0.9));
  border-bottom:1px solid rgba(31,41,55,0.9);
  backdrop-filter:blur(10px);
}

.logo { display:flex; align-items:center; gap:10px; }
.logo-mark {
  width:30px; height:30px; border-radius:999px; border:2px solid var(--accent);
  display:flex; align-items:center; justify-content:center; font-size:0.8rem;
}
.logo-text .brand { font-weight:700; letter-spacing:0.04em; font-size:1rem; }
.logo-text .tagline-small { font-size:0.7rem; color:var(--muted); }

.nav { display:flex; gap:12px; font-size:0.86rem; }
.nav a { color:var(--muted); }
.nav a:hover { color:var(--text); }

.nav-actions { display:flex; gap:8px; }

.btn {
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; padding:8px 16px;
  border:1px solid transparent; font-size:0.85rem; font-weight:500;
  cursor:pointer; transition:all .15s ease;
}
.btn.small { padding:6px 12px; font-size:0.78rem; }
.btn.primary { background:var(--accent); color:#052e16; border-color:var(--accent); }
.btn.primary:hover { filter:brightness(1.05); }
.btn.ghost { background:transparent; border-color:var(--border-subtle); color:var(--text); }
.btn.ghost:hover { border-color:var(--accent); }
.btn.full { width:100%; justify-content:center; }

.page { padding:28px; }
.page.narrow { max-width:960px; margin:0 auto; padding:28px 16px 40px; }

.page-header { margin-bottom:24px; }
.page-header.center { text-align:center; }
.page-header h1 { margin:0 0 6px; font-size:1.9rem; }
.page-header .subtitle { margin:0; color:var(--muted); max-width:640px; }
.page-header.center .subtitle { margin-inline:auto; }

.hero {
  display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:26px; align-items:center;
}
.hero-text h1 { margin:10px 0 10px; font-size:2.4rem; line-height:1.1; }
.hero-text h1 span { color:var(--accent); }
.subtitle { font-size:0.96rem; color:var(--muted); }
.highlight { color:var(--accent); font-weight:600; }
.pill {
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  border:1px solid var(--border-subtle); font-size:0.76rem; color:var(--muted);
}
.hero-badges { margin:14px 0 8px; display:flex; flex-wrap:wrap; gap:6px; }
.badge {
  padding:3px 9px; border-radius:999px;
  border:1px solid rgba(148,163,184,0.4); font-size:0.75rem;
}
.hero-metrics { display:flex; flex-wrap:wrap; gap:14px; margin:8px 0 20px; }
.metric { font-size:0.8rem; color:var(--muted); }
.metric strong { display:block; font-size:1.2rem; color:var(--text); }
.hero-ctas { display:flex; flex-wrap:wrap; gap:10px; }

/* Chat demo */
.hero-chat .card {
  background:radial-gradient(circle at top right,rgba(34,197,94,0.16),rgba(15,23,42,1));
  border-radius:16px; padding:14px;
  border:1px solid rgba(148,163,184,0.6);
  display:flex; flex-direction:column; min-height:340px;
}
.card-header { display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; }
.card-header h2 { margin:0; font-size:1rem; }
.muted { color:var(--muted); }
.tiny { font-size:0.7rem; }
.status { display:inline-flex; align-items:center; gap:6px; font-size:0.74rem; color:#bbf7d0; }
.status .dot { width:8px; height:8px; border-radius:999px; background:var(--accent); }

.chat-window {
  flex:1; overflow-y:auto; padding:8px;
  border-radius:12px; border:1px solid #1f2937; background:rgba(15,23,42,0.98);
  font-size:0.83rem;
}
.msg { max-width:85%; padding:7px 9px; border-radius:10px; margin-bottom:7px; white-space:pre-wrap; }
.msg-meta { display:block; font-size:0.68rem; opacity:0.75; margin-bottom:2px; }
.msg.bot { background:#020617; border:1px solid #374151; border-bottom-left-radius:3px; }
.msg.user { margin-left:auto; background:var(--accent); color:#052e16; border-bottom-right-radius:3px; }

.chat-input-row { margin-top:8px; display:flex; gap:8px; }
.chat-input-row textarea {
  flex:1; resize:none; min-height:40px; max-height:78px;
  border-radius:10px; border:1px solid var(--border-subtle);
  background:#020617; color:var(--text); font-size:0.84rem; padding:7px;
}

/* Generic sections */
.strip { margin-top:30px; padding:16px 14px; border-radius:16px;
  border:1px solid #1f2937;
  background:radial-gradient(circle at left,rgba(15,23,42,0.5),rgba(15,23,42,0.98));
}
.strip h2 { margin:0 0 8px; font-size:1rem; }
.strip-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:8px; }
.strip-item { font-size:0.78rem; color:var(--muted); padding:7px 9px; border-radius:999px; border:1px dashed #4b5563; }

.three-cols { margin-top:26px; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.three-cols .col { padding:14px; border-radius:14px; border:1px solid #1f2937; background:#020617; }
.three-cols h3 { margin:0 0 6px; font-size:0.98rem; }
.three-cols p { margin:0; font-size:0.84rem; color:var(--muted); }

/* Forms & tables */
.contact-form {
  border-radius:16px; border:1px solid #1f2937; background:#020617;
  padding:16px 14px 14px;
}
.form-row { margin-bottom:10px; }
.form-row label { display:block; margin-bottom:4px; font-size:0.8rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width:100%; border-radius:10px; border:1px solid #374151;
  background:#020617; color:var(--text); font-size:0.86rem;
  padding:7px 8px;
}
.form-row textarea { resize:vertical; }

.alert { border-radius:10px; padding:8px 10px; font-size:0.83rem; margin-bottom:10px; }
.alert.success { border:1px solid rgba(34,197,94,0.6); background:rgba(22,163,74,0.15); color:#bbf7d0; }
.alert.error { border:1px solid rgba(239,68,68,0.6); background:rgba(248,113,113,0.12); color:#fecaca; }

.table-wrapper { overflow-x:auto; }
.table { width:100%; border-collapse:collapse; font-size:0.8rem; }
.table th, .table td { padding:6px 8px; border-bottom:1px solid #1f2937; }
.table th { text-align:left; color:var(--muted); }
.table tr:nth-child(even) td { background:rgba(15,23,42,0.7); }
.badge { display:inline-block; padding:2px 7px; border-radius:999px; border:1px solid #4b5563; font-size:0.7rem; }

/* Footer */
.site-footer {
  margin-top:20px; padding:16px 28px 18px;
  border-top:1px solid #1f2937; background:#020617; text-align:center;
}
.site-footer p { margin:2px 0; font-size:0.78rem; }

/* Responsive */
@media (max-width:900px) {
  .hero { grid-template-columns:minmax(0,1fr); }
  .site-header { flex-wrap:wrap; gap:8px; }
  .nav { display:none; }
}
@media (max-width:640px) {
  .site-header { padding-inline:16px; }
  .page { padding:22px 14px 26px; }
  .page.narrow { padding-inline:14px; }
  .hero-text h1 { font-size:2.1rem; }
}
