:root {
  --ink: #172033;
  --muted: #607086;
  --line: #dfe7f3;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --cyan: #06b6d4;
  --bg: #f7fbff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 12% 10%, rgba(79,70,229,.10), transparent 28%), var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 24px; }
.brand i { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 24px; color: #41516a; font-weight: 650; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 10px; padding: 0 18px; background: var(--brand); color: #fff; font-weight: 750; cursor: pointer; box-shadow: 0 14px 28px rgba(79,70,229,.20); }
.btn.secondary { background: #fff; color: var(--brand); border: 1px solid #c7d2fe; box-shadow: none; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; color: var(--brand-dark); background: #eef2ff; font-weight: 800; font-size: 13px; }
h1 { font-size: clamp(42px, 7vw, 72px); line-height: .98; letter-spacing: 0; margin: 18px 0; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0 0 14px; }
h3 { margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 640px; }
.hero-panel { min-height: 420px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #e0e7ff, #cffafe); box-shadow: 0 32px 80px rgba(23,32,51,.18); position: relative; }
.hero-panel::before { content: ""; position: absolute; inset: 28px; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgba(79,70,229,.14); }
.dashboard-art { position: absolute; inset: 58px; display: grid; grid-template-rows: 48px 1fr; gap: 18px; }
.art-bar, .art-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section { padding: 76px 0; }
.section.soft { background: rgba(255,255,255,.58); border-top: 1px solid rgba(223,231,243,.7); border-bottom: 1px solid rgba(223,231,243,.7); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 18px 44px rgba(23,32,51,.06); }
.card i { color: var(--brand); font-size: 26px; margin-bottom: 16px; }
.card p, .muted { color: var(--muted); line-height: 1.65; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.stat strong { display: block; color: var(--brand); font-size: 38px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 750; color: #314158; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid #cfd9ea; border-radius: 10px; padding: 12px 13px; font: inherit; background: #fff; }
textarea { resize: vertical; min-height: 120px; }
.flash { margin: 16px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.flash.success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.footer { padding: 34px 0; background: #111827; color: #d1d5db; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.chat-button { position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 999px; border: 0; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; font-size: 22px; box-shadow: 0 18px 40px rgba(79,70,229,.35); cursor: pointer; }
.chat-box { position: fixed; right: 24px; bottom: 92px; width: min(360px, calc(100vw - 32px)); height: 480px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(23,32,51,.24); display: none; overflow: hidden; }
.chat-box.open { display: grid; grid-template-rows: 56px 1fr 64px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; background: var(--brand); color: #fff; font-weight: 800; }
.chat-messages { padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.msg { max-width: 86%; padding: 10px 12px; border-radius: 14px; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--line); }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 24px 80px rgba(23,32,51,.12); }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #111827; color: #e5e7eb; padding: 22px; }
.sidebar a { display: block; padding: 11px 12px; border-radius: 10px; color: #d1d5db; margin: 4px 0; }
.sidebar a:hover { background: #1f2937; color: #fff; }
.admin-main { padding: 28px; }
.topline { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: #475569; background: #f8fafc; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #eef2ff; color: var(--brand-dark); font-weight: 800; font-size: 12px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero-grid, .contact-grid, .admin-layout { grid-template-columns: 1fr; }
  .cards, .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
