/* ============================================================
   Silver Web Studio – v2 (huly.io inspired)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --grey-1:   #090A0C;
  --grey-3:   #0D0F12;
  --grey-5:   #13151A;
  --grey-10:  #1C1E26;
  --grey-15:  #222430;
  --grey-20:  #2A2D3A;
  --grey-30:  #3A3E50;
  --grey-50:  #6B7280;
  --grey-70:  #9CA3AF;
  --grey-90:  #D1D5DB;

  --white:    #FFFFFF;
  --blue:     #5B8FF9;
  --purple:   #A78BFA;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-title:   'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--grey-1);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 50;
  transition: background 0.2s, border-color 0.2s;
}
.nav.scrolled {
  position: fixed;
  background: rgba(9, 10, 12, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-wordmark {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #a8a8be 0%, #f2f2f8 45%, #9090aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-tld {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  opacity: 0.45;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-signin {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  transition: color 0.15s;
}
.nav-signin:hover { color: var(--white); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--white);
  color: #000;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* Very tall – like huly's 1438px */
  min-height: 1100px;
  overflow: hidden;
  background: var(--grey-1);
  padding-top: 64px; /* nav height */
}



/* ── Line grid overlay ── */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle 300px at var(--sx,-999px) var(--sy,-999px), black 0%, rgba(0,0,0,0.5) 50%, transparent 80%);
  mask-image: radial-gradient(circle 300px at var(--sx,-999px) var(--sy,-999px), black 0%, rgba(0,0,0,0.5) 50%, transparent 80%);
}

/* ══════════════════════════════════════════
   GHOST UI LAYERS – spotlight reveal
   ══════════════════════════════════════════ */
.ghost-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  color: #ffffff;
  overflow: hidden;
}
.ghost-layer--dim { opacity: 0.055; }
.ghost-layer--bright {
  opacity: 0.17;
  -webkit-mask-image: radial-gradient(circle 300px at var(--sx,-999px) var(--sy,-999px), black 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
  mask-image: radial-gradient(circle 300px at var(--sx,-999px) var(--sy,-999px), black 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
}
@media (hover: none), (pointer: coarse) {
  .ghost-layer--bright { display: none; }
}

/* Containers */
.ghost-win,
.ghost-chart-card,
.ghost-code-block,
.ghost-metrics-group,
.ghost-form-card {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 8px;
}

/* Browser window */
.ghost-win-bar {
  height: 26px;
  border-bottom: 1px solid currentColor;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
}
.ghost-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  flex-shrink: 0;
}
.ghost-addressbar {
  flex: 1;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 20px;
}
.ghost-win-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ghost-strip {
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 4px;
}
.ghost-row3 { display: flex; gap: 6px; }
.ghost-box {
  flex: 1;
  height: 50px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

/* Chart card */
.ghost-chart-card { padding: 10px 12px; }
.ghost-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
}
.ghost-bbar {
  flex: 1;
  height: var(--h, 50%);
  border: 1px solid currentColor;
  border-radius: 2px 2px 0 0;
}

/* Code block */
.ghost-code-block {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ghost-code-topbar {
  height: 0;
  border-bottom: 1px solid currentColor;
  margin-bottom: 3px;
}

/* Metric tiles */
.ghost-metrics-group {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ghost-mtile {
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ghost-mnum {
  height: 13px;
  width: 50%;
  border: 1px solid currentColor;
  border-radius: 3px;
}

/* Form card */
.ghost-form-card {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ghost-input-mock {
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 4px;
}
.ghost-btn-mock {
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 20px;
  margin-top: 2px;
}

/* Ghost text styles */
.ghost-big-num {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: currentColor;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 3px;
}
.ghost-small {
  font-size: 9px;
  font-weight: 600;
  color: currentColor;
  font-family: var(--font-body);
  display: block;
}
.ghost-tiny {
  font-size: 8px;
  color: currentColor;
  font-family: var(--font-body);
  display: block;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}
.ghost-placeholder { opacity: 0.5; }
.ghost-form-row { margin-bottom: 2px; }

/* Code lines with text (override fixed-height ghost-cline) */
.ghost-code-line {
  height: auto;
  border: none;
  padding: 1px 0;
}

/* Shared line element */
.ghost-cline {
  height: 5px;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.ghost-cline.w40 { width: 40%; }
.ghost-cline.w50 { width: 50%; }
.ghost-cline.w55 { width: 55%; }
.ghost-cline.w60 { width: 60%; }
.ghost-cline.w65 { width: 65%; }
.ghost-cline.w70 { width: 70%; }
.ghost-cline.w75 { width: 75%; }
.ghost-cline.w80 { width: 80%; }
.ghost-cline.w90 { width: 90%; }

/* ── Hero content (left-aligned, like huly) ── */
.hero-content {
  position: relative;
  z-index: 20;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero-badge-sep { opacity: 0.3; }
.hero-badge strong { color: rgba(255,255,255,0.8); font-weight: 600; }

/* Headline */
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  /* White → lavender gradient, matching huly */
  background: linear-gradient(160deg, #fff 30%, #d5d8f6 78%, #fdf7fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 640px;
  margin-bottom: 24px;
}

/* Subheading */
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.55);
  max-width: 440px;
  margin-bottom: 44px;
}

/* CTA button – silver/white pill, like huly */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a0a00;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
  /* silver gradient */
  background: #d1d1d1;
  border: 1px solid rgba(255,255,255,0.6);
}
/* Warm inner glow – same trick as huly */
.btn-hero-glow {
  position: absolute;
  top: 50%;
  width: 204px;
  height: 121px;
  transform: translateY(-50%) translateX(60px);
  pointer-events: none;
}
.btn-hero-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 121px;
  height: 121px;
  background: radial-gradient(50% 50% at 50% 50%, #FFFFF5 3.5%, #FFAA81 26.5%, #FFDA9F 37.5%, rgba(255,170,129,0.50) 49%, rgba(210,106,58,0.00) 92.5%);
}
.btn-hero-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 204px;
  height: 103px;
  background: radial-gradient(43.3% 44.23% at 50% 49.51%, #FFFFF7 29%, #FFFACD 48.5%, #F4D2BF 60.71%, rgba(214,211,210,0.00) 100%);
  filter: blur(5px);
}
.btn-hero span { position: relative; z-index: 1; color: #5A250A; }
.btn-hero svg  { position: relative; z-index: 1; color: #5A250A; }
.btn-hero:hover { transform: translateY(-1px); }

/* ── Hero illustration container ── */
.hero-illustration-wrap {
  position: absolute;
  bottom: 0;
  left: 40px; /* matches huly's left-2 ≈ 8px, but we adjust */
  width: calc(100% - 40px);
  aspect-ratio: 1.067;
  max-width: 1400px;
  pointer-events: none;
}

/* The actual app mockup */
.hero-app {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 90%;
  max-width: 1060px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(255,255,255,0.04),
    0 -40px 80px rgba(0,0,0,0.6);
}

/* App bar */
.app-titlebar {
  height: 36px;
  background: var(--grey-5);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.app-dot { width: 10px; height: 10px; border-radius: 50%; }
.app-dot:nth-child(1) { background: #FF5F57; }
.app-dot:nth-child(2) { background: #FEBC2E; }
.app-dot:nth-child(3) { background: #28C840; }
.app-title-text {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}

/* App body */
.app-body {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  height: 580px;
  background: var(--grey-3);
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  border-right: 1px solid rgba(255,255,255,0.05);
  background: var(--grey-5);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 12px;
}
.app-sidebar-logo-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #c0c0c0, #888);
  border-radius: 6px;
}
.app-sidebar-logo-text {
  width: 60px;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.app-nav-item {
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.app-nav-item.active {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}
.app-nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.app-nav-item.active .app-nav-dot { background: rgba(255,255,255,0.2); }
.app-nav-label {
  width: 70px;
  height: 7px;
  background: currentColor;
  border-radius: 3px;
  opacity: 0.5;
}

/* Main content */
.app-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.app-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-main-title {
  width: 140px;
  height: 14px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}
.app-main-tag {
  width: 60px;
  height: 20px;
  background: rgba(91,143,249,0.15);
  border: 1px solid rgba(91,143,249,0.2);
  border-radius: 4px;
}
.app-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.app-tb-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
.app-tb-btn.primary { background: rgba(91,143,249,0.2); border-color: rgba(91,143,249,0.25); }

/* Kanban columns */
.app-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
}
.kanban-col {}
.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.kanban-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.kanban-col-dot.todo   { background: #6B7280; }
.kanban-col-dot.progress { background: #5B8FF9; }
.kanban-col-dot.review { background: #F59E0B; }
.kanban-col-dot.done   { background: #10B981; }
.kanban-col-label {
  width: 50px;
  height: 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
.kanban-col-count {
  width: 18px;
  height: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  margin-left: auto;
}

.kanban-card {
  background: var(--grey-5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}
.kanban-card-title {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 8px;
}
.kanban-card-title.short { width: 75%; }
.kanban-card-tags {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.kanban-tag {
  height: 16px;
  width: 44px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
}
.kanban-tag.blue { background: rgba(91,143,249,0.12); border: 1px solid rgba(91,143,249,0.15); }
.kanban-tag.green { background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.14); }
.kanban-tag.amber { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.14); }
.kanban-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kanban-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  flex-shrink: 0;
}
.kanban-avatar.b { background: linear-gradient(135deg, #f093fb, #f5576c); }
.kanban-meta { width: 40px; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; margin-left: auto; }

/* Right panel */
.app-panel {
  border-left: 1px solid rgba(255,255,255,0.05);
  background: var(--grey-5);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.panel-title {
  width: 100px;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.panel-section { display: flex; flex-direction: column; gap: 8px; }
.panel-label { width: 60px; height: 7px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.panel-value { height: 28px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; }
.panel-members { display: flex; gap: 4px; }
.panel-member {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-5);
}
.panel-member:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); }
.panel-member:nth-child(2) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.panel-member:nth-child(3) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.panel-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.panel-progress-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, #5B8FF9, #A78BFA);
  border-radius: 2px;
}


/* ── Gradient fade from bottom of hero ── */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--grey-1) 0%, transparent 100%);
  z-index: 15;
  pointer-events: none;
}

/* ── Scrolling ticker / logos row ── */
.hero-bottom-bar {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 40px;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-sep {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   LOGOS / TRUST
   ============================================================ */
.trust {
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.trust-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}
.trust-logo {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.trust-logo:hover { color: rgba(255,255,255,0.45); }

/* ============================================================
   FEATURES – big 3-column grid
   ============================================================ */
.features {
  padding: 120px 0;
}
.features-header {
  margin-bottom: 80px;
}
.features-header h2 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(160deg, #fff 30%, #d5d8f6 78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 600px;
  margin-bottom: 16px;
}
.features-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  max-width: 480px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--grey-1);
  padding: 40px 36px;
  transition: background 0.2s;
  position: relative;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-card:hover { background: var(--grey-3); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--white);
}
.feature-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.process-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.process-text h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(160deg, #fff 30%, #d5d8f6 78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.process-text > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
}
.process-step {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.process-step:last-child { border-bottom: none; }
.process-step:hover { background: rgba(255,255,255,0.02); }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.step-body p {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* Process visual panel */
.process-visual {
  background: var(--grey-5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
}
.process-visual-header {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pv-dot { width: 10px; height: 10px; border-radius: 50%; }
.pv-dot:nth-child(1) { background: #FF5F57; }
.pv-dot:nth-child(2) { background: #FEBC2E; }
.pv-dot:nth-child(3) { background: #28C840; }
.process-visual-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pv-row { display: flex; gap: 10px; align-items: flex-start; }
.pv-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.pv-avatar.a { background: linear-gradient(135deg, #c0c0c0, #888); }
.pv-avatar.b { background: linear-gradient(135deg, #667eea, #764ba2); }
.pv-avatar.c { background: linear-gradient(135deg, #f093fb, #f5576c); }
.pv-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 260px;
}
.pv-bubble p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.pv-bubble.self {
  background: rgba(91,143,249,0.08);
  border-color: rgba(91,143,249,0.12);
  margin-left: auto;
}
.pv-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.pv-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: typing-dot 1.4s ease-in-out infinite;
}
.pv-typing span:nth-child(2) { animation-delay: 0.2s; }
.pv-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40%           { opacity: 1;    transform: scale(1); }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.portfolio-header h2 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(160deg, #fff 30%, #d5d8f6 78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.portfolio-all {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  white-space: nowrap;
}
.portfolio-all:hover { color: rgba(255,255,255,0.7); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio-grid--single {
  grid-template-columns: 1fr;
  max-width: 100%;
}
.portfolio-card--wide .portfolio-info {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.portfolio-card--wide .portfolio-info h3 { margin-bottom: 6px; }
.portfolio-card--wide .portfolio-info > div:first-child { flex: 1; min-width: 200px; }

/* Browser bar above iframe */
.pt-browser-bar {
  height: 34px;
  background: var(--grey-10);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}
.pt-browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* Tall thumb for iframe */
.portfolio-thumb--tall {
  height: auto;
  display: flex;
  flex-direction: column;
}
.pt-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0f;
  cursor: pointer;
}
.pt-iframe-inner {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  will-change: transform;
  transition: transform 1.5s ease;
}
.portfolio-card--wide:hover .pt-iframe-inner {
  /* scroll handled by JS on hover */
}
.pt-iframe-inner iframe {
  display: block;
  width: 1280px;
  height: 2200px;
  border: none;
  pointer-events: none;
}

/* Info sekce – výraznější text pro wide kartu */
.portfolio-card--wide .portfolio-info {
  display: block;
  padding: 22px 24px 24px;
}
.portfolio-card--wide .portfolio-tag {
  font-size: 0.72rem;
  color: rgba(167,139,250,0.85);
  margin-bottom: 8px;
}
.portfolio-card--wide .portfolio-info h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #fff;
}
.portfolio-card--wide .portfolio-info p {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  margin-bottom: 14px;
}
.portfolio-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  background: var(--grey-5);
  transition: border-color 0.2s, transform 0.25s;
}
.portfolio-card:hover {
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-4px);
}
.portfolio-thumb {
  height: 188px;
  position: relative;
  overflow: hidden;
}
.pt-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .pt-inner { transform: scale(1.04); }

.pt-a { background: linear-gradient(135deg, #0f1021 0%, #1a1548 40%, #0d1a40 100%); }
.pt-b { background: linear-gradient(135deg, #0a1a14 0%, #0d2b20 40%, #08201a 100%); }
.pt-c { background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 40%, #1a0a14 100%); }
.pt-d { background: linear-gradient(135deg, #0e0a1a 0%, #1c1030 40%, #120820 100%); }
.pt-card.accent-d { background: rgba(167,139,250,0.07); border-color: rgba(167,139,250,0.12); }

.pt-ui {
  position: absolute;
  inset: 0;
  padding: 16px;
}
.pt-topbar {
  height: 28px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}
.pt-tb-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.pt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pt-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  height: 60px;
}
.pt-card.tall { height: 130px; grid-row: span 2; }
.pt-card.accent-a { background: rgba(91,143,249,0.08); border-color: rgba(91,143,249,0.12); }
.pt-card.accent-b { background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.10); }
.pt-card.accent-c { background: rgba(239,68,68,0.06);  border-color: rgba(239,68,68,0.10); }

.portfolio-info {
  padding: 18px 20px 20px;
}
.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
}
.portfolio-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.portfolio-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin-bottom: 10px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.portfolio-link:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.35); }

/* ============================================================
   WHY SECTION – argumenty
   ============================================================ */
.why-section {
  padding: 100px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.why-header {
  max-width: 560px;
  margin-bottom: 56px;
}
.why-header h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 12px 0 16px;
}
.why-header p {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  line-height: 1.6;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px 24px 24px;
  transition: border-color 0.2s;
}
.why-card:hover { border-color: rgba(255,255,255,0.13); }
.why-num {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  line-height: 1;
}
.why-text {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.why-text strong { color: rgba(255,255,255,0.75); font-weight: 600; }
.why-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.why-cta p {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
}
.btn-why {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-why:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STATS / PROOF
   ============================================================ */
.stats {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; }
.stat-value {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, #fff 30%, #d5d8f6 78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.45;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(80,70,140,0.22) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-inner h2 {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  background: linear-gradient(160deg, #fff 30%, #d5d8f6 78%, #fdf7fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 700px;
  margin: 0 auto 20px;
}
.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  max-width: 440px;
  margin: 0 auto 44px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-cta-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.cta-note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.22);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 220px;
}
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}
.footer-col a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.775rem;
  color: rgba(255,255,255,0.2);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.2);
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.45); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 180px 1fr; }
  .app-panel { display: none; }
  .process-inner { grid-template-columns: 1fr; }
  .process-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat-item { border-right: none; padding: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 0; }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: block; }

  .hero { min-height: auto; }
  .hero-content { padding-top: 80px; }
  .hero-illustration-wrap { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  .hero-bottom-bar { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ══════════════════════════════════════════
   CHATBOT WIDGET
   ══════════════════════════════════════════ */
.chatbot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: var(--font);
}

.chatbot-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 28px rgba(108,99,255,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.chatbot-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 36px rgba(108,99,255,0.65);
}

.cb-icon-chat, .cb-icon-close {
  position: absolute;
  transition: opacity 0.2s, transform 0.2s;
}
.cb-icon-close { opacity: 0; transform: scale(0.6); }
.chatbot.open .cb-icon-chat  { opacity: 0; transform: scale(0.6); }
.chatbot.open .cb-icon-close { opacity: 1; transform: scale(1); }

.chatbot-notif {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}
.chatbot-notif.hidden { opacity: 0; transform: scale(0); pointer-events: none; }

/* Window */
.chatbot-win {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-height: 520px;
  background: #0d0d1c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.chatbot.open .chatbot-win {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  flex-shrink: 0;
}
.chatbot-header-left { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chatbot-agent-name  { font-size: 0.875rem; font-weight: 600; color: #fff; }
.chatbot-agent-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.chatbot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.chatbot-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.chatbot-close-btn:hover { color: #fff; }

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.cb-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}
.cb-msg--agent { align-self: flex-start; }
.cb-msg--user  { align-self: flex-end; }

.cb-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.845rem;
  line-height: 1.55;
}
.cb-msg--agent .cb-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 4px;
}
.cb-msg--user .cb-bubble {
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.cb-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.cb-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: cbDot 1.2s ease-in-out infinite;
}
.cb-typing span:nth-child(2) { animation-delay: 0.2s; }
.cb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cbDot {
  0%, 80%, 100% { transform: translateY(0);   opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1;   }
}

/* Input */
.chatbot-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.chatbot-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 9px 16px;
  color: #fff;
  font-size: 0.845rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.chatbot-input::placeholder { color: rgba(255,255,255,0.28); }
.chatbot-input:focus { border-color: rgba(108,99,255,0.55); }

.chatbot-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.chatbot-send:disabled { opacity: 0.38; cursor: not-allowed; }
.chatbot-send:not(:disabled):hover { opacity: 0.82; }

@media (max-width: 480px) {
  .chatbot { bottom: 16px; right: 16px; }
  .chatbot-win { width: calc(100vw - 32px); bottom: 70px; right: 0; }
}
