/* ==========================================================
   Nexora Live Chat — Design Tokens & Public Site Styles
   ========================================================== */

:root {
  /* Color */
  --nx-primary: #5B4FE9;
  --nx-primary-dark: #4338CA;
  --nx-primary-light: #EEEDFD;
  --nx-accent: #FF6B6B;
  --nx-success: #00D9A0;
  --nx-warning: #FFB020;
  --nx-bg: #F7F8FC;
  --nx-surface: #FFFFFF;
  --nx-text: #1A1D29;
  --nx-text-muted: #6B7280;
  --nx-border: #E7E9F3;

  /* Type */
  --nx-font-display: 'Sora', 'Segoe UI', sans-serif;
  --nx-font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Shape */
  --nx-radius-sm: 8px;
  --nx-radius-md: 14px;
  --nx-radius-lg: 22px;
  --nx-radius-bubble: 18px;
  --nx-shadow-sm: 0 2px 8px rgba(26, 29, 41, 0.06);
  --nx-shadow-md: 0 8px 24px rgba(26, 29, 41, 0.10);
  --nx-shadow-lg: 0 20px 48px rgba(91, 79, 233, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--nx-font-body);
  background: var(--nx-bg);
  color: var(--nx-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--nx-font-display); margin: 0; letter-spacing: -0.02em; }
a { color: var(--nx-primary); text-decoration: none; }

/* ---- Landing page ---- */
.nx-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.nx-blob {
  position: absolute;
  border-radius: 50% 45% 55% 50% / 55% 50% 45% 50%;
  filter: blur(0px);
  opacity: 0.9;
  z-index: 0;
}
.nx-blob--1 { width: 480px; height: 480px; background: linear-gradient(135deg,#5B4FE9,#8B7FFF); top: -160px; right: -140px; }
.nx-blob--2 { width: 320px; height: 320px; background: linear-gradient(135deg,#FF6B6B,#FFB020); bottom: -120px; left: -100px; opacity: 0.15; }

.nx-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
}
.nx-nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--nx-font-display); font-weight: 700; font-size: 20px; color: var(--nx-text); }
.nx-nav__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--nx-success); box-shadow: 0 0 0 4px rgba(0,217,160,0.2); }
.nx-nav__links a { margin-left: 28px; color: var(--nx-text-muted); font-weight: 500; font-size: 14px; }
.nx-nav__links a.nx-btn { margin-left: 28px; }

.nx-hero {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center;
  padding: 40px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}
.nx-hero__content { max-width: 520px; }
.nx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--nx-primary-light); color: var(--nx-primary-dark);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.nx-hero h1 { font-size: 48px; line-height: 1.08; font-weight: 700; margin-bottom: 20px; }
.nx-hero h1 span { color: var(--nx-primary); }
.nx-hero p { font-size: 17px; color: var(--nx-text-muted); line-height: 1.6; margin-bottom: 32px; }
.nx-hero__actions { display: flex; gap: 14px; }

.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--nx-radius-sm);
  font-weight: 600; font-size: 14.5px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--nx-font-body);
}
.nx-btn--primary { background: var(--nx-primary); color: #fff; box-shadow: var(--nx-shadow-lg); }
.nx-btn--primary:hover { background: var(--nx-primary-dark); transform: translateY(-1px); }
.nx-btn--ghost { background: var(--nx-surface); color: var(--nx-text); border: 1px solid var(--nx-border); }
.nx-btn--ghost:hover { border-color: var(--nx-primary); color: var(--nx-primary); }
.nx-btn--block { width: 100%; }

.nx-hero__visual {
  position: relative; flex: 1; display: flex; justify-content: center;
}
.nx-mock-chat {
  width: 320px; background: var(--nx-surface); border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg); overflow: hidden; border: 1px solid var(--nx-border);
}
.nx-mock-chat__head { background: linear-gradient(135deg,var(--nx-primary),#8B7FFF); padding: 18px 20px; color: #fff; display:flex; align-items:center; gap:10px;}
.nx-mock-chat__head strong { display:block; font-family: var(--nx-font-display); font-size:15px;}
.nx-mock-chat__head small { opacity:.85; font-size:12px; }
.nx-mock-chat__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--nx-bg); min-height: 280px;}
.nx-bubble { max-width: 78%; padding: 10px 14px; border-radius: var(--nx-radius-bubble); font-size: 13.5px; line-height: 1.4; }
.nx-bubble--in { background: #fff; border: 1px solid var(--nx-border); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--nx-shadow-sm);}
.nx-bubble--out { background: var(--nx-primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

.nx-features {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; padding: 20px 48px 100px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
.nx-feature { background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md); padding: 26px; }
.nx-feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--nx-primary-light); display:flex; align-items:center; justify-content:center; margin-bottom: 16px; font-size: 20px;}
.nx-feature h3 { font-size: 16px; margin-bottom: 8px; }
.nx-feature p { font-size: 13.5px; color: var(--nx-text-muted); margin: 0; line-height: 1.55; }

@media (max-width: 900px) {
  .nx-hero { flex-direction: column; padding: 20px 24px 60px; }
  .nx-hero__content { max-width: 100%; text-align: center; }
  .nx-hero__actions { justify-content: center; }
  .nx-features { grid-template-columns: 1fr; padding: 0 24px 60px; }
  .nx-nav { padding: 20px 24px; }
  .nx-nav__links a:not(.nx-btn) { display: none; }
}
