:root {
  --navy: #1b2547;
  --purple: #6a4cff;
  --blue: #3f7dfa;
  --red: #e8112d;
  --bg-light: #f4f6fb;
  --gradient: linear-gradient(90deg, var(--purple), var(--blue));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
}

.bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #fff url('../images/background.webp') no-repeat center center;
  background-size: cover;
}

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

.accent-red { color: var(--red); font-style: italic; font-weight: 800; }
.accent-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.site-nav {
  background: #fff;
  border-bottom: 1px solid #e5e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { font-size: 1.4rem; font-weight: 800; }
.nav-links a { margin-left: 28px; font-weight: 600; }
.nav-links a:hover { color: var(--purple); }

/* Hero */
.hero { text-align: center; background: transparent; }
.hero img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* Sections */
section { padding: 60px 24px; max-width: 1100px; margin: 0 auto; }
section h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}
.group-heading {
  text-align: center;
  font-size: 1.2rem;
  color: var(--purple);
  margin: 40px 0 20px;
}
.group-heading:first-of-type { margin-top: 0; }

.addon-frame {
  border: 2px solid var(--purple);
  border-radius: 16px;
  padding: 32px 24px;
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.55);
}
.addon-frame .group-heading { margin-top: 0; }
.addon-frame .card { background: rgba(244, 246, 251, 0.75); }
.card-demo { border: 2px dashed var(--purple); background: rgba(255, 255, 255, 0.6) !important; }

.quote-bar {
  display: block;
  margin: 32px -24px -32px;
  padding: 16px 24px;
  background: var(--gradient);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 0 0 14px 14px;
}
.quote-bar:hover { opacity: 0.9; }

/* Service / pricing cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: rgba(244, 246, 251, 0.75);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 16px rgba(27, 37, 71, 0.12);
  border: 1px solid var(--navy);
}
.card .btn { margin-top: auto; align-self: center; }
.card h3 { margin-top: 0; }
.requires-hosting { font-size: 0.85rem; color: #888; font-style: italic; }
.card .price {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 12px 0;
}
.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  margin-top: 12px;
}
.btn:hover { opacity: 0.9; }

.section-alt { background: rgba(244, 246, 251, 0.5); }
.note-text, .about-text { text-align: center; color: #555; }
.inline-link { color: var(--purple); font-weight: 600; text-decoration: underline; }
.note-text { margin-top: 32px; }
.about-text { max-width: 700px; margin: 0 auto; }

/* Contact form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
}
.contact-form .btn {
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.file-label {
  font-size: 0.9rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-label input[type="file"] {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
}

/* Chatbot widget */
#chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
#chatbot-toggle {
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27, 37, 71, 0.25);
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.chatbot-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
#chatbot-toggle .chatbot-avatar-icon { width: 28px; height: 28px; }
.chatbot-header .chatbot-avatar-icon { width: 24px; height: 24px; margin-right: 8px; }
.chatbot-msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
#chatbot-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(27, 37, 71, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chatbot-panel.hidden { display: none; }
.chatbot-header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.chatbot-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
#chatbot-messages {
  padding: 12px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chatbot-msg {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.chatbot-msg-user {
  background: var(--bg-light);
  align-self: flex-end;
  color: var(--navy);
}
.chatbot-msg-bot {
  background: rgba(106, 76, 255, 0.1);
  align-self: flex-start;
  color: var(--navy);
}
#chatbot-form {
  display: flex;
  border-top: 1px solid #e5e8f0;
}
#chatbot-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-family: inherit;
  font-size: 0.9rem;
}
#chatbot-input:focus { outline: none; }
#chatbot-form .btn {
  border: none;
  border-radius: 0;
  cursor: pointer;
  margin-top: 0;
  padding: 12px 18px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 40px 24px 24px;
}
.footer-banner { max-width: 180px; margin-bottom: 20px; }
.footer-check { width: 40px; vertical-align: middle; margin-right: 10px; }
.footer-bottom { opacity: 0.85; font-size: 0.9rem; }
