/* ============================================================
   ИИшка — Design System v2  ·  Iris × Lime
   Editorial-geometric, refined brutalist edges.
   Display: Unbounded · Body: Golos Text (Cyrillic-native)
   ============================================================ */

:root {
  /* Brand */
  --iris:        #5A4FCF;
  --iris-700:    #473CB0;
  --iris-900:    #2E2674;
  --iris-tint:   #E7E5F7;
  --iris-tint-2: #D7D3F1;
  --lime:        #C7F464;
  --lime-deep:   #B3E63F;
  --paper:       #EFEFEF;
  --white:       #FFFFFF;
  --cream:       #F3F2EE;

  --ink:    #16142B;
  --ink-80: #3B3853;
  --muted:  #6B6880;
  --line:   #1614281a;
  --line-2: #16142810;

  --bg: var(--paper);
  --text: var(--ink);
  --primary: var(--iris);
  --accent: var(--lime);
  --ring: #5A4FCF;

  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body:    "Golos Text", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.4rem);
  --step-5: clamp(2.6rem, 1.2rem + 4.4vw, 5.2rem);

  --section-y: clamp(4rem, 2.5rem + 7vw, 9rem);
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1240px;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-iris: 8px 8px 0 var(--iris);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.7rem 1.1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--alt { background: #e7e6ee; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--iris-700); }
.eyebrow::before { content: ""; width: 0.7em; height: 0.7em; background: var(--lime); border: 1.5px solid var(--ink); flex: none; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.8rem; }
.section-head p { margin-top: 1rem; color: var(--ink-80); font-size: var(--step-1); line-height: 1.45; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.mark { background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-size: 100% 0.4em; background-position: 0 90%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: 0.04em; }
.iris-text { color: var(--iris); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; font-weight: 700; font-size: var(--step-0); padding: 0.85em 1.5em; border-radius: var(--radius-sm); border: 2px solid var(--ink); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease); min-height: 48px; }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--lime); color: var(--ink); box-shadow: var(--shadow-hard); }
.btn--primary:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn--primary:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--iris { background: var(--iris); color: var(--white); box-shadow: var(--shadow-hard); }
.btn--iris:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); background: var(--iris-700); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { padding: 1.05em 1.9em; font-size: var(--step-1); }
.btn--on-iris.btn--ghost { color: var(--white); border-color: var(--white); }
.btn--on-iris.btn--ghost:hover { background: var(--white); color: var(--iris); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #efefefe6; backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand .dot { width: 30px; height: 30px; background: var(--iris); border: 2px solid var(--ink); border-radius: 8px; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--lime); flex: none; }
.brand .dot span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--iris-900) inset; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links > li { position: relative; }
.nav-links a, .drop-toggle { font-size: var(--step--1); font-weight: 600; }
.nav-links > li > a, .drop-toggle { position: relative; padding: 0.3em 0; display: inline-flex; align-items: center; gap: 0.35em; color: inherit; }
.nav-links > li > a::after, .drop-toggle::after { content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px; background:var(--iris); transition: right 0.25s var(--ease); }
.nav-links > li > a:hover::after, .has-drop:hover .drop-toggle::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--iris); }
.drop-toggle svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.has-drop[data-open="true"] .drop-toggle svg { transform: rotate(180deg); }
.drop { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 250px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: 0.5rem; display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); z-index: 60; }
.drop::before { content:""; position:absolute; top:-14px; left:0; right:0; height:14px; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop[data-open="true"] .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); font-weight: 600; }
.drop a::after { display: none; }
.drop a:hover { background: var(--iris-tint); color: var(--iris-700); }
.drop a small { display: block; font-weight: 500; color: var(--muted); font-size: 0.76rem; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 9px; align-items: center; justify-content: center; background: var(--white); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:20px; height:2.5px; background: var(--ink); position: relative; transition: 0.25s var(--ease); }
.nav-toggle span::before { position:absolute; top:-6px; } .nav-toggle span::after { position:absolute; top:6px; }
.nav[data-open="true"] .nav-toggle span { background: transparent; }
.nav[data-open="true"] .nav-toggle span::before { top:0; transform: rotate(45deg); }
.nav[data-open="true"] .nav-toggle span::after { top:0; transform: rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: var(--step--1); color: var(--muted); padding-top: 1.5rem; }
.crumb a:hover { color: var(--iris); }
.crumb svg { width: 14px; height: 14px; flex: none; }
.crumb [aria-current] { color: var(--ink-80); }

/* ---------- Hero (home) ---------- */
.hero-head { margin-bottom: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.hero-head h1 { max-width: none; }
.hero { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem); align-items: center; }
.hero-grid > .hero-visual { justify-self: end; }
.hero h1 { font-size: var(--step-5); font-weight: 900; letter-spacing: -0.04em; text-wrap: balance; }
.hero .lede { margin-top: 1.5rem; font-size: var(--step-1); color: var(--ink-80); max-width: 42ch; line-height: 1.45; text-wrap: pretty; }
.hero-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; }
.hero-trust .t { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); font-weight: 600; color: var(--ink-80); }
.hero-trust .t svg { width: 18px; height: 18px; color: var(--iris); flex: none; }

.hero-visual { position: relative; }
.chat-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-iris); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.1rem; border-bottom: 2px solid var(--ink); background: var(--iris); color: var(--white); }
.chat-top .av { width: 36px; height: 36px; border-radius: 9px; background: var(--cream); border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; padding: 2px; flex: none; }
.chat-top .av svg { width: 30px; height: auto; }
.chat-top .who b { display: block; font-family: var(--font-display); font-size: 0.95rem; line-height: 1.1; }
.chat-top .who small { font-size: 0.72rem; opacity: 0.9; display:flex; align-items:center; gap:0.35em; }
.chat-top .who small::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--lime); box-shadow: 0 0 0 2px #ffffff55; }
.chat-top .timer { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; background: var(--white); color: var(--iris); border: 2px solid var(--ink); border-radius: 7px; padding: 0.15em 0.55em; }
.chat-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; background: radial-gradient(circle at 1px 1px, #16142810 1px, transparent 0) 0 0 / 18px 18px; }
.bubble { max-width: 82%; padding: 0.6rem 0.85rem; border: 2px solid var(--ink); border-radius: 12px; font-size: 0.92rem; line-height: 1.4; }
.bubble.in { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: var(--iris); color: var(--white); border-bottom-right-radius: 3px; }
.bubble small { display:block; font-size: 0.68rem; opacity: 0.6; margin-top: 0.25rem; }
.chat-tag { align-self: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--iris-700); background: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.2em 0.8em; text-align: center; }
.hero-badge { position: absolute; top: -22px; right: -6px; z-index: 8; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; padding: 0.5em 1em; box-shadow: var(--shadow-hard); transform: rotate(4deg); }

/* ---------- Mascot ---------- */
.mascot--hero { position: absolute; bottom: -22px; left: -54px; width: 152px; height: auto; z-index: 1; filter: drop-shadow(5px 7px 0 #16142b1f); animation: bob 4s ease-in-out infinite; }
.hero-visual .iphone { position: relative; z-index: 2; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.mascot-wave { transform-box: fill-box; transform-origin: 85% 95%; animation: wave 2.8s ease-in-out infinite; }
@keyframes wave { 0%,55%,100% { transform: rotate(0); } 65% { transform: rotate(-14deg); } 75% { transform: rotate(6deg); } 85% { transform: rotate(-9deg); } }
@media (prefers-reduced-motion: reduce) { .mascot--hero, .mascot-wave { animation: none; } }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero .lede { margin-top: 1.2rem; font-size: var(--step-1); color: var(--ink-80); max-width: 60ch; line-height: 1.45; }
.page-hero .hero-cta { margin-top: 1.8rem; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lede { margin-inline: auto; }
.page-hero--center .eyebrow, .page-hero--center .hero-cta { justify-content: center; }

/* ---------- Marquee ---------- */
.marquee { border-block: 2px solid var(--ink); background: var(--iris); color: var(--white); overflow: hidden; }
.marquee__track { display: flex; gap: 2.5rem; white-space: nowrap; padding: 0.7rem 0; width: max-content; animation: slide 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.marquee__track span::after { content: "✦"; color: var(--lime); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-hard); }
.stat .num { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); line-height: 1; color: var(--iris); font-variant-numeric: tabular-nums; }
.stat .lbl { margin-top: 0.6rem; font-size: var(--step--1); color: var(--ink-80); font-weight: 500; }
.stat--accent { background: var(--lime); }
.stat--accent .num { color: var(--ink); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.8rem; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard); }
.card .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--iris-tint); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--iris-700); margin-bottom: 1.1rem; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.card p { color: var(--ink-80); font-size: var(--step-0); }
.card .step-n { font-family: var(--font-display); font-weight: 900; font-size: 1rem; color: var(--white); background: var(--iris); border: 2px solid var(--ink); width: 2.2em; height: 2.2em; border-radius: 9px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.card a.more { font-weight: 700; color: var(--iris); display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.9rem; }
.card a.more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.card a.more:hover svg { transform: translateX(4px); }

/* ---------- Gateway tiles (home hub) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile { display: flex; flex-direction: column; gap: 0.7rem; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.7rem; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard); }
.tile .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--iris-tint); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--iris-700); margin-bottom: 0.4rem; }
.tile .ico svg { width: 25px; height: 25px; }
.tile h3 { font-size: var(--step-1); }
.tile p { color: var(--ink-80); font-size: var(--step-0); flex: 1; }
.tile .more { font-weight: 700; color: var(--iris); display: inline-flex; align-items: center; gap: 0.4em; }
.tile .more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.tile:hover .more svg { transform: translateX(4px); }
.tile--lime { background: var(--lime); }
.tile--lime .ico { background: var(--white); }

/* ---------- Iris band ---------- */
.iris-band { background: var(--iris); color: var(--white); border-block: 2px solid var(--ink); position: relative; overflow: hidden; }
.iris-band::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 1px 1px, #ffffff1a 1px, transparent 0); background-size: 22px 22px; pointer-events:none; }
.iris-band .eyebrow { color: var(--lime); } .iris-band .eyebrow::before { border-color: var(--white); }
.iris-band h2 { color: var(--white); } .iris-band .section-head p { color: #ffffffcc; }
.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; position: relative; }
.feature { border: 2px solid var(--white); border-radius: var(--radius); padding: 1.6rem; background: #ffffff14; }
.feature .ico { width: 48px; height: 48px; border-radius: 11px; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); margin-bottom: 1rem; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-1); color: var(--white); margin-bottom: 0.5rem; }
.feature p { color: #ffffffcc; font-size: var(--step-0); }

/* ---------- Employees roster ---------- */
.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.emp { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.emp:hover { transform: translateY(-4px); box-shadow: var(--shadow-iris); }
.emp__top { display: flex; align-items: center; gap: 0.9rem; }
.emp__ava { width: 54px; height: 54px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; background: var(--iris-tint); color: var(--iris-700); overflow: hidden; }
.emp__ava svg { width: 28px; height: 28px; }
.emp.live .emp__ava { background: var(--lime); color: var(--ink); }
.emp.live .emp__ava svg.m-head { width: 40px; height: auto; }
.emp__role { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.emp__sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.emp__desc { font-size: 0.9rem; color: var(--ink-80); flex: 1; }
.status { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.25em 0.7em; align-self: flex-start; }
.status::before { content:""; width: 7px; height: 7px; border-radius: 50%; }
.status.is-live { background: var(--lime); color: var(--ink); } .status.is-live::before { background: var(--iris); animation: pulse 1.8s infinite; }
.status.is-soon { background: var(--iris-tint); color: var(--iris-700); } .status.is-soon::before { background: var(--iris); }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 #5a4fcf66; } 50%{ box-shadow: 0 0 0 5px #5a4fcf00; } }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.benefit { display: flex; gap: 1rem; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.benefit .b-ico { width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); }
.benefit .b-ico svg { width: 22px; height: 22px; }
.benefit h3 { font-size: var(--step-0); font-family: var(--font-display); margin-bottom: 0.3rem; }
.benefit p { font-size: var(--step--1); color: var(--ink-80); line-height: 1.45; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 1.1rem; max-width: 900px; }
.tl-item { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.tl-num { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; color: var(--white); background: var(--iris); border: 2px solid var(--ink); width: 2.4em; height: 2.4em; border-radius: 10px; display: grid; place-items: center; }
.tl-item h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.tl-item p { color: var(--ink-80); font-size: var(--step-0); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,1rem+3vw,3rem); align-items: center; }
.split-media { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--iris); box-shadow: var(--shadow-hard); aspect-ratio: 4/3; position: relative; }
.split-media .label { position:absolute; top:1rem; left:1rem; background: var(--lime); border:2px solid var(--ink); border-radius:999px; padding:0.3em 0.9em; font-weight:700; font-size:0.8rem; }
.kpi-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.kpi-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: var(--step-0); }
.kpi-list li svg { width: 24px; height: 24px; color: var(--iris); flex: none; margin-top: 1px; }

/* ---------- Chips (channels/integrations) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.chip { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 0.65em 1.2em; font-weight: 600; font-size: var(--step-0); box-shadow: 3px 3px 0 var(--ink); transition: transform 0.18s var(--ease); }
.chip:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.chip svg { width: 20px; height: 20px; color: var(--iris); }
.chip .opt { font-size: 0.7rem; font-weight: 700; color: var(--iris-700); background: var(--lime); border:1.5px solid var(--ink); border-radius: 999px; padding: 0.1em 0.5em; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items: stretch; }
.price { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.9rem; position: relative; }
.price--feat { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-iris); }
.price--feat .price__name, .price--feat .amount { color: var(--white); }
.price--feat .price__desc, .price--feat .price__feat li { color: #ffffffcc; }
.price__flag { position:absolute; top:-14px; left:1.9rem; background: var(--lime); border:2px solid var(--ink); border-radius:999px; padding:0.25em 0.9em; font-weight:700; font-size:0.75rem; }
.price__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); }
.price__desc { color: var(--muted); font-size: var(--step--1); margin-top: 0.3rem; min-height: 2.6em; }
.price__cost { margin: 1.2rem 0; display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; }
.price__cost .amount { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); line-height: 1; color: var(--iris); font-variant-numeric: tabular-nums; }
.price--feat .price__cost .amount { color: var(--lime); }
.price__cost .per { font-size: var(--step--1); color: var(--muted); }
.price--feat .price__cost .per { color: #ffffffaa; }
.price__feat { display: grid; gap: 0.7rem; margin: 0.4rem 0 1.6rem; flex: 1; }
.price__feat li { display: flex; gap: 0.6rem; font-size: var(--step--1); line-height: 1.35; }
.price__feat li svg { width: 18px; height: 18px; color: var(--iris); flex: none; margin-top: 3px; }
.price--feat .price__feat li svg { color: var(--lime); }
.price .btn { width: 100%; }
.price-note { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: var(--step--1); }

/* ---------- Comparison table ---------- */
.cmp-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp th, .cmp td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.cmp thead th { font-family: var(--font-display); font-size: var(--step-0); background: var(--ink); color: var(--paper); border-bottom: none; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child, .cmp th:first-child { font-weight: 600; }
.cmp .yes { color: var(--iris); font-weight: 700; }
.cmp .no { color: var(--muted); }
.cmp tbody tr:hover { background: var(--iris-tint); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 860px; }
.faq details { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--iris); transition: transform 0.25s var(--ease); line-height: 1; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { background: var(--iris-tint); }
.faq .ans { padding: 0 1.3rem 1.3rem; color: var(--ink-80); font-size: var(--step-0); }
.faq .ans a { color: var(--iris); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.1rem; font-size: var(--step-0); color: var(--ink-80); line-height: 1.65; }
.prose h2 { font-size: var(--step-2); margin: 2.2rem 0 1rem; }
.prose h3 { font-size: var(--step-1); margin: 1.6rem 0 0.7rem; }
.prose a { color: var(--iris); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose ul { display: grid; gap: 0.6rem; margin-bottom: 1.1rem; }
.prose li { display: flex; gap: 0.6rem; font-size: var(--step-0); color: var(--ink-80); }
.prose li::before { content:""; width: 0.6em; height: 0.6em; margin-top: 0.55em; flex: none; background: var(--lime); border: 1.5px solid var(--ink); }

/* ---------- Glossary ---------- */
.glossary { display: grid; gap: 1rem; }
.gloss { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.6rem; scroll-margin-top: 90px; }
.gloss h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.gloss p { color: var(--ink-80); font-size: var(--step-0); }
.gloss p a { color: var(--iris); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.alpha-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.alpha-nav a { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 9px; background: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.alpha-nav a:hover { background: var(--lime); }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard); }
.post__media { aspect-ratio: 16/9; background: var(--iris); border-bottom: 2px solid var(--ink); display: grid; place-items: center; color: var(--lime); }
.post__media svg { width: 40%; }
.post__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post__tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--iris-700); }
.post h3 { font-size: var(--step-1); }
.post p { color: var(--ink-80); font-size: var(--step--1); flex: 1; }
.post__meta { font-size: var(--step--1); color: var(--muted); }

/* ---------- Form ---------- */
.form-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-iris); padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field label .req { color: var(--iris); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--step-0); padding: 0.75rem 0.9rem; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ring); outline-offset: 1px; background: var(--white); }
.form-note { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }
.contact-aside { display: grid; gap: 1.1rem; align-content: start; }
.contact-line { display: flex; gap: 0.8rem; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.contact-line .ico { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--iris-tint); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--iris-700); }
.contact-line .ico svg { width: 21px; height: 21px; }
.contact-line b { display: block; font-family: var(--font-display); font-size: var(--step-0); }
.contact-line small { color: var(--muted); font-size: var(--step--1); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--lime); border-block: 2px solid var(--ink); position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background-image: linear-gradient(135deg, #16142810 25%, transparent 25%, transparent 50%, #16142810 50%, #16142810 75%, transparent 75%); background-size: 28px 28px; pointer-events: none; }
.cta-inner { text-align: center; position: relative; }
.cta-inner h2 { font-size: var(--step-4); max-width: 20ch; margin-inline: auto; }
.cta-inner p { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-80); max-width: 52ch; margin-inline: auto; }
.cta-inner .hero-cta { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #efefefcc; border-top: 2px solid var(--ink); padding-block: clamp(4rem, 3rem + 3vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand .dot { box-shadow: 3px 3px 0 var(--iris-700); }
.footer-col .footer-h { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); margin-bottom: 1rem; }
.footer-col a { display: block; padding: 0.35rem 0; color: #efefefb3; font-size: var(--step--1); transition: color 0.18s; }
.footer-col a:hover { color: var(--lime); }
.footer-about p { margin-top: 1rem; max-width: 34ch; font-size: var(--step--1); color: #efefef99; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #ffffff22; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--step--1); color: #efefef80; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .roster, .grid-3, .feature-row, .tiles, .posts { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price--feat { order: -1; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav[data-open="true"] .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 1rem 1.25rem 1.5rem; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav[data-open="true"] .nav-links > li { width: 100%; }
  .nav[data-open="true"] .nav-links > li > a, .nav[data-open="true"] .drop-toggle { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); justify-content: space-between; }
  .nav[data-open="true"] .nav-links .btn { display: inline-flex; margin-top: 1rem; justify-content: center; }
  .has-drop .drop { position: static; transform: none; opacity: 1; visibility: hidden; min-width: 0; box-shadow: none; border: none; padding: 0; display: none; background: transparent; }
  .has-drop[data-open="true"] .drop { display: grid; visibility: visible; padding: 0.2rem 0 0.6rem 0.8rem; }
  .has-drop[data-open="true"] .drop::before { display: none; }
  .nav[data-open="true"] .drop a { padding: 0.6rem 0; font-size: var(--step--1); }
  .hero-grid, .split, .grid-2, .benefits, .form-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .stat-grid, .roster, .grid-3, .feature-row, .tiles, .posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-inner .btn { width: 100%; }
  body { background-size: 40px 40px, 40px 40px; }
  .hero h1, .cta-inner h2 { font-size: clamp(1.6rem, 3.6vw + 0.95rem, 2.35rem); }
  .page-hero h1 { font-size: var(--step-3); }
  .hero h1, .cta-inner h2, .section-head h2, .page-hero h1, .split h2, .price__name { overflow-wrap: break-word; word-break: break-word; }
  .stat .num { font-size: var(--step-2); }
}
@media (max-width: 380px) {
  .hero h1, .cta-inner h2 { font-size: clamp(1.45rem, 3vw + 1rem, 1.95rem); overflow-wrap: anywhere; }
  .section-head h2, .page-hero h1 { overflow-wrap: anywhere; }
}

/* ============================================================
   v2.1 — Agents catalog, CRM, wide dropdown, polish
   ============================================================ */

/* Wide dropdown (Агенты) */
.drop--wide { min-width: 460px; grid-template-columns: 1fr 1fr; gap: 2px 0.4rem; }
.drop .drop-all { grid-column: 1 / -1; margin-top: 0.3rem; padding-top: 0.7rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--iris); display: flex; align-items: center; gap: 0.4em; }
.drop .drop-all:hover { background: transparent; color: var(--iris-700); }

/* Logo / tech strip */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1rem; }
.logo-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-80); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 0.5em 1.1em; }
.logo-pill svg { width: 18px; height: 18px; color: var(--iris); }
.logos-label { text-align: center; font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1.3rem; }

/* Inner page hero stat strip */
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 2px solid var(--ink); }
.hero-stats .hs { display: flex; flex-direction: column; }
.hero-stats .hs b { font-family: var(--font-display); font-weight: 900; font-size: var(--step-2); color: var(--iris); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats .hs span { font-size: var(--step--1); color: var(--ink-80); margin-top: 0.3rem; }

/* Agents catalog */
.agents-cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.agent-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.7rem; display: flex; flex-direction: column; gap: 1.1rem; scroll-margin-top: 90px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard); }
.agent-card__head { display: flex; align-items: center; gap: 1rem; }
.agent-card__ava { width: 60px; height: 60px; border: 2px solid var(--ink); border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--iris-tint); color: var(--iris-700); overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.agent-card__ava svg { width: 32px; height: 32px; }
.agent-card__ava svg.m-head { width: 44px; }
.agent-card--live .agent-card__ava { background: var(--lime); color: var(--ink); }
.agent-card__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.05; }
.agent-card__tag { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.agent-card__lead { color: var(--ink-80); font-size: var(--step-0); }
.agent-card__fns { display: grid; gap: 0.55rem; margin-top: auto; }
.agent-card__fns li { display: flex; gap: 0.55rem; font-size: var(--step--1); color: var(--ink-80); line-height: 1.4; }
.agent-card__fns li svg { width: 17px; height: 17px; color: var(--iris); flex: none; margin-top: 3px; }
.agent-card__foot { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.4rem; }
.tagchip { font-size: 0.72rem; font-weight: 600; color: var(--iris-700); background: var(--iris-tint); border: 1.5px solid var(--iris-tint-2); border-radius: 999px; padding: 0.25em 0.7em; }

/* CRM hub diagram */
.crm-hub { display: grid; place-items: center; padding: 1rem; }
.crm-hub svg { width: min(560px, 100%); height: auto; }

/* Process steps with connector (home) */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pstep { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.pstep .n { font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; color: var(--white); background: var(--iris); border: 2px solid var(--ink); width: 2.2em; height: 2.2em; border-radius: 8px; display: grid; place-items: center; margin-bottom: 1rem; }
.pstep h3 { font-size: var(--step-0); font-family: var(--font-display); margin-bottom: 0.4rem; }
.pstep p { font-size: var(--step--1); color: var(--ink-80); }

/* Section label divider */
.lead-row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; margin-bottom: clamp(2rem,1rem+3vw,3.2rem); }
.lead-row .section-head { margin-bottom: 0; }
@media (max-width: 700px) { .lead-row { grid-template-columns: 1fr; } .lead-row .btn { justify-self: start; } }

@media (max-width: 860px) {
  .drop--wide { min-width: 0; grid-template-columns: 1fr; }
  .agents-cat { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }

/* a11y: visually-hidden headings for sectioning */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ============================================================
   Animated phone chat (hero) — Iris × Lime, mobile-ready
   ============================================================ */
.phone{position:relative;width:min(320px,84vw);margin-inline:auto;background:linear-gradient(150deg,#241f47,#16142B);border-radius:46px;padding:13px;box-shadow:10px 12px 0 var(--iris);}
.phone::after{content:"";position:absolute;inset:5px;border-radius:42px;border:1px solid #ffffff14;pointer-events:none}
.phone__island{position:absolute;top:24px;left:50%;transform:translateX(-50%);width:92px;height:24px;background:#000;border-radius:16px;z-index:6}
.phone__scr{position:relative;background:var(--paper);border-radius:34px;overflow:hidden;height:548px;display:flex;flex-direction:column}
.phone__head{background:var(--iris);color:#fff;padding:34px 16px 12px;display:flex;align-items:center;gap:10px;border-bottom:2px solid var(--ink);flex:none}
.phone__head .av{width:38px;height:38px;border-radius:11px;background:var(--cream);border:2px solid var(--ink);display:grid;place-items:center;overflow:hidden;padding:2px;flex:none}
.phone__head .av svg{width:32px;height:auto}
.phone__head .who{flex:1;min-width:0}
.phone__head .who b{font-family:var(--font-display);font-size:.95rem;line-height:1.1;display:block}
.phone__head .who small{font-size:.72rem;display:flex;align-items:center;gap:.35em;opacity:.92}
.phone__head .who small::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 2px #ffffff55;animation:pulse 1.6s infinite;flex:none}
.phone__timer{margin-left:auto;font-family:var(--font-display);font-weight:700;font-size:.82rem;background:#fff;color:var(--iris);border:2px solid var(--ink);border-radius:8px;padding:.12em .5em;font-variant-numeric:tabular-nums;flex:none}
.phone__thread{flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;padding:14px;overflow:hidden;background:radial-gradient(circle at 1px 1px,#16142810 1px,transparent 0) 0 0/16px 16px}
.phone__thread .msg{max-width:84%;padding:.55rem .8rem;border:2px solid var(--ink);border-radius:14px;font-size:.86rem;line-height:1.35;transition:opacity .35s var(--ease),transform .35s var(--ease)}
.phone__thread .msg.in{align-self:flex-start;background:#fff;border-bottom-left-radius:4px}
.phone__thread .msg.out{align-self:flex-end;background:var(--iris);color:#fff;border-bottom-right-radius:4px}
.phone__thread .msg small{display:block;font-size:.62rem;opacity:.6;margin-top:.2rem}
.phone__thread .chat-pill{align-self:center;font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--iris-700);background:var(--lime);border:1.5px solid var(--ink);border-radius:999px;padding:.22em .8em;text-align:center;transition:opacity .35s var(--ease),transform .35s var(--ease)}
/* animation states (added by JS clones; static markup stays visible for no-JS/SEO) */
.phone__thread .anim{opacity:0;transform:translateY(12px) scale(.97)}
.phone__thread .anim.show{opacity:1;transform:none}
.phone__thread .typing{align-self:flex-start;background:#fff;border:2px solid var(--ink);border-radius:14px;border-bottom-left-radius:4px;padding:.62rem .8rem;display:inline-flex;gap:5px}
.phone__thread .typing.out{align-self:flex-end;background:var(--iris);border-bottom-right-radius:4px}
.phone__thread .typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:typdot 1.2s infinite}
.phone__thread .typing.out span{background:#fff}
.phone__thread .typing span:nth-child(2){animation-delay:.18s}
.phone__thread .typing span:nth-child(3){animation-delay:.36s}
@keyframes typdot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion: reduce){.phone__head .who small::before{animation:none}}
@media (max-width:560px){.phone__scr{height:500px}.phone{box-shadow:7px 8px 0 var(--iris)}}

/* ============================================================
   Realistic 3D iPhone (titanium, angled) with live screen
   ============================================================ */
.iphone{
  position:relative;width:min(326px,86vw);margin-inline:auto;padding:11px;border-radius:56px;
  background:
    linear-gradient(135deg,#f1f2f5 0%,#c4c7ce 13%,#9398a1 29%,#d9dce1 47%,#868b95 64%,#bcbfc7 81%,#eef0f3 100%);
  box-shadow:
    0 2px 2px #ffffffcc inset, 0 -2px 3px #0000002e inset,
    0 0 0 1px #6f737c,
    0 46px 64px -28px rgba(22,20,43,.55), 0 22px 34px -22px rgba(22,20,43,.45);
  transform:perspective(1750px) rotateY(-21deg) rotateX(5deg) rotateZ(-2deg);
  transform-origin:62% 48%;
  animation:floaty 7s ease-in-out infinite;
  will-change:transform;
}
@keyframes floaty{
  0%,100%{transform:perspective(1750px) rotateY(-21deg) rotateX(5deg) rotateZ(-2deg) translateY(0)}
  50%{transform:perspective(1750px) rotateY(-18.5deg) rotateX(3.5deg) rotateZ(-1.6deg) translateY(-11px)}
}
@media (prefers-reduced-motion:reduce){.iphone{animation:none}}

.iphone .phone__scr{
  position:relative;background:#050507;border-radius:46px;overflow:hidden;height:560px;
  display:flex;flex-direction:column;
  box-shadow:0 0 0 3px #0a0a0d, 0 0 0 5px #2b2d33, 0 0 22px #00000066 inset;
}
.iphone .phone__head{padding-top:42px}

/* dynamic island */
.iphone__island{position:absolute;top:15px;left:50%;transform:translateX(-50%);width:94px;height:27px;background:#000;border-radius:16px;z-index:7;box-shadow:0 0 0 1px #15151a, 0 1px 2px #00000080}
.iphone__island::after{content:"";position:absolute;right:11px;top:50%;transform:translateY(-50%);width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#3a3f57,#0a0a12);box-shadow:0 0 0 1px #1d1f2b}

/* titanium side buttons */
.iphone__btn{position:absolute;border-radius:3px;background:linear-gradient(180deg,#d2d5db,#888d97 55%,#6f737c);box-shadow:0 1px 2px #00000055, 0 0 0 1px #5f636c;z-index:1}
.iphone__btn--act{left:-3px;top:19%;width:5px;height:24px}
.iphone__btn--vup{left:-3px;top:30%;width:5px;height:44px}
.iphone__btn--vdn{left:-3px;top:43%;width:5px;height:44px}
.iphone__btn--pwr{right:-3px;top:27%;width:5px;height:66px}

/* glass reflection */
.iphone__glare{position:absolute;inset:0;border-radius:46px;pointer-events:none;z-index:6;
  background:linear-gradient(122deg,rgba(255,255,255,.30) 0%,rgba(255,255,255,.08) 18%,rgba(255,255,255,0) 38%,rgba(255,255,255,0) 78%,rgba(255,255,255,.07) 100%);
  mix-blend-mode:screen}

/* ground shadow */
.iphone__ground{position:absolute;left:48%;bottom:-40px;width:78%;height:46px;transform:translateX(-50%) rotateZ(-2deg);
  background:radial-gradient(ellipse 60% 50% at 50% 50%,rgba(22,20,43,.42),rgba(22,20,43,0) 72%);filter:blur(12px);z-index:-1}

@media (max-width:560px){
  .iphone{transform:perspective(1500px) rotateY(-14deg) rotateX(4deg) rotateZ(-1.5deg);width:min(300px,90vw)}
  .iphone .phone__scr{height:506px}
  @keyframes floaty{0%,100%{transform:perspective(1500px) rotateY(-14deg) rotateX(4deg) rotateZ(-1.5deg) translateY(0)}50%{transform:perspective(1500px) rotateY(-12deg) rotateX(3deg) rotateZ(-1deg) translateY(-7px)}}
}

/* light app surface inside the realistic screen (not black glass) */
.iphone .phone__thread{background:var(--paper);background-image:radial-gradient(circle at 1px 1px,#16142810 1px,transparent 0);background-size:16px 16px}
.iphone .phone__scr{background:#0a0a0d}

/* ============================================================
   Telegram-style chat inside the iPhone (interactive demo)
   ============================================================ */
.tg{display:flex;flex-direction:column;height:100%;background:#e9e8f6;font-family:var(--font-body);color:#16142B}
/* iOS status bar */
.tg-status{display:flex;align-items:center;justify-content:space-between;padding:14px 26px 3px;font-size:12px;font-weight:700;color:#16142B}
.tg-status__r{display:flex;align-items:center;gap:5px}
.tg-status__r svg{height:11px;width:auto;display:block}
/* chat header */
.tg-head{display:flex;align-items:center;gap:9px;padding:6px 12px 9px;background:#fbfbfdee;backdrop-filter:blur(6px);border-bottom:1px solid #16142817;position:relative;z-index:2}
.tg-back{color:#5A4FCF;font-size:24px;line-height:1;font-weight:400;margin-right:-2px}
.tg-ava{width:38px;height:38px;border-radius:50%;overflow:hidden;flex:none;background:var(--iris);display:grid;place-items:center;box-shadow:0 1px 3px #16142833}
.tg-ava svg{width:34px;height:auto}
.tg-title{flex:1;min-width:0;line-height:1.15}
.tg-title b{font-size:15px;font-weight:600;display:block;letter-spacing:-.01em}
.tg-status-line{font-size:12.5px;color:#8e8ca6}
.tg-status-line.typing{color:#5A4FCF}
.tg-actions{display:flex;gap:14px;color:#5A4FCF}
.tg-actions svg{width:20px;height:20px}
/* wallpaper */
.tg-wall{flex:1;overflow:hidden;padding:12px 10px 6px;display:flex;flex-direction:column;gap:3px;justify-content:flex-end;
  background:linear-gradient(160deg,#edeafb,#e3e6f4);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Cg fill='%23ffffff' fill-opacity='0.55'%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Ccircle cx='34' cy='26' r='2'/%3E%3Ccircle cx='18' cy='42' r='2'/%3E%3Cpath d='M43 8h2v2h-2zM25 5h2v2h-2z'/%3E%3C/g%3E%3C/svg%3E")}
/* bubbles */
.tg-msg{max-width:82%;padding:7px 10px 6px;font-size:14px;line-height:1.4;border-radius:16px;position:relative;box-shadow:0 1px 1px #16142814;word-wrap:break-word;margin-top:5px}
.tg-msg .tm{display:inline-block;font-size:10px;margin-left:7px;opacity:.55;vertical-align:-1px;white-space:nowrap}
.tg-msg.in{align-self:flex-start;background:#fff;color:#16142B;border-bottom-left-radius:5px}
.tg-msg.out{align-self:flex-end;background:linear-gradient(180deg,#6a5fe0,#5A4FCF);color:#fff;border-bottom-right-radius:5px}
.tg-msg.in::after{content:"";position:absolute;left:-5px;bottom:0;width:12px;height:14px;background:#fff;border-bottom-right-radius:14px;clip-path:path('M12 14C6 14 0 12 0 0 0 9 4 14 12 14Z');}
.tg-msg.out::after{content:"";position:absolute;right:-5px;bottom:0;width:12px;height:14px;background:#5A4FCF;border-bottom-left-radius:14px;clip-path:path('M0 14C6 14 12 12 12 0 12 9 8 14 0 14Z');}
.tg-msg.out .tm{opacity:.85}
.tg-tick{width:15px;height:10px;vertical-align:-1px;margin-left:2px}
/* service pill */
.tg-service{align-self:center;background:#16142b40;color:#fff;font-size:11px;font-weight:600;padding:3px 11px;border-radius:12px;margin:7px auto;backdrop-filter:blur(2px)}
/* typing bubble */
.tg-typing{align-self:flex-start;background:#fff;border-bottom-left-radius:5px;border-radius:15px;padding:9px 12px;display:inline-flex;gap:4px;margin-top:5px;box-shadow:0 1px 1px #16142814}
.tg-typing span{width:7px;height:7px;border-radius:50%;background:#b9b7cf;animation:typdot 1.2s infinite}
.tg-typing span:nth-child(2){animation-delay:.18s}.tg-typing span:nth-child(3){animation-delay:.36s}
/* input bar */
.tg-input{display:flex;align-items:center;gap:9px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fbfbfd;border-top:1px solid #16142814}
.tg-input .ic{color:#8e8ca6;flex:none;display:grid;place-items:center}
.tg-input .ic svg{width:23px;height:23px;display:block}
.tg-field{flex:1;min-width:0;position:relative;background:#fff;border:1px solid #16142818;border-radius:18px;padding:8px 34px 8px 13px;min-height:36px;display:flex;align-items:center;font-size:13.5px}
.tg-field .tg-ph{color:#9b99b3}
.tg-field .tg-text{color:#16142B;white-space:pre-wrap}
.tg-field .tg-emoji{position:absolute;right:9px;top:50%;transform:translateY(-50%);color:#8e8ca6}
.tg-field .tg-emoji svg{width:20px;height:20px;display:block}
.tg-caret{display:none;width:1.5px;height:16px;background:#5A4FCF;margin-left:1px;animation:tgcaret 1s steps(1) infinite}
.tg-typing-on .tg-caret{display:inline-block}
@keyframes tgcaret{0%,50%{opacity:1}51%,100%{opacity:0}}
.tg-send{flex:none;width:36px;height:36px;border-radius:50%;background:#5A4FCF;display:grid;place-items:center;color:#fff;box-shadow:0 2px 6px #5a4fcf66;transform:scale(.6);opacity:0;transition:transform .2s var(--ease),opacity .2s var(--ease)}
.tg-send.on{transform:scale(1);opacity:1}
.tg-send svg{width:19px;height:19px}
.tg-mic{flex:none;width:36px;height:36px;display:grid;place-items:center;color:#8e8ca6}
.tg-mic svg{width:23px;height:23px}
.tg-mic.hide{display:none}
@media (max-width:560px){.tg-wall{padding:10px 8px 4px}.tg-msg{font-size:13px}}

/* Telegram image message */
.tg-msg.tg-img{padding:3px;max-width:74%}
.tg-msg.tg-img img{display:block;width:100%;height:auto;border-radius:13px}
.tg-msg.tg-img .tm{position:absolute;right:9px;bottom:8px;margin:0;background:#16142bb3;color:#fff;padding:2px 7px;border-radius:10px;font-size:10px;opacity:1}
.tg-msg.tg-img .tm .tg-tick{color:#fff}

/* input bar alignment polish + iOS home indicator (grounds the screen plane) */
.tg{position:relative}
.tg-input{align-items:center;gap:7px;padding:7px 10px 17px}
.tg-input .ic,.tg-input .tg-mic,.tg-input .tg-send{height:36px;display:grid;place-items:center}
.tg-input .ic{width:28px}
.tg-input .tg-mic{width:34px}
.tg-input .tg-send{width:34px;height:34px;box-shadow:0 1px 4px #5a4fcf55}
.tg-field{padding:7px 34px 7px 13px;min-height:34px;line-height:1.25;align-items:center}
.tg-field .tg-text,.tg-field .tg-ph{line-height:1.25}
.tg::after{content:"";position:absolute;left:50%;bottom:7px;transform:translateX(-50%);width:34%;max-width:118px;height:5px;border-radius:3px;background:#1614284d;z-index:9;pointer-events:none}


/* ---- responsive + interaction polish (ui-ux-pro-max / impeccable / emil) ---- */
:root{ --ease-out: cubic-bezier(0.23,1,0.32,1); }
.btn--ghost:active, .chip:active, .tile:active, .card:active { transform: scale(0.985); }
.btn--ghost{ transition: transform 0.16s var(--ease-out), background 0.18s var(--ease-out), color 0.18s var(--ease-out); }
.hero .lede, .page-hero .lede, .section-head p, .card p, .prose p, .tile p { text-wrap: pretty; }
.section-head h2, .page-hero h1, .hero h1, .cta-inner h2 { text-wrap: balance; }
/* tablet comfort: stacked hero centered, badge inside viewport */
@media (max-width: 1024px){
  .hero { padding-top: clamp(2rem,1rem+3vw,3.5rem); }
  .hero-copy { text-align: left; }
  .hero-badge { right: 6px; top: -14px; }
  .wrap { width: min(100% - 2rem, var(--container)); }
}
/* mobile: keep badge & mascot fully on-screen, comfy chat */
@media (max-width: 560px){
  .hero-badge { right: 8px; top: -10px; font-size: 0.72rem; padding: 0.42em 0.85em; }
  .mascot--hero { width: 104px; left: -18px; bottom: -14px; }
  .iphone { width: min(300px, 92vw); }
  .tg-msg { font-size: 13.5px; }
}
@media (max-width: 380px){
  .iphone { width: min(280px, 94vw); }
  .mascot--hero { width: 88px; }
}

.nobr{white-space:nowrap}

/* ---- desktop hero: clean two columns, big headline, phone alongside (no overlap) ---- */
@media (min-width: 1025px){
  .hero { padding-block: clamp(3.5rem, 2rem + 4vw, 6rem); }
  .hero .hero-grid { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: clamp(2rem, 1rem + 2.5vw, 4rem); align-items: center; }
  .hero .hero-copy { position: static; z-index: auto; max-width: none; }
  .hero h1 { text-wrap: normal; margin-bottom: 0.2em; }
  .hero .hero-copy .lede { max-width: 44ch; }
  .hero .hero-visual { position: relative; justify-self: center; margin: 0; transform: none; }
}

/* ---- hero constellation (Refero-style abstract network of agents) ---- */
.hero-orbit { width: 100%; max-width: 460px; height: auto; margin-inline: auto; display: block; overflow: visible; }
.orbit-core { transform-box: fill-box; transform-origin: center; animation: orbitCore 3.4s ease-in-out infinite; }
@keyframes orbitCore { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.05); } }
.orbit-n { transform-box: fill-box; transform-origin: center; animation: orbitFloat 6.5s ease-in-out infinite; }
@keyframes orbitFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-7px); } }
.orbit-spark { animation: orbitTwinkle 2.6s ease-in-out infinite; }
@keyframes orbitTwinkle { 0%,100%{ opacity: .25; } 50%{ opacity: .9; } }
.orbit-link { stroke: #16142B; stroke-opacity: .16; }
@media (prefers-reduced-motion: reduce){ .orbit-core, .orbit-n, .orbit-spark { animation: none; } }
@media (max-width: 1024px){ .hero-orbit { max-width: 380px; } }
@media (max-width: 560px){ .hero-orbit { max-width: 300px; } }
