/* =============================================================
   Juyushi Software — Stylesheet
   Theme: Deep aubergine canvas + magenta / orange / purple gradient
   No blue. Vibrant yet elegant.
   ============================================================= */

:root {
  /* Core palette */
  --bg: #0F0817;
  --bg-2: #15092a;
  --bg-3: #1d0d3a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --ink: #F6F1FF;
  --ink-soft: #C9C0E0;
  --ink-mute: #8A82A6;

  --pink: #FF006E;
  --orange: #FB8500;
  --gold: #FFD60A;
  --purple: #8338EC;
  --magenta: #E0156F;

  --grad-brand: linear-gradient(135deg, #FF006E 0%, #FB8500 55%, #8338EC 100%);
  --grad-soft:  linear-gradient(135deg, rgba(255,0,110,.18), rgba(131,56,236,.18));
  --grad-text:  linear-gradient(120deg, #FF006E 0%, #FB8500 50%, #FFD60A 100%);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-glow: 0 30px 80px -20px rgba(255, 0, 110, .35);
  --shadow-card: 0 20px 50px -25px rgba(0, 0, 0, .8);

  --easing: cubic-bezier(.2,.8,.2,1);
  --easing-soft: cubic-bezier(.16,1,.3,1);

  --container: min(1240px, 92vw);

  --header-h: 76px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
}

/* =================== Reset & Base =================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 800px at 80% -10%, rgba(255,0,110,.18), transparent 60%),
    radial-gradient(900px 700px at -10% 20%, rgba(131,56,236,.16), transparent 60%),
    radial-gradient(700px 600px at 50% 100%, rgba(251,133,0,.12), transparent 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--pink); color: #fff; }

.container { width: var(--container); margin: 0 auto; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 9999;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* =================== Typography =================== */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; margin: 0; }
.display { font-size: clamp(2rem, 4.6vw, 4.6rem); letter-spacing: -.025em; line-height: 1.02; }
.lead { font-size: clamp(1rem, 1.2vw, 1.18rem); color: var(--ink-soft); max-width: 60ch; }

.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  color: var(--ink-mute); font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.eyebrow.center { display: inline-flex; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255,0,110,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,0,110,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,0,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,110,0); }
}

/* =================== Buttons =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .35s var(--easing), background .35s var(--easing), color .35s var(--easing), border-color .35s var(--easing), box-shadow .35s var(--easing);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { padding: 9px 14px; font-size: .92rem; }
.btn--lg { padding: 15px 24px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  color: #fff;
  background: var(--grad-brand);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 30px 80px -20px rgba(255, 0, 110, .55);
}
.btn--primary:hover svg { transform: translateX(4px); }
.btn--primary svg { transition: transform .3s var(--easing); }

.btn--ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--pink);
  color: #fff;
  background: rgba(255,0,110,.12);
  transform: translateY(-2px);
}

/* =================== Background ambience =================== */
.bg-aura {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.aura {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform;
}
.aura--1 { width: 520px; height: 520px; background: radial-gradient(circle, #FF006E, transparent 65%); top: -120px; right: -120px; animation: floaty 14s var(--easing) infinite; }
.aura--2 { width: 620px; height: 620px; background: radial-gradient(circle, #8338EC, transparent 65%); bottom: -180px; left: -160px; animation: floaty 18s var(--easing) infinite reverse; }
.aura--3 { width: 380px; height: 380px; background: radial-gradient(circle, #FB8500, transparent 65%); top: 45%; left: 55%; transform: translate(-50%, -50%); opacity: .35; animation: floaty 22s var(--easing) infinite; }
@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.05); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* =================== Loader =================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--easing), visibility .8s var(--easing);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; gap: 18px; place-items: center; }
.loader__logo { width: 64px; height: 64px; animation: spin 6s linear infinite; }
.loader__bar { width: 220px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad-brand); animation: load 1.6s var(--easing) forwards; }
.loader__text { font-size: .72rem; letter-spacing: .3em; color: var(--ink-mute); text-transform: uppercase; }
@keyframes load { to { width: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== Cursor =================== */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; transition: transform .12s linear; }
.cursor__ring { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.6); transition: transform .25s var(--easing), width .3s var(--easing), height .3s var(--easing), background .3s var(--easing); }
body.cursor-hover .cursor__ring { width: 60px; height: 60px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.9); }
@media (max-width: 900px), (pointer: coarse) { .cursor { display: none; } }

/* =================== Topbar marquee =================== */
.topbar {
  position: relative; z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(15,8,23,.4);
  backdrop-filter: blur(8px);
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex; gap: 36px; align-items: center;
  white-space: nowrap; padding: 10px 0;
  animation: ticker 40s linear infinite;
  font-size: .8rem; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase;
}
.marquee__track > span:nth-child(even) { color: var(--pink); opacity: .9; }
.marquee--logos .marquee__track {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-transform: none; letter-spacing: -.01em; color: var(--ink-mute);
  padding: 24px 0;
  animation-duration: 60s;
}
.marquee--logos .marquee__track > span:nth-child(even) { color: var(--ink-mute); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =================== Header =================== */
.header {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 40px);
  height: var(--header-h);
  transition: backdrop-filter .3s var(--easing), background .3s var(--easing), border-color .3s var(--easing);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(15, 8, 23, .65);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__dot { color: var(--pink); }
.brand--big .brand__mark { width: 44px; height: 44px; }
.brand--big .brand__name { font-size: 1.2rem; }

.nav ul {
  display: flex; gap: 6px; list-style: none; padding: 6px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; color: var(--ink-soft);
  transition: color .25s var(--easing), background .25s var(--easing);
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255,0,110,.18); }

.header__cta { justify-self: end; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--easing), opacity .3s var(--easing); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: rgba(15, 8, 23, .96);
  backdrop-filter: blur(16px);
  z-index: 45;
  padding: 28px clamp(20px, 6vw, 40px);
  display: flex; flex-direction: column; gap: 22px;
  transform: translateY(-12px); opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--easing), transform .3s var(--easing);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2rem);
  padding: 10px 0; border-bottom: 1px solid var(--line);
}

/* =================== Hero =================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: clamp(40px, 8vw, 90px) 0;
  overflow: hidden;
  z-index: 2;
}
#three-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 2; display: grid; gap: 26px; max-width: 980px; }
.hero__eyebrow { width: max-content; }
.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 6.4rem);
  letter-spacing: -.03em;
  line-height: .98;
  font-weight: 600;
}
.hero__title .grad-text { display: inline-block; }
.hero__sub { color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 62ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero__metric { display: grid; gap: 4px; }
.hero__metric strong {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__metric span { color: var(--ink-mute); font-size: .85rem; letter-spacing: .04em; }
.hero__scroll {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: 30px;
  display: grid; gap: 10px; justify-items: center;
  font-size: .68rem; letter-spacing: .35em; color: var(--ink-mute); text-transform: uppercase;
  z-index: 2;
}
.hero__line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--ink-mute), transparent);
  position: relative; overflow: hidden;
}
.hero__line::after {
  content: ""; position: absolute; top: -10px; left: 0; right: 0;
  height: 12px; background: var(--pink);
  animation: scrollDot 2.4s var(--easing) infinite;
}
@keyframes scrollDot { 0% { top: -12px; } 100% { top: 60px; } }

/* Floaters */
.floaters { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floaters li {
  position: absolute; left: var(--x); top: var(--y);
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-size: .82rem; color: var(--ink-soft);
  animation: float 7s var(--easing) infinite;
  animation-delay: var(--d);
  transform: translateZ(0);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (max-width: 760px) { .floaters { display: none; } }

/* =================== Logos band =================== */
.logos {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  padding: 18px 0 6px;
}
.logos__label {
  text-align: center;
  font-size: .76rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 6px;
}

/* =================== Sections =================== */
section { position: relative; z-index: 2; padding: clamp(70px, 9vw, 130px) 0; }
.section-head {
  display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 880px;
}

/* =================== About =================== */
.about__grid {
  display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.about__left { display: grid; gap: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { width: 20px; height: 20px; color: var(--pink); flex-shrink: 0; margin-top: 3px; }

.about__right {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  perspective: 1000px;
}
.stat-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform .5s var(--easing), border-color .3s var(--easing);
  transform-style: preserve-3d;
}
.stat-card:hover { transform: translateY(-4px) rotateX(2deg); border-color: var(--line-2); }
.stat-card__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.stat-card p { margin: 6px 0 0; color: var(--ink-mute); font-size: .9rem; }
.stat-card--accent {
  background: var(--grad-soft);
  border-color: rgba(255,0,110,.3);
}
.stat-card--accent .stat-card__num { color: #fff; -webkit-text-fill-color: #fff; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* =================== Services / Cards =================== */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  transition: transform .5s var(--easing), border-color .3s var(--easing), background .3s var(--easing);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--easing);
}
.card:hover { transform: translateY(-6px); border-color: transparent; background: rgba(255,255,255,.06); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-brand);
  display: grid; place-items: center; color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px -10px rgba(255,0,110,.6);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 14px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: .76rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink-soft);
}

@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .cards { grid-template-columns: 1fr; } }

/* =================== Products =================== */
.products { padding-top: clamp(40px, 5vw, 80px); }
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 70px);
  margin: 30px 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255,0,110,.08), rgba(131,56,236,.05) 60%, rgba(255,255,255,.02));
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.product--reverse { grid-template-columns: 1fr 1.05fr; }
.product--reverse .product__copy { order: 2; }
.product--reverse .product__visual { order: 1; }

.product__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.product__icon { width: 28px; height: 28px; color: var(--pink); }
.product--reverse .product__icon { color: var(--purple); }
.product__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 14px 0 16px; letter-spacing: -.02em; }
.product__copy p { color: var(--ink-soft); max-width: 50ch; }
.product__cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.bullets { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
.bullets svg { width: 18px; height: 18px; color: var(--pink); margin-top: 4px; flex-shrink: 0; }
.product--reverse .bullets svg { color: var(--purple); }

.badge {
  font-style: normal; font-family: var(--font-body);
  margin-left: 6px; font-size: .68rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,0,110,.18); color: #FF87B7; border: 1px solid rgba(255,0,110,.3); letter-spacing: .12em; text-transform: uppercase;
}
.badge--purple { background: rgba(131,56,236,.18); color: #C9A7FF; border-color: rgba(131,56,236,.35); }

/* Product visuals */
.product__visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb--pink   { width: 240px; height: 240px; background: #FF006E; top: -30px; right: -30px; }
.orb--orange { width: 220px; height: 220px; background: #FB8500; bottom: -30px; left: -30px; }
.orb--purple { width: 240px; height: 240px; background: #8338EC; top: -30px; left: -30px; }

/* Phone (Izanly) */
.phone {
  width: 280px; height: 560px;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #1f0c3a, #0c0517);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.04);
  position: relative;
  transform: rotate(-6deg);
  transition: transform .8s var(--easing-soft);
}
.product:hover .phone { transform: rotate(-2deg) translateY(-6px); }
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px; border-radius: 14px; background: #000;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 32px;
  background: linear-gradient(180deg, #14062a 0%, #1d0a3d 100%);
  position: relative; overflow: hidden;
}
.chat { padding: 36px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat__head { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.chat__head strong { display: block; font-size: .86rem; }
.chat__head small { color: var(--ink-mute); font-size: .7rem; }
.chat__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-brand); }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.bubble {
  max-width: 78%; padding: 9px 12px; border-radius: 14px;
  font-size: .82rem; line-height: 1.35;
  animation: bubbleIn .6s var(--easing) backwards;
}
.bubble--in {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble--out {
  background: linear-gradient(135deg, #FF006E, #8338EC);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: #fff;
}
.bubble.typing { display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 4px; margin-left: 6px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); animation: dotty 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotty { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubbleIn { from { transform: translateY(8px); opacity: 0; } }
.bubble:nth-child(1) { animation-delay: .2s; }
.bubble:nth-child(2) { animation-delay: .9s; }
.bubble:nth-child(3) { animation-delay: 1.5s; }
.bubble:nth-child(4) { animation-delay: 2.1s; }
.bubble:nth-child(5) { animation-delay: 2.7s; }

.phone__pulse {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 5px; background: rgba(255,255,255,.18); border-radius: 999px;
}

/* Dashboard (ClinicQ) */
.dash {
  width: min(440px, 100%);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 80px -25px rgba(0,0,0,.7);
  transform: rotate(3deg);
  transition: transform .8s var(--easing-soft);
  position: relative; z-index: 1;
}
.product:hover .dash { transform: rotate(0deg) translateY(-6px); }
.dash__bar { display: flex; gap: 6px; margin-bottom: 12px; }
.dash__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.1); }
.dash__bar span:nth-child(1) { background: #FF006E; }
.dash__bar span:nth-child(2) { background: #FB8500; }
.dash__bar span:nth-child(3) { background: #FFD60A; }
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash__head strong { display: block; font-size: 1rem; }
.dash__head small { color: var(--ink-mute); font-size: .8rem; }
.pill {
  font-size: .7rem; padding: 5px 10px; border-radius: 999px;
  background: rgba(50, 220, 130, .18); color: #6CFF9D; border: 1px solid rgba(50,220,130,.3);
  letter-spacing: .14em; text-transform: uppercase;
}
.dash__tokens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tok {
  padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  display: grid; gap: 2px;
}
.tok b { font-family: var(--font-display); font-size: .98rem; }
.tok span { font-size: .72rem; color: var(--ink-mute); }
.tok--done { opacity: .55; }
.tok--now {
  background: linear-gradient(135deg, rgba(131,56,236,.4), rgba(255,0,110,.3));
  border-color: rgba(131,56,236,.5);
}
.tok--now b { color: #fff; }
.tok--now span { color: #ECD9FF; }

.dash__chart { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.bars span { flex: 1; height: var(--h); background: var(--grad-brand); border-radius: 4px 4px 0 0; opacity: .85; transition: height .6s var(--easing); }
.dash__chart small { display: block; margin-top: 8px; color: var(--ink-mute); font-size: .76rem; }

@media (max-width: 880px) {
  .product, .product--reverse { grid-template-columns: 1fr; }
  .product--reverse .product__copy { order: 0; }
  .product--reverse .product__visual { order: 0; }
  .product__visual { min-height: 380px; }
  .phone { transform: rotate(-2deg) scale(.85); }
  .dash { transform: rotate(0deg); }
}

/* =================== Process =================== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  counter-reset: step;
}
.steps li {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative; transition: transform .35s var(--easing), border-color .35s var(--easing);
}
.steps li:hover { transform: translateY(-6px); border-color: var(--line-2); }
.steps__num {
  display: inline-block;
  font-family: var(--font-serif); font-style: italic; font-size: 1.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 1.15rem; margin: 8px 0 6px; }
.steps p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .steps { grid-template-columns: 1fr; } }

/* =================== Stack pills =================== */
.stack { padding: clamp(40px, 6vw, 80px) 0; }
.pills {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.pills li {
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .92rem;
  transition: transform .3s var(--easing), color .3s var(--easing), border-color .3s var(--easing), background .3s var(--easing);
}
.pills li:hover {
  transform: translateY(-3px) scale(1.04);
  color: #fff; background: rgba(255,0,110,.16); border-color: rgba(255,0,110,.4);
}

/* =================== Testimonials =================== */
.testimonials {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.t-card {
  position: relative;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid; gap: 18px;
  transition: transform .4s var(--easing), border-color .3s var(--easing);
}
.t-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.t-card__quote { width: 28px; height: 28px; color: var(--pink); opacity: .7; }
.t-card p { color: var(--ink); font-size: 1rem; line-height: 1.55; margin: 0; }
.t-card__who {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.t-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.t-card__who strong { display: block; font-size: .94rem; }
.t-card__who small { color: var(--ink-mute); font-size: .8rem; }
.t-card__stars { color: var(--gold); font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 1000px) { .testimonials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .testimonials { grid-template-columns: 1fr; } }

/* =================== FAQ =================== */
.faq__list { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
  transition: border-color .3s var(--easing);
}
details[open] { border-color: var(--line-2); background: var(--surface-2); }
summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; width: 18px; height: 18px;
  background: conic-gradient(from 0deg, var(--pink), var(--purple), var(--pink));
  -webkit-mask: linear-gradient(#000 0 0) center/2px 100% no-repeat, linear-gradient(#000 0 0) center/100% 2px no-repeat;
          mask: linear-gradient(#000 0 0) center/2px 100% no-repeat, linear-gradient(#000 0 0) center/100% 2px no-repeat;
  transition: transform .3s var(--easing);
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); margin: 12px 0 0; }

/* =================== Contact =================== */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.contact__copy { display: grid; gap: 18px; }
.contact__meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-soft); }
.contact__meta li { display: flex; gap: 10px; align-items: center; font-size: .96rem; }
.contact__meta svg { width: 18px; height: 18px; color: var(--pink); }

.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.contact__form label { display: grid; gap: 6px; font-size: .82rem; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }
.contact__form .full { grid-column: 1 / -1; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color .25s var(--easing), background .25s var(--easing), box-shadow .25s var(--easing);
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,0,110,.18);
  background: rgba(0,0,0,.4);
}
.contact__form select option { background: var(--bg-2); color: var(--ink); }
.contact__note { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-mute); margin: -4px 0 0; text-align: center; }
@media (max-width: 880px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
}

/* =================== Footer =================== */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 80px) 0 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.4));
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px;
  margin-bottom: 36px;
}
.footer__brand p { color: var(--ink-mute); margin: 14px 0 0; max-width: 38ch; font-size: .92rem; }
.footer h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-soft); transition: color .25s var(--easing); }
.footer a:hover { color: var(--pink); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-mute); font-size: .82rem;
}
.footer__bottom em { font-family: var(--font-serif); color: var(--pink); font-style: italic; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* =================== Reveal animations =================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--easing-soft), transform .9s var(--easing-soft);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =================== Mobile / Header tweaks =================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .header__cta { display: none; }
}
@media (max-width: 540px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
}

/* =================== Big screens =================== */
@media (min-width: 1700px) {
  :root { --container: min(1480px, 90vw); }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --container: min(1700px, 84vw); }
  body { font-size: 18px; }
}

/* =================== Reduced motion =================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
