:root{
  --brand-blue: #2563FF;
  --brand-violet: #7C3AED;
  --brand-blue-600: #1f54ff;
  --ink: #0B1220;
  --bg: #F7FAFC;
  --card: #FFFFFF;
  --muted: #64748B;

  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 8px 24px rgba(11,18,32,0.08), 0 2px 8px rgba(11,18,32,0.06);
  --shadow-strong: 0 20px 60px rgba(11,18,32,0.14);
}

*{box-sizing:border-box}

body {
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero-gradient {
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.card-shadow {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11,18,32,0.06);
}

.surface-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11,18,32,0.06);
}

.product-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 20px;
  border: 1px solid rgba(37,99,255,0.10);
  box-shadow: 0 16px 40px rgba(37,99,255,0.10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(37,99,255,0.14);
  border-color: rgba(37,99,255,0.18);
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,255,0.12), rgba(124,58,237,0.12));
  color: var(--brand-blue);
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #24408e;
  font-size: .875rem;
  font-weight: 500;
}

.field-input,
.field-select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,0.12);
  background: #fff;
  padding: .9rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field-input:focus,
.field-select:focus {
  border-color: rgba(37,99,255,0.6);
  box-shadow: 0 0 0 4px rgba(37,99,255,0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 14px;
  padding: .9rem 1.1rem;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(37,99,255,0.22);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37,99,255,0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 14px;
  padding: .9rem 1.1rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(11,18,32,0.12);
  font-weight: 600;
}

.playfair {
  font-family: "Space Grotesk", Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.jetbrains {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.slide-in {
  animation: slideIn 0.5s ease-out both;
}

@keyframes slideIn {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.35s ease-in both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ai-robot { position: relative; }

.ai-robot::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, var(--brand-blue) 0%, var(--brand-violet) 100%);
  filter: blur(70px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .9;
}

.sentinel { height:1px; }

@media (max-width:639px){
  .chat-fixed{
    position:fixed;
    left:0;
    right:0;
    z-index:40;
    display:flex;
    flex-direction:column;
  }

  .chat-fixed iframe{flex:1 1 auto;}

  #chat-toggle{ margin-top:auto; }
}
