@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #061018;
  --bg-soft: #0d1a25;
  --surface: rgba(10, 28, 39, 0.92);
  --surface-soft: rgba(16, 40, 55, 0.96);
  --surface-lifted: rgba(19, 49, 66, 0.98);
  --text: #edf8ff;
  --muted: #9ab9c8;
  --border: rgba(196, 226, 238, 0.13);
  --accent: #77f2bb;
  --accent-strong: #34d3a4;
  --accent-soft: rgba(119, 242, 187, 0.14);
  --sky: #91d9ff;
  --danger: #ff8a8a;
  --danger-soft: rgba(255, 138, 138, 0.16);
  --warning-soft: rgba(255, 205, 115, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(70, 149, 207, 0.2) 0, transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(119, 242, 187, 0.14) 0, transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(57, 93, 136, 0.2) 0, transparent 30%),
    linear-gradient(180deg, #091722 0%, var(--bg) 56%, #040b11 100%);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

p {
  margin: 0;
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px 60px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 30, 42, 0.96), rgba(7, 18, 27, 0.95));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(145, 217, 255, 0.04), transparent 36%),
    linear-gradient(315deg, rgba(119, 242, 187, 0.05), transparent 42%);
  pointer-events: none;
}

.landing-shell,
.section-block,
.hero-copy,
.hero-highlight,
.pricing-section,
.pricing-card,
.auth-panel,
.view,
.panel,
.feature-item {
  display: grid;
  gap: 16px;
}

.landing-shell {
  gap: 34px;
}

.site-nav,
.app-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-nav {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--sky) 100%);
  box-shadow: 0 0 0 6px rgba(119, 242, 187, 0.12);
}

.site-nav-links,
.hero-actions,
.auth-actions,
.header-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-link,
.context-chip,
.trust-chip,
.tag,
.status-badge {
  border-radius: 999px;
}

.nav-link {
  padding: 10px 14px;
  border: 1px solid rgba(196, 226, 238, 0.12);
  background: rgba(18, 44, 59, 0.82);
  color: var(--muted);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 242, 187, 0.24);
  color: var(--text);
}

.eyebrow,
.mini-label,
.feature-kicker,
.pricing-plan,
.channel-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow,
.mini-label,
.feature-kicker,
.channel-tag {
  color: var(--accent);
}

.subtitle,
.section-subtitle,
.status,
.feature-item p,
.pricing-caption,
.preview-panel p,
.channel-card p,
.panel .section-subtitle {
  color: var(--muted);
}

.hero-grid,
.contact-grid,
.workspace-grid,
.profile-grid,
.dashboard-preview,
.channel-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  align-items: start;
}

.hero-copy {
  gap: 20px;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.hero-subtitle {
  max-width: 62ch;
  font-size: 1.06rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip,
.context-chip,
.tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-chip {
  background: rgba(145, 217, 255, 0.08);
  border: 1px solid rgba(145, 217, 255, 0.14);
  color: #dff6ff;
}

.hero-highlight,
.feature-item,
.channel-card,
.preview-panel,
.pricing-card,
.contact-point,
.auth-panel,
.panel,
.reply-shell,
.list-block,
.metric-card,
.stat-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 43, 58, 0.96), rgba(9, 24, 35, 0.92));
}

.hero-highlight {
  padding: 24px;
  gap: 18px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.stat-card strong {
  font-size: 1.1rem;
  color: #ddfff2;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.usage-pill {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(119, 242, 187, 0.2);
  color: #d9fff0;
  font-weight: 700;
}

.section-block,
.pricing-section {
  position: relative;
  z-index: 1;
  scroll-margin-top: 24px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(1.95rem, 3vw, 2.9rem);
}

.section-heading-compact {
  margin-bottom: 6px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid-large .feature-item {
  min-height: 100%;
}

.feature-item {
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover,
.channel-card:hover,
.preview-panel:hover,
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(119, 242, 187, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.feature-item h3,
.channel-card h3,
.preview-panel h3 {
  font-size: 1.26rem;
}

.channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-card,
.preview-panel,
.contact-point,
.panel,
.metric-card {
  padding: 22px;
}

.channel-list,
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.channel-list li,
.pricing-list li {
  position: relative;
  padding-left: 22px;
}

.channel-list li::before,
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--sky) 100%);
  box-shadow: 0 0 0 4px rgba(119, 242, 187, 0.08);
}

.dashboard-preview {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}

.preview-panel {
  gap: 14px;
}

.preview-panel-wide {
  background:
    linear-gradient(135deg, rgba(20, 55, 75, 0.98), rgba(11, 30, 42, 0.94)),
    linear-gradient(180deg, rgba(17, 43, 58, 0.96), rgba(9, 24, 35, 0.92));
}

.preview-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-topline span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(119, 242, 187, 0.12);
  color: #d8fff1;
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-grid.pricing-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  .pricing-grid.pricing-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.pricing-card-featured {
  border-color: rgba(119, 242, 187, 0.3);
  box-shadow: inset 0 0 0 1px rgba(119, 242, 187, 0.08), 0 18px 42px rgba(0, 0, 0, 0.18);
}

.pricing-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(119, 242, 187, 0.18);
  color: #d3fff0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-value {
  font-size: 1.82rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
}

.pricing-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pricing-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-cta {
  align-self: stretch;
  margin-top: auto;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  align-items: start;
}

.contact-copy,
.contact-points {
  display: grid;
  gap: 16px;
}

.contact-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-point {
  gap: 10px;
}

.auth-panel {
  padding: 28px;
}

.auth-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.app-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.app-header-copy {
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.app-header h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.status {
  position: relative;
  z-index: 1;
  min-height: 24px;
}

.dashboard-view {
  gap: 20px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  display: grid;
  gap: 6px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-value {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.metric-note {
  color: #dff6ff;
  font-size: 0.92rem;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  align-items: start;
}

.workspace-side {
  display: grid;
  gap: 16px;
}

.panel-header {
  display: grid;
  gap: 8px;
}

.panel h2 {
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #dff3fb;
}

input,
select,
textarea {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(196, 226, 238, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #cfe9f4 50%),
    linear-gradient(135deg, #cfe9f4 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
  color: #86a8ba;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(119, 242, 187, 0.42);
  box-shadow: 0 0 0 4px rgba(119, 242, 187, 0.12);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--surface-lifted);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

.button-lg {
  min-height: 52px;
  padding: 15px 24px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--sky) 100%);
  color: #092118;
  box-shadow: 0 12px 28px rgba(52, 211, 164, 0.24);
}

.primary-btn:hover {
  box-shadow: 0 16px 34px rgba(52, 211, 164, 0.28);
}

.secondary-btn {
  background: rgba(16, 43, 59, 0.96);
  border-color: rgba(196, 226, 238, 0.16);
}

.secondary-btn:hover,
.ghost-btn:hover {
  border-color: rgba(119, 242, 187, 0.22);
}

.ghost-btn {
  background: transparent;
  border-color: rgba(196, 226, 238, 0.16);
  color: var(--muted);
}

.danger-btn {
  background: var(--danger-soft);
  border-color: rgba(255, 138, 138, 0.22);
  color: #ffe3e3;
}

.reply-shell {
  gap: 14px;
  padding: 20px;
}

.reply-shell-header,
.history-meta,
.lead-card-header,
.summary-line,
.channel-status-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.reply-shell-header {
  align-items: center;
}

.context-chip {
  background: rgba(119, 242, 187, 0.14);
  border: 1px solid rgba(119, 242, 187, 0.24);
  color: #ddfff2;
}

.reply-output,
.list-block {
  padding: 16px;
  min-height: 68px;
}

.reply-output {
  white-space: pre-wrap;
}

.channel-health,
.lead-list,
.profile-grid,
.history-filters {
  display: grid;
  gap: 12px;
}

.channel-status-card {
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 44, 59, 0.76);
}

.status-badge {
  background: rgba(119, 242, 187, 0.14);
  border: 1px solid rgba(119, 242, 187, 0.2);
  color: #ddfff2;
}

.lead-card {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.notification-item {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.notification-item:first-child {
  padding-top: 0;
}

.notification-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notification-unread h3 {
  color: #ddfff2;
}

.notification-read {
  opacity: 0.82;
}

.lead-card:first-child {
  padding-top: 0;
}

.lead-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lead-card-header {
  align-items: center;
}

.lead-card h3 {
  font-size: 1.08rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(145, 217, 255, 0.08);
  border: 1px solid rgba(145, 217, 255, 0.14);
  color: #dff6ff;
}

.summary-line {
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.summary-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-line strong {
  font-size: 0.95rem;
}

.summary-line span {
  text-align: right;
  color: var(--muted);
}

.history-filters {
  grid-template-columns: minmax(0, 1.4fr) 180px 180px auto;
  align-items: center;
}

.history-item {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.history-item:first-child {
  padding-top: 0;
}

.history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.history-meta {
  align-items: center;
  flex-wrap: wrap;
}

.history-meta small {
  color: var(--muted);
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chatbot-launcher {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 40;
  min-width: 160px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.chatbot-widget {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 41;
  width: min(380px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 31, 43, 0.98), rgba(8, 20, 29, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 14px;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.chatbot-close {
  min-height: 40px;
  padding: 10px 14px;
}

.chatbot-visitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chatbot-visitor-wide {
  grid-column: 1 / -1;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  min-height: 220px;
  max-height: 300px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(7, 22, 32, 0.82);
}

.chatbot-bubble {
  display: grid;
  gap: 6px;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 238, 0.12);
}

.chatbot-bubble span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-bubble p {
  color: #e7f6ff;
}

.chatbot-bubble-bot {
  justify-self: start;
  background: rgba(16, 43, 59, 0.95);
}

.chatbot-bubble-bot span {
  color: var(--accent);
}

.chatbot-bubble-visitor {
  justify-self: end;
  background: rgba(119, 242, 187, 0.12);
  border-color: rgba(119, 242, 187, 0.22);
}

.chatbot-bubble-visitor span {
  color: #dcfff1;
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-reply-btn {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.chatbot-compose {
  display: grid;
  gap: 12px;
}

.chatbot-compose textarea {
  min-height: 90px;
}

body.widget-mode {
  background: transparent;
}

body.widget-mode .page-wrap,
body.widget-mode .footer-note {
  display: none;
}

body.widget-mode .chatbot-widget {
  position: static;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.footer-note {
  padding: 0 20px 36px;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .analytics-grid,
  .feature-grid,
  .channel-grid,
  .dashboard-preview,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-grid,
  .contact-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-wrap {
    padding: 18px 14px 44px;
  }

  .card {
    border-radius: 24px;
    padding: 22px;
  }

  .site-nav,
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav-links,
  .hero-actions,
  .auth-actions,
  .header-actions,
  .stack-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }

  .hero-stat-grid,
  .feature-grid,
  .channel-grid,
  .dashboard-preview,
  .pricing-grid,
  .contact-points,
  .analytics-grid,
  .form-grid-two,
  .profile-grid,
  .history-filters {
    grid-template-columns: 1fr;
  }

  button,
  .button {
    width: 100%;
  }

  .reply-shell-header,
  .channel-status-card,
  .history-meta,
  .lead-card-header,
  .summary-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-line span {
    text-align: left;
  }

  .chatbot-widget {
    right: 14px;
    bottom: 78px;
    width: calc(100vw - 28px);
  }

  .chatbot-launcher {
    right: 14px;
    bottom: 14px;
    min-width: 0;
    width: calc(100vw - 28px);
  }

  .chatbot-visitor-grid {
    grid-template-columns: 1fr;
  }
}
