:root {
  --sanghvi-red: #e31e24;
  --sanghvi-red-dark: #b91519;
  --brand: #e31e24;
  --brand-dark: #b91519;
  --text: #142033;
  --muted: #5d6b82;
  --surface: #ffffff;
  --shadow: 0 18px 40px rgba(20, 32, 51, 0.18);
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Roboto, system-ui, sans-serif;
  color: var(--text);
  background: #f4f7fb;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid rgba(227, 30, 36, 0.1);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-brand img {
  height: 52px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  display: block;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 48px 24px;
  color: var(--sanghvi-red);
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sanghvi-red);
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--sanghvi-red);
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.35);
}

.lead {
  margin: 0 auto 24px;
  max-width: 620px;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #ffe8e9;
}

.cta {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, var(--sanghvi-red), var(--sanghvi-red-dark));
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(227, 30, 36, 0.35);
}

.cta:hover {
  filter: brightness(1.05);
}

.info {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info h2 {
  margin-top: 0;
  color: var(--sanghvi-red);
}

.info ul {
  padding-left: 18px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px 120px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--brand);
}

.chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border: 2px solid var(--sanghvi-red);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(227, 30, 36, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
  padding: 0;
}

.chat-trigger[hidden] {
  display: none !important;
}

.chat-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(227, 30, 36, 0.34);
}

.chat-trigger img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.chat-window {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: min(420px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 6rem));
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  border: 1px solid rgba(227, 30, 36, 0.12);
}

.chat-window[hidden] {
  display: none !important;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(145deg, var(--sanghvi-red), var(--sanghvi-red-dark));
  color: #fff;
  min-height: 56px;
}

.chat-header-info {
  min-width: 0;
}

.chat-header-info h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
}

.chat-header-info p {
  margin: 3px 0 0;
  font-size: 0.74rem;
  color: #ffe8e9;
  line-height: 1.2;
}

.chat-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-end,
.chat-close {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  font: inherit;
  line-height: 1;
}

.chat-end {
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.chat-end:hover,
.chat-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.chat-close {
  width: 30px;
  height: 30px;
  font-size: 1.25rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 12px 8px;
  background: #f8fafc;
}

.chat-thread {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-agent-mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 10px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(227, 30, 36, 0.2);
}

.chat-agent-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.chat-thread-body {
  flex: 1;
  min-width: 0;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-avatar.user {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--sanghvi-red), var(--sanghvi-red-dark));
  color: #fff;
  font-size: 0.65rem;
}

.message {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.45;
  font-size: 0.9rem;
}

.message-row.assistant .message {
  max-width: 100%;
}

.message.user {
  background: #ffe8e9;
  color: var(--text);
  border: 1px solid rgba(227, 30, 36, 0.18);
}

.message.assistant {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.message-rich {
  line-height: 1.55;
  font-size: 0.88rem;
}

.message-rich p {
  margin: 0 0 10px;
}

.message-rich p:last-child {
  margin-bottom: 0;
}

.message-rich strong {
  color: var(--sanghvi-red-dark);
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
}

.message-rich strong:first-child {
  margin-top: 0;
}

.message-rich ul,
.message-rich ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.message-rich li {
  margin-bottom: 6px;
}

.message-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.82rem;
}

.message-rich th,
.message-rich td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.message-rich th {
  background: #fff0f0;
  color: var(--sanghvi-red-dark);
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.chat-input input {
  flex: 1;
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.chat-input input:focus {
  outline: 2px solid rgba(227, 30, 36, 0.25);
  border-color: var(--sanghvi-red);
}

.chat-input button {
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.chat-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .site-brand img {
    height: 44px;
    max-width: 110px;
  }

  .chat-trigger {
    width: 52px;
    height: 52px;
    bottom: 1rem;
    right: 1rem;
  }

  .chat-trigger img {
    width: 30px;
    height: 30px;
  }

  .chat-window {
    right: 1rem;
    bottom: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .chat-end {
    font-size: 0.68rem;
    padding: 6px 8px;
  }
}
