:root {
  --bg: #050816;
  --bg-alt: #070b1f;
  --card: #0b1024;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-strong: rgba(99, 102, 241, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 0, #e5e7eb, #4f46e5 40%, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #e5e7eb;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.6);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-soft);
  padding: 0.35rem 0;
  position: relative;
}

.nav a:hover {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #4f46e5, #22d3ee);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  color: #f9fafb !important;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.45);
  border: 1px solid rgba(248, 250, 252, 0.12);
}

/* MOBILE NAV */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 1rem;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-nav a {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.mobile-nav .nav-cta {
  display: inline-block;
  margin-top: 0.25rem;
}

/* HERO */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-content p {
  color: var(--text-soft);
  max-width: 32rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.1rem;
}

.btn {
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  color: #f9fafb;
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.45);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-soft);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
}

.btn.small {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn.full-width {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.2), transparent);
}

/* HERO PREVIEW */

.hero-preview {
  display: flex;
  justify-content: flex-end;
}

.hero-chat-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #111827, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.hero-chat-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.hero-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #e5e7eb, #4f46e5 40%, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.hero-chat-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-chat-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.hero-chat-body {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.95));
  border-radius: 18px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.chat-bubble {
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.chat-bubble.bot {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.chat-bubble.user {
  background: rgba(79, 70, 229, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.4);
  margin-left: auto;
}

.hero-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero-chat-input button {
  border-radius: 999px;
  border: none;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  color: #f9fafb;
  cursor: pointer;
}

/* SECTIONS */

.section {
  padding: 2.5rem 0 2.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.section-header {
  text-align: left;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* FEATURES GRID */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.feature-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.pricing-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.pricing-card-featured {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.5);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), #020617);
}

.pricing-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.pricing-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.1rem 0 0.4rem;
}

.pricing-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-soft);
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.pricing-list li {
  margin-bottom: 0.3rem;
}

.badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
}

/* CHAT DEMO */

.chat-demo-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.chat-widget {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.chat-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #e5e7eb, #4f46e5 40%, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.chat-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.chat-header-right .chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

.chat-messages {
  flex: 1;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
}

.message-row {
  display: flex;
}

.message-row.bot {
  justify-content: flex-start;
}

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

.message-row .message-bubble {
  max-width: 80%;
  font-size: 0.8rem;
  line-height: 1.4;
}

.message-row.bot .message-bubble {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.message-row.user .message-bubble {
  background: rgba(79, 70, 229, 0.95);
  border: 1px solid rgba(191, 219, 254, 0.4);
}

.chat-typing-indicator {
  height: 22px;
  padding: 0 0.9rem 0.4rem;
  display: none;
  align-items: center;
  gap: 4px;
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  animation: typing 1s infinite ease-in-out;
}

.chat-typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.chat-input-area {
  padding: 0.6rem 0.7rem 0.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  gap: 0.5rem;
}

.chat-input-area input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text);
}

.chat-input-area input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.chat-input-area button {
  white-space: nowrap;
}

.chat-demo-notes {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.chat-demo-notes h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.chat-demo-notes p {
  margin-bottom: 0.6rem;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem;
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.9rem;
}

.faq-toggle {
  font-size: 1.1rem;
  color: var(--text-soft);
}

.faq-answer {
  padding: 0 0.9rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
}

.contact-form {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.2rem;
  box-shadow: var(--shadow-subtle);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-field {
  margin-bottom: 0.7rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--text-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
}

.contact-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

.contact-info {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}

.contact-list li {
  margin-bottom: 0.3rem;
}

/* FOOTER */

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top, #020617, #020617);
  padding: 1.1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-preview {
    justify-content: flex-start;
  }
  .chat-demo-wrapper,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding-top: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .hero-chat-card {
    max-width: 100%;
  }
}
