:root {
  --royal: #003db8;
  --royal-dark: #002b86;
  --royal-light: #0b5cff;
  --text: #101827;
  --bg: #f4f8ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", Arial, sans-serif; }
body { background: var(--bg); color: var(--text); }

.navbar {
  height: 82px; padding: 0 5%;
  background: linear-gradient(90deg, var(--royal-dark), var(--royal));
  display: flex; align-items: center; justify-content: space-between;
  color: white; box-shadow: 0 8px 28px rgba(0, 38, 120, 0.25);
}
.brand img { height: 58px; border-radius: 6px; object-fit: contain; background: white; padding: 4px; }
.menu { display: flex; gap: 34px; }
.menu a, .chat-button { color: white; text-decoration: none; font-weight: 500; }
.chat-button { border: 1px solid rgba(255,255,255,0.65); padding: 12px 22px; border-radius: 9px; background: rgba(255,255,255,0.08); }

.hero {
  min-height: calc(100vh - 82px); padding: 44px 5% 26px;
  display: grid; grid-template-columns: 1fr 0.56fr 1.28fr;
  gap: 42px; align-items: center;
  background: radial-gradient(circle at 45% 20%, rgba(0, 61, 184, 0.10), transparent 28%),
  linear-gradient(120deg, #ffffff 0%, #f4f8ff 55%, #eef5ff 100%);
}
.main-logo { width: 245px; margin-bottom: 24px; mix-blend-mode: multiply; }
.hero-left h1 { max-width: 560px; font-size: 35px; line-height: 1.18; margin-bottom: 18px; color: #121b33; }
.subtitle { max-width: 620px; color: #334155; font-size: 18px; line-height: 1.6; margin-bottom: 28px; }

.register-card, .chat-card { background: rgba(255,255,255,0.96); border-radius: 18px; box-shadow: 0 18px 45px rgba(0, 31, 95, 0.13); }
.register-card { max-width: 520px; padding: 26px; }
.register-card h2 { color: var(--royal); margin-bottom: 8px; }
.register-card p { color: #53617a; margin-bottom: 18px; }

.input-group { height: 48px; display: flex; align-items: center; border: 1px solid #d8e1ef; border-radius: 9px; padding: 0 12px; margin-bottom: 12px; background: white; }
.input-group span { margin-right: 10px; opacity: .75; }
.input-group input { width: 100%; border: 0; outline: none; font-size: 15px; color: var(--text); }
.register-card button {
  width: 100%; height: 50px; border: none; border-radius: 9px;
  background: linear-gradient(90deg, var(--royal-dark), var(--royal-light));
  color: white; font-weight: 700; font-size: 16px; cursor: pointer;
}
#registerMsg { display: block; color: #16803a; margin-top: 12px; font-weight: 600; }

.benefits { display: flex; flex-direction: column; gap: 26px; }
.benefit-item { display: flex; align-items: flex-start; gap: 16px; }
.icon {
  min-width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, var(--royal), var(--royal-light));
  color: white; display: grid; place-items: center; font-weight: bold;
  box-shadow: 0 8px 18px rgba(0,61,184,.25);
}
.benefit-item h3 { color: var(--royal); font-size: 18px; margin-bottom: 4px; }
.benefit-item p { color: #43516a; line-height: 1.4; }

.chat-card { overflow: hidden; min-height: 650px; display: flex; flex-direction: column; }
.chat-header {
  padding: 20px 26px; color: white;
  background: linear-gradient(90deg, var(--royal-dark), var(--royal-light));
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header h2 { font-size: 22px; margin-bottom: 4px; }
.chat-header p { font-size: 14px; }
.status-dot { width: 11px; height: 11px; display: inline-block; border-radius: 50%; background: #22c55e; margin-right: 7px; }
.chat-actions button { background: transparent; border: none; color: white; font-size: 23px; margin-left: 18px; cursor: pointer; }

.chat-body { flex: 1; padding: 28px 22px 8px; overflow-y: auto; }
.chat-row { display: flex; gap: 12px; margin-bottom: 20px; }
.chat-row img { width: 43px; height: 43px; border-radius: 50%; object-fit: cover; }
.user-row { justify-content: flex-end; }
.bubble { padding: 15px 17px; border-radius: 13px; line-height: 1.45; font-size: 15px; max-width: 390px; }
.bot { background: #f0f3f9; color: #111827; }
.user { background: linear-gradient(90deg, var(--royal), var(--royal-light)); color: white; }
.time { display: block; color: #7b88a3; font-size: 12px; margin-top: 7px; }

.quick-options { padding: 0 22px 16px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.quick-options button { border: 1px solid var(--royal-light); background: white; color: var(--royal); padding: 9px 14px; border-radius: 7px; cursor: pointer; font-weight: 500; }

.chat-input { margin: 0 22px 12px; border: 1px solid #d5deed; border-radius: 11px; display: flex; align-items: center; overflow: hidden; }
.chat-input input { flex: 1; border: none; outline: none; height: 52px; padding: 0 16px; font-size: 15px; }
.chat-input button { width: 58px; height: 52px; border: 0; background: white; color: var(--royal); font-size: 26px; cursor: pointer; }
.developed { text-align: center; font-size: 12px; color: #71809a; padding-bottom: 16px; }

.about { padding: 70px 14%; text-align: center; background: white; }
.about h2 { color: var(--royal); font-size: 32px; margin-bottom: 14px; }
.about p { color: #46556f; line-height: 1.7; font-size: 17px; }

footer {
  min-height: 70px; padding: 18px 5%;
  background: linear-gradient(90deg, var(--royal-dark), var(--royal));
  color: white; display: flex; align-items: center; justify-content: space-between; font-size: 14px;
}
.social { letter-spacing: 16px; font-size: 22px; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .benefits { display: grid; grid-template-columns: 1fr 1fr; }
  .chat-card { min-height: 600px; }
}
@media (max-width: 760px) {
  .menu { display: none; }
  .hero-left h1 { font-size: 30px; }
  .benefits { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
