/* ============================================================
   Yuzvak AI School — Home page + Hero scene
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 28px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 2px var(--glow-cyan); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.4 } }

.hero h1 { margin-bottom: 26px; }
.hero h1 .grad-text { display: inline; }
.hero__sub { max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__note { margin-top: 34px; color: var(--text-faint); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.hero__note svg { width: 17px; height: 17px; color: var(--cyan); flex-shrink: 0; }

/* ---------- HERO SCENE (CSS/SVG recreation) ---------- */
.hero-scene { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.hero-scene__glow {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.hero-scene__glow.g1 { width: 46%; height: 46%; left: 6%; top: 22%; background: radial-gradient(circle, var(--glow-cyan), transparent 70%); opacity: .8; animation: drift 11s ease-in-out infinite; }
.hero-scene__glow.g2 { width: 42%; height: 42%; right: 4%; top: 8%; background: radial-gradient(circle, var(--glow-violet), transparent 70%); opacity: .75; animation: drift 13s ease-in-out infinite reverse; }
.hero-scene__glow.g3 { width: 40%; height: 40%; left: 20%; bottom: 2%; background: radial-gradient(circle, rgba(79,123,255,0.55), transparent 70%); opacity: .6; animation: drift 15s ease-in-out infinite; }
@keyframes drift { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(4%,-5%) scale(1.08) } }

.scene-stage {
  position: absolute; inset: 0;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform .4s ease-out;
}

/* a panel: outer positions + base rotate, inner floats */
.gp { position: absolute; }
.gp__inner {
  width: 100%; height: 100%;
  background: linear-gradient(155deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px -26px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.22);
  padding: 16px;
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
  overflow: hidden;
}
.gp__inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(56,211,230,0.10), transparent 45%);
  pointer-events: none;
}
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-13px) } }

/* panel geometry (% of square stage) */
.gp--chip   { left: 8%;  top: 6%;   width: 25%; height: 30%; transform: rotate(-2deg); z-index: 3; }
.gp--doc    { left: 38%; top: 0%;   width: 30%; height: 38%; transform: rotate(1.5deg); z-index: 4; }
.gp--neural { left: 64%; top: 18%;  width: 30%; height: 34%; transform: rotate(-1.5deg); z-index: 3; }
.gp--chart  { left: 26%; top: 30%;  width: 40%; height: 33%; transform: rotate(0.5deg); z-index: 5; }
.gp--stat1  { left: 2%;  top: 40%;  width: 30%; height: 24%; transform: rotate(2deg);  z-index: 6; }
.gp--brain  { left: 70%; top: 56%;  width: 22%; height: 25%; transform: rotate(2deg);  z-index: 4; }
.gp--stat2  { left: 8%;  top: 66%;  width: 36%; height: 23%; transform: rotate(-1.5deg); z-index: 6; }
.gp--stat3  { left: 46%; top: 68%;  width: 28%; height: 23%; transform: rotate(1deg);  z-index: 5; }

.gp--doc .gp__inner,
.gp--neural .gp__inner { animation-duration: 8.5s; animation-delay: -1.5s; }
.gp--chart .gp__inner { animation-duration: 9s; animation-delay: -3s; }
.gp--stat1 .gp__inner { animation-duration: 7.5s; animation-delay: -2s; }
.gp--brain .gp__inner { animation-duration: 8s; animation-delay: -4s; }
.gp--stat2 .gp__inner { animation-duration: 9.5s; animation-delay: -1s; }
.gp--stat3 .gp__inner { animation-duration: 8.2s; animation-delay: -2.6s; }

/* panel content */
.gp .ic { stroke: var(--cyan-bright); }
.gp__chipwrap { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.gp__chip { width: 46%; aspect-ratio: 1; color: var(--cyan-bright); }
.gp__lines { display: flex; flex-direction: column; gap: 8px; }
.gp__lines span { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.18); }
.gp__lines span.s1 { width: 80%; } .gp__lines span.s2 { width: 55%; background: linear-gradient(90deg, var(--cyan), var(--violet)); }

.gp__doclines { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.gp__doclines span { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.16); }
.gp__doclines span:nth-child(1){ width: 92%; } .gp__doclines span:nth-child(2){ width: 72%; }
.gp__doclines span:nth-child(3){ width: 84%; } .gp__doclines span:nth-child(4){ width: 50%; background: linear-gradient(90deg,var(--cyan),transparent); }
.gp__dochead { display: flex; gap: 6px; margin-bottom: 14px; }
.gp__dochead i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.gp__dochead i:first-child { background: var(--cyan); }

.gp__neural { width: 100%; height: 100%; color: var(--violet-bright); display: grid; place-items: center; }
.gp__neural svg { width: 78%; }

.gp__brain { display: grid; place-items: center; height: 100%; color: var(--cyan-bright); }
.gp__brain svg { width: 60%; }

.gp__chart-svg { width: 100%; height: 100%; }
.chart-line { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.chart-fill { opacity: .18; }

.gp__stat { display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 2px; }
.gp__stat .stat-ic { width: 26px; height: 26px; color: var(--cyan-bright); margin-bottom: 8px; }
.gp__stat .stat-label { font-size: clamp(0.55rem, 1.05vw, 0.8rem); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--text-dim); line-height: 1.2; }
.gp__stat .stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3.4vw, 2.4rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 4px; }

/* mini chart inside stat2 */
.gp__ministat { position: relative; }
.gp__minichart { position: absolute; right: 8px; bottom: 8px; width: 50%; height: 36%; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-scene { max-width: 560px; margin: 8px auto 0; }
}

/* ---------- STATS STRIP ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat-cell { background: var(--bg-2); padding: 30px 26px; }
.stat-cell .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-cell .lbl { color: var(--text-dim); margin-top: 12px; font-size: 0.95rem; }
@media (max-width: 760px){ .stats-strip { grid-template-columns: repeat(2,1fr); } }

/* ---------- ABOUT / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.about-points { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.about-point { display: flex; gap: 16px; align-items: flex-start; }
.about-point .tick { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan-bright); }
.about-point .tick svg { width: 16px; height: 16px; }
.about-point b { font-weight: 700; }
.about-point p { color: var(--text-dim); font-size: 0.97rem; }

/* media panel mock */
.media-panel {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  padding: 28px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
}
.media-panel .mglow { position: absolute; width: 60%; height: 60%; right: -10%; top: -15%; background: radial-gradient(circle, var(--glow-violet), transparent 70%); filter: blur(50px); opacity: .6; }
.media-panel__head { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.media-panel__head i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.media-panel__head i:first-child { background: var(--cyan); }
.media-rows { display: flex; flex-direction: column; gap: 14px; position: relative; }
.media-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.media-row .mic { width: 36px; height: 36px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; color: var(--cyan-bright); flex-shrink: 0; }
.media-row .mic svg { width: 19px; height: 19px; }
.media-row .mbar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.media-row .mbar::after { content: ""; position: absolute; inset: 0; width: var(--w, 60%); background: var(--grad); border-radius: 4px; }

/* ---------- OUTCOMES grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 920px){ .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.outcome { padding: 32px 28px; }
.outcome .num-tag { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--cyan-bright); letter-spacing: .1em; }

/* ---------- FORMAT steps ---------- */
.format-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 920px){ .format-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .format-row { grid-template-columns: 1fr; } }
.format-step { text-align: center; padding: 30px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform .3s var(--ease), border-color .3s; }
.format-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.format-step .fs-ic { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan-bright); }
.format-step .fs-ic svg { width: 27px; height: 27px; }
.format-step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.format-step p { color: var(--text-faint); font-size: 0.88rem; }

/* ---------- PROGRAM (lessons) ---------- */
.program-list { display: flex; flex-direction: column; gap: 12px; }
.lesson {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.lesson:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateX(4px); }
.lesson__no { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; min-width: 52px; }
.lesson__body h4 { font-size: 1.12rem; margin-bottom: 4px; }
.lesson__body p { color: var(--text-dim); font-size: 0.95rem; }
.lesson__tag { font-size: 0.78rem; font-weight: 600; color: var(--text-faint); white-space: nowrap; padding: 7px 13px; border: 1px solid var(--border); border-radius: 100px; }
@media (max-width: 640px){ .lesson { grid-template-columns: auto 1fr; gap: 16px; padding: 18px; } .lesson__tag { display: none; } }

/* ---------- BENEFITS ---------- */
.benefit { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; }
.benefit .b-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan-bright); }
.benefit .b-ic svg { width: 24px; height: 24px; }
.benefit h4 { font-size: 1.1rem; }
.benefit p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item.open { border-color: var(--border-strong); background: var(--surface-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; text-align: left; font-weight: 700; font-size: 1.08rem; }
.faq-q .pm { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; color: var(--cyan-bright); }
.faq-item.open .pm { transform: rotate(45deg); background: var(--grad); color: #04121a; border-color: transparent; }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a__inner { padding: 0 28px 26px; color: var(--text-dim); line-height: 1.7; }

/* ---------- CTA / Application form ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  padding: clamp(36px, 5vw, 64px);
}
.cta-band__glow { position: absolute; width: 50%; height: 120%; right: -8%; top: -20%; background: radial-gradient(circle, rgba(154,107,255,0.4), transparent 70%); filter: blur(60px); pointer-events: none; }
.cta-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
@media (max-width: 860px){ .cta-band__grid { grid-template-columns: 1fr; } }
.cta-band ul.cta-perks { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.cta-band ul.cta-perks li { display: flex; gap: 12px; align-items: center; color: var(--text-dim); }
.cta-band ul.cta-perks svg { width: 20px; height: 20px; color: var(--cyan-bright); flex-shrink: 0; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-card { background: rgba(8,12,24,0.55); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); letter-spacing: .02em; }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 16px; color: var(--text); font-size: 1rem; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(56,211,230,0.12); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b8a; }
.field .err { font-size: 0.78rem; color: #ff8aa3; display: none; }
.field.invalid .err { display: block; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--text-faint); line-height: 1.5; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan); flex-shrink: 0; }
.form-consent a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.form-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 30px 10px; }
.form-success.show { display: flex; }
.form-success .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #04121a; display: grid; place-items: center; box-shadow: 0 12px 30px -8px var(--glow-cyan); }
.form-success .ok-ic svg { width: 32px; height: 32px; stroke-width: 2.6; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: clamp(130px, 18vh, 200px); padding-bottom: clamp(40px, 5vw, 70px); position: relative; }
.page-hero .crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--text-faint); font-size: 0.86rem; margin-bottom: 22px; }
.page-hero .crumbs a, .page-hero .crumbs > span { white-space: nowrap; }
.page-hero .crumbs a:hover { color: var(--cyan-bright); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.page-hero .lead { margin-top: 22px; max-width: 680px; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem,2.4vw,1.8rem); margin: 44px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.prose p { color: var(--text-dim); margin-bottom: 16px; }
.prose ul.bullets { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 20px; }
.prose ul.bullets li { color: var(--text-dim); padding-left: 26px; position: relative; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.prose a.inline { color: var(--cyan-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Info / data table ---------- */
.data-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table tr { border-bottom: 1px solid var(--border); }
.data-table tr:last-child { border-bottom: none; }
.data-table th { text-align: left; padding: 18px 22px; color: var(--text-dim); font-weight: 600; font-size: 0.92rem; width: 40%; vertical-align: top; background: var(--surface); }
.data-table td { padding: 18px 22px; font-size: 0.97rem; vertical-align: top; }
@media (max-width: 600px){ .data-table th, .data-table td { display: block; width: 100%; } .data-table th { padding-bottom: 4px; } .data-table td { padding-top: 4px; } }

/* document download cards */
.doc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width: 640px){ .doc-grid { grid-template-columns: 1fr; } }
.doc-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.doc-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.doc-card .d-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; color: var(--cyan-bright); flex-shrink: 0; }
.doc-card .d-ic svg { width: 22px; height: 22px; }
.doc-card .d-name { font-weight: 700; font-size: 0.98rem; }
.doc-card .d-meta { color: var(--text-faint); font-size: 0.82rem; margin-top: 2px; }
.doc-card .d-dl { margin-left: auto; color: var(--text-dim); }

/* contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 760px){ .contact-cards { grid-template-columns: 1fr; } }
.contact-card { padding: 28px; }
.contact-card .c-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; color: var(--cyan-bright); margin-bottom: 18px; }
.contact-card .c-ic svg { width: 23px; height: 23px; }
.contact-card .c-label { color: var(--text-faint); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-card .c-value { font-size: 1.08rem; font-weight: 700; margin-top: 6px; word-break: break-word; }
.contact-card a.c-value:hover { color: var(--cyan-bright); }
