/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0A0A0C;
  --bg-alt:       #0D0D10;
  --card:         #111115;
  --border:       #1C1C24;
  --accent:       #FF6200;
  --accent-dim:   rgba(255, 98, 0, 0.08);
  --accent-glow:  rgba(255, 98, 0, 0.20);
  --cream:        #EDE8DF;
  --text:         #B0AAA2;
  --text-muted:   #63605C;
  --text-dim:     #2E2C29;
  --font-display: 'Unbounded', sans-serif;
  --font-body:    'IBM Plex Mono', monospace;
  --r:            3px;
  --r-lg:         5px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.97);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--cream); }

.btn-nav {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 5px 14px !important;
  border-radius: var(--r) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: opacity 0.15s !important;
}

.btn-nav:hover {
  opacity: 0.82 !important;
  color: #000 !important;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--r);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  color: var(--cream);
  border-color: var(--text-muted);
}

/* === HERO === */
.hero {
  padding: 80px 0 72px;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* CRT scanline overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Subtle radial light behind title */
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -80px;
  width: 640px; height: 400px;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,98,0,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  border: 1px solid rgba(255, 98, 0, 0.30);
  padding: 4px 12px;
  border-radius: var(--r);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fade-up 0.45s 0.05s both;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.hero-rule {
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
  animation: fade-up 0.45s 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 0.92;
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fade-up 0.6s 0.15s both;
}

.hero-title span { display: block; }
.hero-title .name-accent { color: var(--accent); }

.hero-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  animation: fade-up 0.6s 0.25s both;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.35s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-label::before {
  content: '//';
  opacity: 0.45;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 14px;
  line-height: 1.08;
  text-transform: uppercase;
}

.section-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.85;
}

/* === TWO-COL LAYOUT === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

/* === PIPELINE ANIMATION === */
.pipeline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090C;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 2.5rem 1.25rem;
  min-height: 210px;
  position: relative;
  overflow: hidden;
}

/* Scanline on pipeline panel */
.pipeline-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    rgba(0, 0, 0, 0.10) 3px, rgba(0, 0, 0, 0.10) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.pipeline-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #13131A;
  border: 1px solid #22222C;
  border-radius: var(--r);
  padding: 14px 16px;
  min-width: 108px;
  opacity: 0.22;
  animation: step-pulse 3.6s ease-in-out infinite;
}

.pipeline-step.step-1 { animation-delay: 0s; }
.pipeline-step.step-2 { animation-delay: 1.2s; }
.pipeline-step.step-3 { animation-delay: 2.4s; }

@keyframes step-pulse {
  0%   { opacity: 0.22; border-color: #22222C; box-shadow: none; }
  8%   { opacity: 1;    border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow), inset 0 0 10px rgba(255,98,0,0.05); }
  42%  { opacity: 1;    border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow), inset 0 0 10px rgba(255,98,0,0.05); }
  65%  { opacity: 0.22; border-color: #22222C; box-shadow: none; }
  100% { opacity: 0.22; border-color: #22222C; box-shadow: none; }
}

.step-icon {
  font-size: 0.9rem;
  color: var(--accent);
}

.step-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pipeline-arrow {
  font-size: 1.1rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* === FEATURES === */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  color: var(--accent);
  font-size: 0.45rem;
  margin-top: 7px;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* === CHAT DEMO === */
.chat-section {
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: #0D0D11;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.chat-window {
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-window::-webkit-scrollbar { width: 3px; }
.chat-window::-webkit-scrollbar-thumb { background: var(--border); }

.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 0.8rem;
  line-height: 1.65;
  word-break: break-word;
}

.chat-bubble.bot {
  background: #141418;
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
}

.chat-bubble.user {
  background: var(--accent-dim);
  border: 1px solid rgba(255, 98, 0, 0.22);
  color: var(--accent);
  align-self: flex-end;
  font-size: 0.75rem;
}

/* Loading dots */
.chat-bubble.loading {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 13px 16px;
}

.chat-bubble.loading span {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}

.chat-bubble.loading span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

/* Result card */
.result-card        { display: flex; flex-direction: column; gap: 7px; }
.result-title       { font-weight: 600; color: var(--accent); font-size: 0.88rem; }
.result-stats       { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--text-muted); }
.result-stats strong { color: var(--cream); }
.result-filter-line { font-size: 0.82rem; color: var(--accent); font-weight: 600; padding: 5px 8px; background: rgba(255,98,0,0.08); border-left: 2px solid var(--accent); margin-top: 2px; }
.result-videos      { margin-top: 6px; font-size: 0.76rem; }
.result-videos strong { display: block; margin-bottom: 5px; color: var(--text-muted); }
.result-videos ul   { list-style: none; display: flex; flex-direction: column; gap: 3px; }

.result-videos li {
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.result-videos li::before {
  content: '>';
  position: absolute; left: 0;
  color: var(--accent);
}

/* Chat form */
.chat-form {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 0.8rem;
  color: var(--text);
  font-family: var(--font-body);
}

.chat-input::placeholder { color: var(--text-dim); }

.btn-send {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}

.btn-send:hover    { opacity: 0.82; }
.btn-send:disabled { opacity: 0.35; cursor: not-allowed; }

.chat-hint {
  padding: 7px 18px 10px;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* === PULSE CARD === */
.pulse-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  transition: border-color 0.2s;
}

.pulse-card:hover { border-color: rgba(255, 98, 0, 0.45); }

.pulse-card-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pulse-icon {
  font-size: 1.7rem;
  color: var(--accent);
  flex-shrink: 0;
}

.pulse-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* === SKILLS === */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.skill-tag {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: var(--r);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border-color 0.15s, color 0.15s;
  cursor: default;
}

.skill-tag::before { content: '['; color: var(--text-dim); margin-right: 1px; }
.skill-tag::after  { content: ']'; color: var(--text-dim); margin-left: 1px; }

.skill-tag:hover {
  border-color: rgba(255, 98, 0, 0.45);
  color: var(--cream);
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

/* Top sweep animation */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.project-card:hover {
  border-color: #24242E;
  transform: translateY(-2px);
}

.project-card:hover::before { width: 100%; }

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.project-icon {
  color: var(--accent);
  font-size: 0.45rem;
}

.project-header h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-tags span {
  font-size: 0.65rem;
  background: #1A1A20;
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* === CONTACT === */
.contact-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
}

.contact-link:hover {
  color: var(--accent);
  border-color: rgba(255, 98, 0, 0.40);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-domain { color: var(--text-dim); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { gap: 14px; }
  .nav-links li:not(:last-child) { display: none; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .projects-grid { grid-template-columns: 1fr; }

  .pulse-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero { padding: 56px 0 48px; }

  .footer .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta        { flex-direction: column; align-items: flex-start; }
  .chat-bubble     { max-width: 95%; }
  .nav-inner       { padding: 0 16px; }
  .container       { padding: 0 16px; }
}

/* === TERMINAL ANIMATION === */
.terminal-wrap {
  background: #050507;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 210px;
}

.terminal-bar {
  background: #111116;
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.t-red    { background: #3D1515; }
.t-yellow { background: #3D3A15; }
.t-green  { background: #153D1B; }

.t-bar-title {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.terminal-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.74rem;
  line-height: 1.6;
}

.t-line {
  opacity: 0;
  animation: t-appear 0.25s ease forwards;
  margin: 0;
}

.t-l1 { animation-delay: 0.3s; }
.t-l2 { animation-delay: 1.0s; }
.t-l3 { animation-delay: 1.7s; }
.t-l4 { animation-delay: 2.4s; }
.t-l5 { animation-delay: 3.1s; }
.t-l6 { animation-delay: 3.8s; }
.t-l7 { animation-delay: 4.6s; }
.t-l8 { animation-delay: 5.2s; }

@keyframes t-appear {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.t-cmd    { color: var(--accent); }
.t-dim    { color: var(--text-muted); }
.t-ok     { color: #5CC87A; }
.t-hi     { color: var(--accent); }

.t-cursor {
  opacity: 0;
  color: var(--accent);
  animation: t-appear 0.1s 5.2s forwards, t-blink 0.75s 5.4s step-end infinite;
}

@keyframes t-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* === USE CASES GRID === */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.usecase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.usecase-card:hover {
  border-color: rgba(255, 98, 0, 0.35);
  transform: translateY(-2px);
}

.uc-icon {
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 10px;
  display: block;
}

.usecase-card strong {
  display: block;
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.usecase-card p {
  color: var(--text-muted);
  font-size: 0.71rem;
  line-height: 1.75;
}

/* === WORKFLOW DOWNLOAD CARD === */
.workflow-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.workflow-card-left { flex: 1; min-width: 200px; }
.workflow-card-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.workflow-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255,98,0,0.30);
  padding: 2px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.workflow-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.workflow-desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.workflow-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workflow-meta-tags span {
  font-size: 0.63rem;
  background: #1A1A20;
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.workflow-preview {
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.workflow-canvas {
  background: #050507;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow-x: auto;
  min-height: 80px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.workflow-canvas svg { display: block; }

/* === PROJECTS GRID — wide card === */
.project-card-wide {
  grid-column: 1 / -1;
}

/* === RESULT TABLE === */
.result-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.result-table th { text-align: left; color: var(--text-dim); font-weight: 500; padding: 0 6px 4px 0; border-bottom: 1px solid #222; }
.result-table td { padding: 5px 6px 5px 0; border-bottom: 1px solid #111; vertical-align: middle; }
.result-table .td-title { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-table .td-link a { color: var(--accent); text-decoration: none; font-size: 14px; }
.result-table .td-link a:hover { opacity: 0.75; }

/* === PROJECT ENTRIES === */
.project-entry { padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.project-entry-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--cream); margin: 6px 0 12px; letter-spacing: -0.01em; }

/* === CHATBOT WIDGET === */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chatbot-toggle {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 4px 22px rgba(255, 98, 0, 0.40);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(255, 98, 0, 0.55);
}

.chatbot-panel {
  width: 316px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 10px 48px rgba(0, 0, 0, 0.55);
  animation: fade-up 0.2s ease both;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #0D0D11;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  transition: color 0.15s;
  font-family: var(--font-body);
}
.chatbot-close:hover { color: var(--text); }

.chatbot-messages {
  min-height: 190px;
  max-height: 280px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* === RESPONSIVE — new elements === */
@media (max-width: 900px) {
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .usecases-grid { grid-template-columns: 1fr; }
  .workflow-card { flex-direction: column; gap: 18px; }
  .chatbot-panel { width: calc(100vw - 32px); }
}
