:root{
  --dp-font-head: "Heebo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --dp-font-body: "Assistant", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html, body{
  font-family: var(--dp-font-body);
}

h1,h2,h3,h4{
  font-family: var(--dp-font-head);
}

body.designpress{
  background: #05060a;
}

/* Mesh gradient background */
.mesh-bg{
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 45% at 20% 20%, rgba(16, 185, 129, .28) 0%, rgba(16, 185, 129, 0) 60%),
    radial-gradient(40% 45% at 80% 30%, rgba(59, 130, 246, .26) 0%, rgba(59, 130, 246, 0) 60%),
    radial-gradient(35% 40% at 50% 85%, rgba(236, 72, 153, .22) 0%, rgba(236, 72, 153, 0) 60%),
    radial-gradient(45% 55% at 65% 60%, rgba(168, 85, 247, .18) 0%, rgba(168, 85, 247, 0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  filter: blur(30px) saturate(125%);
  animation: meshMove 18s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}

@keyframes meshMove{
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  50%  { transform: translate3d(2%,  1%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.03); }
}

.mesh-noise{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .45;
}

/* Small glow dot */
.glow-dot{
  box-shadow: 0 0 20px rgba(16,185,129,.55);
}

/* Chips */
.glass-chip{
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* Typewriter */
.typewriter{
  white-space: nowrap;
  display: inline-block;
}
.type-caret{
  display: inline-block;
  width: 10px;
  height: 1.2em;
  margin-left: 6px;
  vertical-align: -2px;
  border-right: 2px solid rgba(255,255,255,.75);
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink{
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* Product cards */
.product-card{
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  transform: translateZ(0);
  will-change: transform;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 55px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.18);
}

.product-media{
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.product-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.1);
  opacity: 0;
  transition: opacity .35s ease;
}
.product-img.is-loaded{ opacity: 1; }

.product-sheen{
  position: absolute;
  inset: -20%;
  background: radial-gradient(40% 40% at 20% 20%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%);
  opacity: .7;
  transform: translate3d(0,0,0);
  transition: opacity .25s ease;
  pointer-events: none;
}
.product-card:hover .product-sheen{
  opacity: 1;
}

/* Live demo button */
.live-demo-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover .live-demo-btn{
  background: rgba(16,185,129,.22);
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 0 22px rgba(16,185,129,.18);
  transform: translateY(-1px);
}

/* Toggle switch dot */
#priceToggle[aria-checked="true"]{
  background: rgba(16,185,129,.30);
  border-color: rgba(16,185,129,.35);
}
#priceToggle .toggle-dot{
  translate: 2px 0;
}
#priceToggle[aria-checked="true"] .toggle-dot{
  translate: 22px 0;
}

/* FAQ */
.faq-card{
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px 16px;
  color: rgba(255,255,255,.80);
}
.faq-card summary{
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}
.faq-card p{
  margin-top: 10px;
  color: rgba(255,255,255,.70);
}

/* Chat widget */
.chat-root{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}
body.is-rtl .chat-root{
  right: auto;
  left: 18px;
}

.chat-fab{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.chat-fab:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}
.chat-fab-dot{
  position: absolute;
  inset: -40%;
  background: radial-gradient(30% 30% at 30% 30%, rgba(16,185,129,.65), rgba(16,185,129,0) 65%);
  animation: floaty 2.6s ease-in-out infinite alternate;
  opacity: .8;
}
@keyframes floaty{
  from{ transform: translate3d(-3%, -2%, 0); }
  to{ transform: translate3d(3%, 2%, 0); }
}
.chat-fab-icon{
  position: relative;
  font-size: 18px;
}

.chat-panel{
  width: min(360px, calc(100vw - 36px));
  height: 520px;
  border-radius: 24px;
  background: rgba(10,12,18,.78);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: 70px;
  transform-origin: bottom right;
  transform: scale(.92) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
body.is-rtl .chat-panel{
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

.chat-root.is-open .chat-panel{
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header{
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.chat-title{
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
}
.chat-name{
  color: #fff;
  font-weight: 800;
  font-family: var(--dp-font-head);
  letter-spacing: -0.01em;
}
.chat-sub{
  color: rgba(255,255,255,.55);
  font-size: 12px;
  margin-top: -2px;
}
.chat-close{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.9);
  transition: background .2s ease, transform .2s ease;
}
.chat-close:hover{ background: rgba(255,255,255,.10); transform: translateY(-1px); }

.chat-body{
  padding: 14px;
  height: calc(520px - 58px - 62px);
  overflow-y: auto;
}
.chat-bubble{
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
  line-height: 1.35;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.chat-bubble.bot{
  background: rgba(255,255,255,.06);
}
.chat-bubble.user{
  margin-left: auto;
  background: rgba(16,185,129,.16);
  border-color: rgba(16,185,129,.25);
}

.chat-form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.chat-input{
  width: 100%;
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  outline: none;
}
.chat-input:focus{
  border-color: rgba(255,255,255,.20);
}
.chat-send{
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,.92);
  color: #0b0d12;
  font-weight: 800;
}

/* Make sure summaries look good in RTL */
body.is-rtl .faq-card summary,
body.is-rtl .chat-body,
body.is-rtl .chat-form{
  direction: rtl;
}
