:root {
  --bg: #0B0E1A;
  --bg-alt: #11152a;
  --fg: #F0F2F7;
  --fg-muted: #8892a4;
  --accent: #00E5C4;
  --accent-dim: #00b398;
  --amber: #FF9F43;
  --amber-dim: #cc7a2e;
  --border: rgba(255,255,255,0.07);
  --card: #0F1422;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* — Navigation — */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(11,14,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.3px;
}

/* — Hero — */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 80px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,196,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,159,67,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #5ee7df 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Prism visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prism-container { position: relative; width: 100%; max-width: 420px; }
.prism-shape {
  position: relative;
  width: 260px;
  height: 240px;
  margin: 0 auto;
}
.prism-beam {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  top: 50%;
  animation: beamFloat 4s ease-in-out infinite;
}
.beam-1 { width: 200px; left: 30px; animation-delay: 0s; }
.beam-2 { width: 160px; left: 50px; top: 45%; animation-delay: 0.8s; }
.beam-3 { width: 120px; left: 70px; top: 55%; animation-delay: 1.6s; }
@keyframes beamFloat {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 0.5; transform: translateX(8px); }
}
.prism-triangle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 104px;
}
.prism-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--amber) 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.15;
  animation: prismPulse 3s ease-in-out infinite;
}
@keyframes prismPulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.25; }
}
.prism-triangle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  border: 2px solid var(--accent);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.7;
}
.light-rays { position: absolute; inset: 0; }
.ray {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  animation: rayEmit 3s ease-out infinite;
}
.ray-1 { width: 180px; top: 48%; left: 0; animation-delay: 1s; }
.ray-2 { width: 140px; top: 52%; right: 0; left: auto; transform: scaleX(-1); animation-delay: 1.4s; }
.ray-3 { width: 100px; top: 58%; left: 20%; animation-delay: 1.8s; }
.ray-4 { width: 80px; top: 42%; right: 20%; left: auto; transform: scaleX(-1); animation-delay: 2.2s; }
@keyframes rayEmit {
  0% { opacity: 0; transform: scaleX(0) translateX(0); }
  20% { opacity: 0.6; }
  100% { opacity: 0; transform: scaleX(1) translateX(30px); }
}
.prism-nodes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.node {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: border-color 0.3s, color 0.3s;
}
.node:hover { border-color: var(--accent); color: var(--accent); }
.node-icon { color: var(--accent); display: flex; }

/* — Services — */
.services {
  background: var(--bg-alt);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.services-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--fg);
  margin-bottom: 64px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: rgba(0,229,196,0.3); transform: translateY(-4px); }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0,229,196,0.1);
  border: 1px solid rgba(0,229,196,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0,229,196,0.08);
  border: 1px solid rgba(0,229,196,0.15);
  border-radius: 100px;
  padding: 4px 12px;
  display: inline-block;
}

/* — How — */
.how {
  background: var(--bg);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.how-inner { max-width: 900px; margin: 0 auto; }
.steps { display: flex; align-items: center; gap: 0; }
.step { flex: 1; }
.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
  line-height: 1;
}
.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-connector {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  flex-shrink: 0;
  margin-top: -40px;
}

/* — Industries — */
.industries {
  background: var(--bg-alt);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.industries-inner { max-width: 1200px; margin: 0 auto; }
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.industry-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: border-color 0.3s, color 0.3s;
}
.industry-tag:hover { border-color: rgba(0,229,196,0.4); color: var(--fg); }
.tag-icon { color: var(--amber); display: flex; }

/* — Pricing — */
.pricing {
  background: var(--bg);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.pricing-inner { max-width: 1200px; margin: 0 auto; }
.pricing-card {
  max-width: 560px;
  background: var(--card);
  border: 1px solid rgba(0,229,196,0.2);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
}
.pricing-badge {
  display: inline-block;
  background: rgba(0,229,196,0.1);
  border: 1px solid rgba(0,229,196,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 12px;
  margin-bottom: 16px;
}
.pricing-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 20px;
}
.pricing-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 36px; }
.price {
  font-family: 'Syne', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.per { font-size: 16px; color: var(--fg-muted); }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-muted);
}
.pricing-math {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.math-line {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.math-line strong { color: var(--accent); }
.math-note { font-size: 13px; color: var(--fg-muted); }

/* — Closing — */
.closing {
  background: var(--bg-alt);
  padding: 120px 80px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.closing-visual { margin-bottom: 40px; display: flex; justify-content: center; }
.closing-icon { animation: prismRotate 8s linear infinite; }
@keyframes prismRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.closing-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-body {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* — Footer — */
.footer {
  background: var(--bg);
  padding: 48px 80px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}
.footer-note { font-size: 14px; color: var(--fg-muted); }

/* — Responsive — */
@media (max-width: 900px) {
  .hero { padding: 100px 32px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .services { padding: 72px 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .how { padding: 72px 32px; }
  .steps { flex-direction: column; gap: 24px; }
  .step-connector { width: 1px; height: 40px; margin: 0 auto; background: linear-gradient(180deg, var(--border), var(--accent), var(--border)); }
  .industries { padding: 72px 32px; }
  .pricing { padding: 72px 32px; }
  .closing { padding: 72px 32px; }
  .footer { padding: 32px; }
  .pricing-card { padding: 32px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { width: 48px; height: 1px; }
  .nav { padding: 0 20px; }
}

/* — Live Demo Widget — */
.demo-section {
  background: var(--bg);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.demo-inner { max-width: 1200px; margin: 0 auto; }
.demo-header { text-align: center; margin-bottom: 64px; }
.demo-subtitle {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 16px auto 0;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
.chat-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.chat-header {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chat-info h4 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.chat-info span {
  font-size: 12px;
  color: var(--accent);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble-wrap { display: flex; gap: 8px; align-items: flex-end; }
.chat-bubble-wrap.user { flex-direction: row-reverse; }
.chat-bubble-wrap.user .chat-bubble { background: var(--accent); color: #0B0E1A; }
.chat-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.chat-bubble {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 260px;
}
.chat-bubble-wrap.user .chat-bubble { border-radius: 16px 16px 4px 16px; }
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: typingBounce 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}
.chat-input-area {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input::placeholder { color: var(--fg-muted); }
.chat-input:focus { border-color: var(--accent); }
.chat-send-btn {
  background: var(--accent);
  color: #0B0E1A;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--accent-dim); transform: scale(1.08); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.demo-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.demo-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.demo-info p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}
.flow-steps { display: flex; flex-direction: column; gap: 16px; }
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.flow-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,229,196,0.1);
  border: 1px solid rgba(0,229,196,0.3);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.flow-step-text span {
  font-size: 13px;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .demo-section { padding: 72px 32px; }
  .demo-grid { grid-template-columns: 1fr; }
  .chat-wrapper { height: 420px; }
}