/* 2026 launch polish — layered, luminous, tactile */
::selection { color: #fff; background: #4c61f2; }
body { position: relative; }
.site-ambient {
  --site-x: 68vw;
  --site-y: 20vh;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: radial-gradient(220px circle at var(--site-x) var(--site-y),rgba(103,126,255,.08),transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero h1 .accent { background-size: 180% 100%; animation: accentFlow 7s ease-in-out infinite alternate; }
.hero .eyebrow { box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.12); }
.program-tab, .role-tab, .lab-mode, .bg-mode, .faq-question { will-change: transform; }
.program-tab:active, .role-tab:active, .lab-mode:active, .bg-mode:active { transform: scale(.98); }
.program-panel::after, .comparison-card::after, .portal-shell::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -150px;
  top: -150px;
  border-radius: 50%;
  background: rgba(85,100,238,.055);
  pointer-events: none;
  transition: transform .55s var(--ease);
}
.program-panel:hover::after, .comparison-card:hover::after, .portal-shell:hover::after { transform: scale(1.45); }
.lead-form-error { min-height: 18px; margin: 0 0 10px; color: #d95068; font-size: 11px; font-weight: 700; }
.lead-reference { display: inline-flex; margin-top: 15px; padding: 8px 11px; border-radius: 9px; color: #1c6a4c; background: #e7f9f1; font-size: 11px; letter-spacing: .03em; }
.delight-burst {
  position: fixed;
  z-index: 1000;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86c7ff;
  pointer-events: none;
  animation: delightBurst .65s ease-out forwards;
}
@keyframes accentFlow { to { background-position: 100% 0; } }
@keyframes delightBurst { from { opacity: .9; transform: translate(0,0) scale(1); } to { opacity: 0; transform: translate(var(--burst-x),var(--burst-y)) scale(.2); } }

.site-header .nav-wrap { transition: padding .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
.site-header.scrolled .nav-wrap {
  height: 58px;
  margin-top: 6px;
  padding: 0 8px 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(4,13,33,.78);
  box-shadow: 0 16px 44px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(145%);
}
.site-header.scrolled .brand-mark { width: 38px; height: 38px; }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 55%;
  height: 200%;
  left: -80%;
  top: -50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: rotate(16deg);
  transition: left .55s var(--ease);
}
.btn:hover::before { left: 130%; }
.hero::after { animation: heroAura 9s ease-in-out infinite alternate; }
.hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 390px;
  left: -180px;
  top: 35%;
  border-radius: 50%;
  background: rgba(42,126,255,.13);
  filter: blur(75px);
}
.hero h1 { text-wrap: balance; text-shadow: 0 12px 60px rgba(0,0,0,.22); }
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(100deg, #8fcbff 8%, #b0b8ff 52%, #8ef1ce 110%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-visual { filter: drop-shadow(0 40px 75px rgba(0,0,0,.22)); }
.dashboard { transition: box-shadow .35s ease, border-color .35s ease; }
.dashboard:hover { border-color: rgba(153,201,255,.45); box-shadow: 28px 32px 0 rgba(18,66,144,.1), 0 55px 130px rgba(0,0,0,.48); }
.signal-inner, .program-panel, .portal-shell, .price-card, .event-card, .comparison-card {
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.price-card:hover, .event-card:hover {
  transform: translateY(-8px) rotate(-.25deg);
  border-color: rgba(77,124,232,.22);
  box-shadow: 16px 20px 0 rgba(13,42,92,.045), 0 30px 70px rgba(7,24,58,.11);
}
.section-title { text-wrap: balance; }
@keyframes heroAura { from { transform: translate3d(0,0,0) scale(.95); } to { transform: translate3d(-70px,45px,0) scale(1.08); } }

/* Bulgarian language laboratory */
.bulgarian-lab-section {
  position: relative;
  overflow: hidden;
  padding: 138px 0 145px;
  color: #101b33;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,187,92,.18), transparent 25%),
    radial-gradient(circle at 86% 75%, rgba(104,92,238,.12), transparent 27%),
    #faf9f5;
  isolation: isolate;
}
.bulgarian-lab-section::before {
  content: "А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ь Ю Я";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  top: 38px;
  overflow: hidden;
  color: rgba(20,42,79,.035);
  font: 700 clamp(48px,7vw,106px)/1 Georgia, serif;
  letter-spacing: .09em;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.bulgarian-lab-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: 13%;
  bottom: -230px;
  border: 1px dashed rgba(89,72,214,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(96,75,219,.025), 0 0 0 120px rgba(96,75,219,.018);
}
.bg-lab-grid { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(340px,.72fr); gap: 76px; align-items: center; }
.bg-lab-intro { order: 2; }
.bg-lab-intro .section-kicker { color: #7057db; }
.bg-lab-intro .section-title { max-width: 520px; margin-bottom: 22px; }
.bg-lab-intro .section-title span {
  color: transparent;
  background: linear-gradient(95deg, #6b55dd, #d46b8f 65%, #e79238);
  -webkit-background-clip: text;
  background-clip: text;
}
.bg-lab-intro .section-copy { font-size: 17px; }
.bg-mode-switch { display: grid; gap: 8px; margin-top: 34px; }
.bg-mode {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 15px 0 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #647086;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
}
.bg-mode:hover { color: #17233b; transform: translateX(4px); }
.bg-mode.active { color: #17233b; border-color: rgba(96,75,219,.15); background: rgba(255,255,255,.76); box-shadow: 0 12px 36px rgba(30,43,77,.07); }
.bg-mode b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #735ce3;
  background: #eeebff;
  font: 800 10px/1 ui-monospace, "Cascadia Code", monospace;
}
.bg-mode span { display: grid; gap: 3px; font-size: 13px; font-weight: 800; }
.bg-mode span small { color: #919aac; font-size: 10px; font-weight: 550; }
.bg-mode i { color: #a4adbb; font-size: 18px; font-style: normal; transition: transform .25s; }
.bg-mode.active i { color: #735ce3; transform: translateX(3px); }

.bg-stage-wrap { order: 1; position: relative; perspective: 1400px; }
.bg-stage-wrap::before {
  content: "";
  position: absolute;
  inset: 20px 18px -20px -18px;
  border: 1px solid rgba(98,79,216,.13);
  border-radius: 32px;
  pointer-events: none;
}
.bg-stage {
  --bg-rx: 0deg;
  --bg-ry: 0deg;
  min-height: 590px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31,51,88,.1);
  border-radius: 32px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 42px 100px rgba(42,48,85,.17), inset 0 1px rgba(255,255,255,.9);
  transform: rotateX(var(--bg-rx)) rotateY(var(--bg-ry));
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  backdrop-filter: blur(18px);
}
.bg-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image: radial-gradient(rgba(37,61,105,.12) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.bg-hud {
  height: 64px;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(31,51,88,.09);
  color: #738096;
  font: 800 9px/1 ui-monospace, "Cascadia Code", monospace;
  letter-spacing: .14em;
}
.bg-hud b { color: #6047cf; }
.bg-hud i { width: 5px; height: 5px; border-radius: 50%; background: #35c38f; box-shadow: 0 0 0 5px rgba(53,195,143,.1); }
.bg-hud span:last-child { margin-left: auto; }
.bg-scenes { min-height: 445px; position: relative; }
.bg-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px 42px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.985);
  transition: opacity .35s, visibility .35s, transform .45s var(--ease);
}
.bg-scene.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.bg-readout {
  min-height: 80px;
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 15px 22px;
  border-top: 1px solid rgba(31,51,88,.09);
  background: rgba(248,247,243,.88);
  backdrop-filter: blur(12px);
}
.bg-readout span { color: #8875dd; font: 850 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.bg-readout strong { font-size: 12px; line-height: 1.55; }

/* Word anatomy */
.word-lab { width: 100%; max-width: 580px; text-align: center; }
.word-lab-label { color: #8c96a7; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.word-build { display: flex; align-items: stretch; justify-content: center; gap: 9px; margin: 32px 0 25px; }
.morpheme {
  min-width: 92px;
  position: relative;
  padding: 20px 17px 18px;
  border: 1px solid #ded8ff;
  border-radius: 15px;
  color: #5c45c3;
  background: #f0edff;
  box-shadow: 0 10px 25px rgba(80,64,182,.09);
  font: 750 27px/1 Georgia, serif;
  animation: morphemeJoin 4.8s var(--ease) infinite;
}
.morpheme:nth-child(2) { min-width: 145px; color: #be5e72; border-color: #f0d1d8; background: #fff0f2; animation-delay: -.18s; }
.morpheme:nth-child(3) { color: #b77122; border-color: #f3dfc1; background: #fff5e7; animation-delay: -.36s; }
.morpheme small { display: block; margin-top: 9px; color: #9299a7; font: 750 8px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.word-result { display: inline-block; position: relative; color: #13213b; font: 700 clamp(37px,5vw,58px)/1.1 Georgia, serif; letter-spacing: -.03em; }
.word-result::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 5px; background: linear-gradient(90deg,#7057dd,#d46d8e,#e59a42); transform-origin: left; animation: wordUnderline 4.8s var(--ease) infinite; }
.word-definition { max-width: 380px; margin: 25px auto 0; color: #7a8496; font-size: 12px; line-height: 1.6; }
@keyframes morphemeJoin { 0%,15%,88%,100% { transform: translateY(0); } 40%,65% { transform: translateY(-8px); } }
@keyframes wordUnderline { 0%,20% { transform: scaleX(0); } 45%,85% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* Syntax choreography */
.syntax-lab { width: 100%; max-width: 590px; }
.sentence-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sentence-token {
  position: relative;
  padding: 13px 14px;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  color: #22304a;
  background: white;
  box-shadow: 0 8px 20px rgba(25,43,76,.06);
  font: 700 15px/1.2 Georgia, serif;
  animation: tokenBreathe 4.2s ease-in-out infinite;
}
.sentence-token:nth-child(2) { color: #5c47c8; border-color: #ddd7ff; background: #f2efff; animation-delay: -.5s; }
.sentence-token:nth-child(3) { color: #be5d70; border-color: #f1d6dc; background: #fff1f3; animation-delay: -1s; }
.sentence-token:nth-child(5) { color: #b87124; border-color: #f2dfc7; background: #fff6e9; animation-delay: -1.5s; }
.syntax-map { height: 155px; position: relative; margin: 26px 5% 0; }
.syntax-map::before { content: ""; position: absolute; left: 12%; right: 12%; top: 25px; height: 1px; background: linear-gradient(90deg,transparent,#ccd5e2 15%,#ccd5e2 85%,transparent); }
.syntax-role { position: absolute; top: 52px; width: 132px; display: grid; justify-items: center; gap: 7px; color: #7f899b; font-size: 9px; text-align: center; }
.syntax-role::before { content: ""; width: 10px; height: 10px; border: 3px solid white; border-radius: 50%; background: #7159df; box-shadow: 0 0 0 1px #c9c1f5; }
.syntax-role strong { color: #25334b; font-size: 11px; }
.syntax-role.subject { left: 10%; }
.syntax-role.predicate { left: calc(50% - 66px); }
.syntax-role.object { right: 10%; }
.syntax-role.predicate::before { background: #d56d82; box-shadow: 0 0 0 1px #efc5cf; }
.syntax-role.object::before { background: #e4973f; box-shadow: 0 0 0 1px #f1d2ae; }
.syntax-pulse { position: absolute; left: 12%; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: #6f57dc; box-shadow: 0 0 0 5px rgba(111,87,220,.1); animation: syntaxTravel 4.5s ease-in-out infinite; }
@keyframes tokenBreathe { 50% { transform: translateY(-5px); box-shadow: 0 13px 28px rgba(25,43,76,.1); } }
@keyframes syntaxTravel { 0%,100% { left: 12%; background:#6f57dc; } 50% { left: 50%; background:#d56d82; } 80% { left: 86%; background:#e4973f; } }

/* Literature constellation */
.literature-lab { width: 100%; max-width: 590px; }
.literature-map { height: 320px; position: relative; }
.literature-map::before { content: ""; position: absolute; left: 9%; right: 8%; top: 50%; height: 2px; background: linear-gradient(90deg,#c9c1f5,#e9c1c9,#efd4aa); }
.literature-map::after { content: "1876     1894     1920     1940"; position: absolute; left: 9%; right: 7%; top: calc(50% + 22px); display: flex; justify-content: space-between; color: #a0a7b3; font: 750 8px/1 ui-monospace,monospace; letter-spacing: .1em; white-space: pre; }
.author-star { position: absolute; width: 112px; display: grid; justify-items: center; gap: 8px; transform: translate(-50%,-50%); }
.author-star:nth-child(1) { left: 14%; top: 35%; }
.author-star:nth-child(2) { left: 39%; top: 65%; }
.author-star:nth-child(3) { left: 66%; top: 32%; }
.author-star:nth-child(4) { left: 88%; top: 67%; }
.author-dot { width: 15px; height: 15px; border: 4px solid white; border-radius: 50%; background: #7058df; box-shadow: 0 0 0 1px #beb4f4, 0 0 25px rgba(112,88,223,.25); animation: authorPulse 3s ease-in-out infinite; }
.author-star:nth-child(2) .author-dot { background:#c7667b; box-shadow:0 0 0 1px #ebbdc7,0 0 25px rgba(199,102,123,.22); animation-delay:-.7s; }
.author-star:nth-child(3) .author-dot { background:#da8731; box-shadow:0 0 0 1px #edca9f,0 0 25px rgba(218,135,49,.22); animation-delay:-1.4s; }
.author-star:nth-child(4) .author-dot { background:#299b81; box-shadow:0 0 0 1px #a5d8cc,0 0 25px rgba(41,155,129,.22); animation-delay:-2.1s; }
.author-star strong { font: 700 15px/1 Georgia,serif; }
.author-star span { color:#8e96a5; font-size:8px; text-align:center; }
.literature-word { position: absolute; color: rgba(39,53,82,.09); font: italic 600 21px/1 Georgia,serif; }
.literature-word.one { left: 8%; top: 4%; transform: rotate(-7deg); }
.literature-word.two { right: 4%; top: 5%; transform: rotate(4deg); }
.literature-word.three { left: 38%; bottom: 1%; transform: rotate(-3deg); }
@keyframes authorPulse { 50% { transform: scale(1.35); } }

@media (max-width: 980px) {
  .bg-lab-grid { grid-template-columns: 1fr; gap: 52px; }
  .bg-lab-intro { order: 1; }
  .bg-stage-wrap { order: 2; }
  .bg-mode-switch { grid-template-columns: repeat(3,1fr); }
  .bg-mode { min-height: 90px; grid-template-columns: 34px 1fr; }
  .bg-mode i { display: none; }
}
@media (max-width: 700px) {
  .site-header.scrolled .nav-wrap { width: calc(100% - 22px); }
  .bulgarian-lab-section { padding: 92px 0 100px; }
  .bg-mode-switch { grid-template-columns: 1fr; }
  .bg-mode { min-height: 58px; grid-template-columns: 38px 1fr auto; }
  .bg-mode i { display: block; }
  .bg-stage-wrap::before { inset: 10px 8px -10px -8px; border-radius: 24px; }
  .bg-stage { min-height: 570px; border-radius: 23px; }
  .bg-scenes { min-height: 425px; }
  .bg-scene { padding: 28px 17px; }
  .word-build { gap: 5px; }
  .morpheme { min-width: 70px; padding: 17px 10px; font-size: 21px; }
  .morpheme:nth-child(2) { min-width: 112px; }
  .sentence-token { padding: 11px 10px; font-size: 13px; }
  .syntax-role { width: 90px; }
  .syntax-role.predicate { left: calc(50% - 45px); }
  .literature-map::after { font-size: 6px; }
  .author-star { width: 80px; }
  .author-star strong { font-size: 12px; }
  .bg-readout { grid-template-columns: 1fr; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero h1 .accent, .morpheme, .word-result::after, .sentence-token, .syntax-pulse, .author-dot { animation: none !important; }
  .site-ambient { display: none; }
}
