:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ec;
  --fg-muted: #8a8a9a;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-glow: rgba(0, 229, 160, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

/* ---- HERO ---- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-dim) 0%, transparent 70%),
    var(--bg);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.hero-visual {
  position: relative;
  margin-top: 16px;
}

.flow-nodes {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.3s ease;
}

.node.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.node-arrow {
  color: var(--fg-muted);
  font-size: 1.2rem;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.problem-inner {
  max-width: 960px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 48px;
  text-align: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- SERVICES ---- */
.services {
  padding: 100px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.services h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 48px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ---- HOW ---- */
.how {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.how h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 56px;
  text-align: center;
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, var(--accent-dim) 0%, transparent 70%),
    var(--bg);
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 20px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ---- CHATBOT WIDGET ---- */
.chat-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 14px 22px 14px 18px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 0 var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 0 var(--accent-glow); }
  60%  { box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 14px transparent; }
  100% { box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 0 transparent; }
}

.chat-trigger:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.chat-trigger.active {
  animation: none;
  background: var(--bg-card);
  color: var(--fg-muted);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.chat-window {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 199;
  width: 380px;
  max-height: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  background: var(--bg-card);
}

.chat-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: blink 2s ease infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-header-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.chat-header-status {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.chat-close-btn:hover {
  color: var(--fg);
  background: var(--border);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg-user {
  background: var(--accent);
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg-assistant {
  background: var(--bg-card);
  color: var(--fg);
  align-self: flex-start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  min-width: 60px;
}

.chat-typing span {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--fg-muted);
  border-radius: 50%;
  animation: typing-dot 1.2s ease infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 18px 18px;
  background: var(--bg-card);
}

.chat-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input::placeholder { color: var(--fg-muted); }
.chat-input:focus { border-color: var(--accent-glow); }

.chat-send-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.chat-send-btn:hover { opacity: 0.85; transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---- SERVICES PAGE ---- */
.svc-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-dim) 0%, transparent 70%),
    var(--bg);
}

.svc-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  margin: 24px auto 20px;
  max-width: 600px;
}

.svc-hero .hero-sub { margin: 0 auto; }

.svc-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.svc-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.svc-item-icon { font-size: 2rem; line-height: 1; padding-top: 4px; }

.svc-item-body h2 { font-size: 1.35rem; margin-bottom: 12px; }

.svc-item-body > p {
  color: var(--fg-muted);
  font-size: 0.97rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.svc-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.svc-features li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.svc-features li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.8rem; }

/* ---- PRICING ---- */
.pricing {
  background: var(--bg-elevated);
  padding: 100px 24px 120px;
}

.pricing-inner { max-width: 1080px; margin: 0 auto; text-align: center; }

.pricing-inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 20px 0 12px; }

.pricing-sub { font-size: 1rem; color: var(--fg-muted); margin-bottom: 56px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.plan-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.12); }

.plan-featured { border-color: var(--accent); box-shadow: 0 0 40px var(--accent-dim); }
.plan-featured:hover { border-color: var(--accent); }

.plan-badge-featured {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}

.plan-tier {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.plan-price { display: flex; align-items: baseline; gap: 4px; }

.plan-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.plan-period { font-size: 0.9rem; color: var(--fg-muted); }

.plan-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.plan-features li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 22px;
  position: relative;
}

.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-size: 0.85rem; font-weight: 700; }

.plan-btn {
  display: block;
  text-align: center;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  margin-top: 8px;
}

.plan-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.plan-btn-primary { background: var(--accent); color: var(--bg); }
.plan-btn-secondary { background: var(--bg-elevated); color: var(--fg); border: 1px solid var(--border); }

.pricing-note { margin-top: 40px; font-size: 0.82rem; color: var(--fg-muted); opacity: 0.7; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .stat-row { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 8px; }
  .step-num { width: auto; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .flow-nodes { flex-wrap: wrap; }
  .hero { min-height: 80vh; padding: 60px 20px 40px; }

  /* Nav mobile */
  .nav-links { gap: 16px; }
  .nav-cta { padding: 6px 14px; font-size: 0.8rem; }

  /* Chat widget mobile — full-width near bottom */
  .chat-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 84px;
    max-height: 70vh;
  }

  .chat-trigger {
    right: 16px;
    bottom: 16px;
  }

  /* Pricing mobile */
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Services page mobile */
  .svc-item { grid-template-columns: 1fr; gap: 12px; }
  .svc-item-icon { font-size: 1.5rem; }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .node {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}