/* Apple-inspired design system */
:root {
  --bg: #fbfbfd;
  --bg-gray: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --link: #0066cc;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(0, 0, 0, 0.08);
  --glass: rgba(251, 251, 253, 0.72);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 48px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #f0f4ff 0%, var(--bg) 30%, #fff5f8 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.47059;
  font-size: 17px;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: min(980px, 88vw);
  margin-inline: auto;
}

.hide-mobile { display: inline; }

/* ===== Nav (glass) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 251, 253, 0.9);
}

.nav {
  width: min(980px, 88vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo__img--mark {
  max-width: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  font-size: 12px !important;
  background: var(--accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  opacity: 1 !important;
}

.nav-cta:hover { background: var(--accent-hover); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  flex-shrink: 0;
}

.lang-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  opacity: 0.55;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, color 0.2s;
}

.lang-btn:hover {
  opacity: 0.9;
}

.lang-btn.active {
  background: #fff;
  color: var(--accent);
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-fill {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn-fill:hover {
  background: var(--accent-hover);
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
}

.btn-fill:hover::after { transform: translateX(100%); }

.btn-fill--light {
  background: #fff;
  color: var(--accent);
}

.btn-fill--light:hover { background: #f5f5f7; }

.btn-fill--wide { width: 100%; padding: 14px; font-size: 17px; }

.btn-link {
  color: var(--link);
  background: none;
  padding: 12px 16px;
}

.btn-link:hover { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 14s ease-in-out infinite;
}

.hero-blob--1 {
  width: 420px;
  height: 420px;
  background: #a8d4ff;
  top: -10%;
  left: -5%;
}

.hero-blob--2 {
  width: 360px;
  height: 360px;
  background: #c8b6ff;
  top: 20%;
  right: -8%;
  animation-delay: -5s;
}

.hero-blob--3 {
  width: 280px;
  height: 280px;
  background: #b8f0d8;
  bottom: 0;
  left: 35%;
  animation-delay: -9s;
  opacity: 0.35;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -20px) scale(1.05); }
  66% { transform: translate(-16px, 16px) scale(0.95); }
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(90deg, #0071e3, #5856d6, #0071e3);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 6s linear infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #30d158;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 24px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-label--light { color: #2997ff; }

.hero-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.004em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 64px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin-inline: auto;
}

.stat {
  text-align: center;
  transition: transform 0.4s var(--ease-out);
}

.stat:hover { transform: translateY(-4px); }

.stat-num span { display: inline-block; }

.stat-num {
  display: block;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  transition: transform 0.35s var(--ease-out);
}

.stat-text {
  display: block;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ===== Features strip ===== */
.features-strip {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  background: var(--bg-gray);
  border-block: 1px solid var(--border);
}

.features-strip::before,
.features-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.features-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-gray), transparent);
}

.features-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-gray), transparent);
}

.features-track {
  display: flex;
  gap: 48px;
  animation: scroll 25s linear infinite;
  white-space: nowrap;
}

.features-track span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  flex-shrink: 0;
  padding: 6px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section--gray { background: var(--bg-gray); }

.section--dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}

.section--cta {
  padding-bottom: 120px;
}

.section-intro { margin-bottom: 48px; }

.section-intro--center { text-align: center; }

.section-intro h2,
.innovation-text h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
}

.section--dark .innovation-text h2 { color: #f5f5f7; }

.section-lead {
  font-size: 21px;
  line-height: 1.381;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 580px;
}

.section-intro--center .section-lead { margin-inline: auto; }

.section-lead--light { color: #a1a1a6; }

/* ===== Bento grid ===== */
.bento {
  display: grid;
  gap: 16px;
}

.bento--about {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
}

.bento--services {
  grid-template-columns: repeat(3, 1fr);
}

.bento-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}

.bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 113, 227, 0.2);
}

.bento-icon {
  transition: transform 0.4s var(--ease-out);
}

.bento-card:hover .bento-icon {
  transform: scale(1.15) rotate(-4deg);
}

.section--gray .bento-card {
  background: #fff;
}

.bento-card--large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  background: linear-gradient(145deg, #f5f5f7 0%, #fff 100%);
}

.bento-card--wide { grid-column: span 2; }

.bento-card--feature {
  grid-row: span 2;
  background: linear-gradient(160deg, #f0f7ff 0%, #fff 50%);
}

.bento-card--accent {
  background: linear-gradient(160deg, #1d1d1f 0%, #2d2d2f 50%, #1a1a2e 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #f5f5f7;
  border-color: transparent;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.bento-card--accent h3,
.bento-card--accent p { color: #f5f5f7; }

.bento-card--accent p { opacity: 0.85; }

.bento-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.bento-big {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.bento-desc,
.bento-title {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.bento-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}

.bento-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bento-icon {
  font-size: 28px;
  line-height: 1;
}

.bento-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  color: #2997ff;
  text-decoration: none;
}

.bento-link:hover { text-decoration: underline; }

/* ===== Innovation ===== */
.innovation-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 28px 0 32px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 17px;
  color: #a1a1a6;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #30d158;
  font-weight: 600;
}

.vision-mock {
  background: #1c1c1e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.5s var(--ease-out);
}

.innovation-visual.visible .vision-mock {
  animation: mockFloat 5s ease-in-out infinite;
}

@keyframes mockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.vision-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: #2c2c2e;
}

.vision-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #48484a;
}

.vision-bar span:first-child { background: #ff5f57; }
.vision-bar span:nth-child(2) { background: #febc2e; }
.vision-bar span:nth-child(3) { background: #28c840; }

.vision-screen {
  position: relative;
  padding: 32px 24px 48px;
  min-height: 280px;
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.vision-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #30d158, transparent);
  box-shadow: 0 0 12px #30d158;
  animation: visionScan 3.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes visionScan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.vision-tag {
  align-self: flex-start;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #f5f5f7;
  opacity: 0;
  transform: translateX(-12px);
  animation: tagIn 0.6s var(--ease-out) forwards;
  animation-delay: calc(0.4s + var(--d, 0) * 0.35s);
}

.innovation-visual.visible .vision-tag {
  animation-play-state: running;
}

@keyframes tagIn {
  to { opacity: 1; transform: translateX(0); }
}

.vision-tag--ok {
  border-color: rgba(48, 209, 88, 0.4);
  color: #30d158;
}

/* ===== Offices ===== */
.offices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.office-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.office-pill:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.office-pill--hq {
  animation: hqGlow 4s ease-in-out infinite;
}

@keyframes hqGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 113, 227, 0.15); }
  50% { box-shadow: 0 8px 32px rgba(0, 113, 227, 0.28); }
}

.office-pill--hq {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
}

.office-pill strong {
  font-size: 17px;
  font-weight: 600;
}

.office-pill span {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ===== Contact ===== */
.cta-box {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  padding: 48px 40px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.cta-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-box > p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 12px 0 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 17px;
  background: var(--bg-gray);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236e6e73' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.cta-alt {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.cta-alt a {
  color: var(--link);
  text-decoration: none;
}

.cta-alt a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  padding: 24px 0 32px;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--link); }

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-stagger].visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 0.26s; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 0.33s; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 0.4s; }

[data-stagger].visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.check-list li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.innovation-text.visible .check-list li:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: none; }
.innovation-text.visible .check-list li:nth-child(2) { transition-delay: 0.35s; opacity: 1; transform: none; }
.innovation-text.visible .check-list li:nth-child(3) { transition-delay: 0.5s; opacity: 1; transform: none; }

.chat-fab {
  animation: fabBounce 3s ease-in-out infinite;
}

@keyframes fabBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-fab:hover { animation: none; }

.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Chatbot (iMessage style) ===== */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  font-family: var(--font);
}

.chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.4);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.chat-fab svg { width: 26px; height: 26px; }

.chat-fab:hover { transform: scale(1.06); }

.chat-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.chat-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100dvh - 100px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: all 0.35s var(--ease-out);
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-panel.expanded {
  width: min(440px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 48px));
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-head strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.chat-head span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.chat-head-btns {
  display: flex;
  gap: 4px;
}

.chat-head-btns button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-gray);
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-head-btns button:hover { background: #e8e8ed; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f5f5f7;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

.chat-msg--bot { align-self: flex-start; }

.chat-msg--user { align-self: flex-end; }

.chat-msg-bubble {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border-radius: 18px;
}

.chat-msg--bot .chat-msg-bubble {
  background: #e9e9eb;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg--user .chat-msg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-avatar { display: none; }

.chat-typing .chat-msg-bubble {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips,
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px 4px;
  background: #f5f5f7;
  flex-shrink: 0;
}

.chat-suggestion,
.chat-chip {
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-suggestion:hover,
.chat-chip:hover { background: #e8e8ed; }

.chat-input,
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input input,
.chat-form input {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg-gray);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text);
}

.chat-input input:focus,
.chat-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.3);
}

.chat-input button,
.chat-form button,
.chat-send {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-input button svg,
.chat-form button svg,
.chat-send svg { width: 18px; height: 18px; }

.chat-input button:hover,
.chat-form button:hover { background: var(--accent-hover); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .bento--about,
  .bento--services { grid-template-columns: 1fr; }
  .bento-card--large,
  .bento-card--feature { grid-row: span 1; min-height: auto; }
  .bento-card--wide { grid-column: span 1; }
  .innovation-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 734px) {
  .hide-mobile { display: none; }

  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 20px;
    max-height: calc(100dvh - 52px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s var(--ease-out);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 12px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hero { padding-top: 88px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .chat-panel.expanded {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    right: -24px;
    bottom: -24px;
    border-radius: 0;
  }
}
