/* ============================================================
   KageCore AI Hub – Landing
   ============================================================ */

@font-face {
  font-family: 'Gotico';
  src: url('assets/fonts/Gotico-Standard.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --pink:       #FF007A;
  --pink-2:     #FF0066;
  --carmine:    #C0003C;
  --carmine-2:  #A00030;
  --grad:       linear-gradient(90deg, #FF007A 0%, #FF0066 35%, #C0003C 75%, #A00030 100%);
  --grad-diag:  linear-gradient(135deg, #FF007A 0%, #FF0066 40%, #C0003C 80%, #A00030 100%);
  --grad-soft:  linear-gradient(135deg, rgba(255,0,122,0.18) 0%, rgba(192,0,60,0.04) 100%);

  --ink:        #0A0309;
  --ink-2:      #140612;
  --ink-3:      #1F0A1A;
  --line:       rgba(255,255,255,0.10);
  --line-2:     rgba(255,255,255,0.18);
  --paper:      #F4EFE7;
  --mute:       rgba(255,255,255,0.62);
  --mute-soft:  rgba(255,255,255,0.42);

  --wrap-max:   1320px;
  --wrap-pad:   56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ink);
  color: #fff;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* =====================  ambient — единый розовый «свет» через всю страницу  ===================== */
.ambient {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}
.ambient-blob.blob-1 {
  width: 48vw; height: 48vw;
  left: -8vw; top: -8vh;
  background: radial-gradient(circle, rgba(255,0,122,0.14) 0%, transparent 65%);
  animation: ambient-1 55s ease-in-out infinite alternate;
}
.ambient-blob.blob-2 {
  width: 52vw; height: 52vw;
  right: -10vw; bottom: -15vh;
  background: radial-gradient(circle, rgba(192,0,60,0.12) 0%, transparent 65%);
  animation: ambient-2 65s ease-in-out infinite alternate;
  animation-delay: -18s;
}
@keyframes ambient-1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(14vw, 28vh) scale(1.15); }
  100% { transform: translate(-6vw, 48vh) scale(1.05); }
}
@keyframes ambient-2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-18vw, -22vh) scale(1.2); }
  100% { transform: translate(8vw, -42vh) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none !important; }
}

/* =====================  shared  ===================== */
.wrap     { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--wrap-pad); }
.h-display{ font-family: 'Gotico', 'Gotico Standard', serif; font-weight: 400; line-height: 0.94; letter-spacing: -0.01em; }
.eyebrow  { font-family: 'IBM Plex Sans'; font-weight: 400; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }
.mono     { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ================  Top nav  ================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  background: rgba(10,3,9,0.78);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 380ms cubic-bezier(.2,.7,.2,1), opacity 240ms ease;
  pointer-events: none;
}
.nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 18px; }
.nav-brand img { height: 22px; display: block; }
.nav-brand .divider { width: 1px; height: 22px; background: var(--line-2); }
.nav-brand .product { font-family: 'Gotico'; font-size: 18px; letter-spacing: 0.02em; }
.nav-brand .product span { color: #ff006c; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--mute);
  transition: color 180ms;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  font-size: 13px; padding: 10px 20px; border: 1px solid var(--line-2);
  border-radius: 999px; transition: all 200ms; white-space: nowrap;
}
.nav-cta:hover { border-color: var(--pink); background: var(--grad-diag); }

/* =================  Buttons  ================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.01em;
  border-radius: 4px;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), background 200ms, color 200ms, box-shadow 200ms, filter 200ms;
  will-change: transform;
}
.btn .arrow { width: 18px; height: 10px; transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { background: var(--grad-diag); color: #fff; box-shadow: 0 16px 40px -8px rgba(255,0,122,0.55); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* =================  HERO  ================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex; align-items: flex-end;
  padding-top: 120px; padding-bottom: 90px;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,3,9,0.82) 0%, rgba(10,3,9,0.30) 55%, rgba(10,3,9,0) 100%),
    linear-gradient(180deg,
      rgba(10,3,9,0.10) 0%,
      rgba(10,3,9,0.45) 45%,
      rgba(10,3,9,0.75) 72%,
      rgba(10,3,9,0.95) 90%,
      var(--ink) 100%);
  pointer-events: none;
}
.hero-overlay::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 720px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero-h1 {
  font-size: clamp(56px, 7.2vw, 112px);
  margin-bottom: 32px;
}
.hero-h1 .line { display: block; }
.hero-h1 .line.accent span { color: #ff006c; }

.hero-sub {
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-reestr {
  display: flex; align-items: center; gap: 18px;
  max-width: 540px;
}
.hero-reestr img { width: 58px; height: auto; opacity: 0.95; flex: none; }
.hero-reestr span {
  font-size: 12px; line-height: 1.45; color: rgba(255,255,255,0.62);
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute; bottom: 28px; left: var(--wrap-pad); z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
}
.hero-scroll .bar { width: 60px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-scroll .bar::after { content: ''; position: absolute; inset: 0; background: #fff; transform: translateX(-100%); animation: slide 2.5s infinite; }
@keyframes slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

/* =================  Section base ================= */
section { position: relative; }
.section { padding: 130px 0; }
.section-head { margin-bottom: 72px; max-width: 980px; opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.section-head.in { opacity: 1; transform: translateY(0); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(36px, 3.6vw, 60px);
  margin-bottom: 24px;
  line-height: 1.02;
}
.section-head h2 em { font-style: normal; color: #ff006c; }
.section-head .lede {
  font-size: clamp(15px, 1.05vw, 17px);
  color: rgba(255,255,255,0.78);
  max-width: 640px; line-height: 1.55;
}
.section-num { display: none; }

/* =================  Сглаживание границ между блоками  ================= */
/* 1 → 2: тёмный «хвост» Hero мягко перетекает в Platform с лёгким отголоском розового */
.platform::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 200px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255,0,122,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* 3 → 4: переход теперь живёт в нативном фоне .advantages (см. блок Advantages ниже) */
/* 4 → 5: переход теперь живёт в нативном фоне .contact (см. блок Contact ниже) */
/* Контент-обёртка поверх сглаживающего слоя */
.platform .wrap, .advantages .wrap, .contact .wrap { position: relative; z-index: 3; }

/* =================  PLATFORM (block 2)  ================= */
.platform {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding-top: 110px;
  padding-bottom: 110px;
  min-height: 100vh;
  display: flex; align-items: center;
}
.platform .wrap { width: 100%; }
.platform-head {
  margin-bottom: 56px; max-width: 980px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.platform-head.in { opacity: 1; transform: translateY(0); }
.platform-head .eyebrow { margin-bottom: 20px; }
.platform-h2 {
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.94);
}
.platform-h2 em { font-style: normal; }
.platform-h2 em.pink { color: var(--pink); }
.platform-h2 em.under {
  position: relative; color: #fff;
  background: linear-gradient(180deg, transparent 72%, rgba(255,0,122,0.40) 72%);
  padding: 0 4px;
  white-space: nowrap;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pf-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 32px 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 600ms ease,
    transform 520ms cubic-bezier(.34, 1.5, .64, 1),
    background 280ms ease,
    border-color 280ms ease,
    box-shadow 320ms ease;
  transition-delay: var(--delay, 0ms);
  color: rgba(255,255,255,0.95);
  cursor: default;
}
.pf-card.in { opacity: 1; transform: translateY(0); }
.pf-card:hover {
  background: linear-gradient(135deg, rgba(255,0,122,0.12) 0%, rgba(160,0,48,0.03) 100%);
  border-color: rgba(255,0,122,0.55);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -18px rgba(255,0,122,0.35);
}
.pf-card-num {
  position: absolute; top: 20px; right: 24px;
  font-family: 'IBM Plex Sans'; font-weight: 400;
  font-size: 11px; color: var(--mute);
  letter-spacing: 0.16em;
}
.pf-card-ic {
  color: rgba(255,255,255,0.92);
  margin-bottom: 22px;
  transition: color 260ms ease;
}
.pf-card:hover .pf-card-ic {
  color: #fff;
}
.pf-card h3 {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.15; margin-bottom: 12px;
}
.pf-card p {
  font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.72);
}
.pf-card-glow {
  position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(ellipse at top right, rgba(255,0,122,0.22) 0%, transparent 55%);
  opacity: 0; transition: opacity 380ms;
}
.pf-card:hover .pf-card-glow { opacity: 1; }

/* =================  SCENARIOS (block 3) ================= */
.scenarios { background: var(--ink-2); }
.scn-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.scn-tab {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
  background: rgba(255,255,255,0.02);
  transition: all 220ms;
  min-height: 110px;
  position: relative;
}
.scn-tab .meta { flex: 1; min-width: 0; }
.scn-tab:hover { border-color: var(--line-2); background: rgba(255,255,255,0.04); }
.scn-tab.active {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255,0,122,0.18) 0%, rgba(192,0,60,0.04) 100%);
  box-shadow: 0 12px 32px -10px rgba(255,0,122,0.45);
}
.scn-tab .n {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-size: 12px; color: var(--mute);
  margin-bottom: 10px; letter-spacing: 0.04em;
  transition: color 200ms;
}
.scn-tab.active .n { color: var(--pink); }
.scn-tab .t { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.92); }
.scn-tab .arrow { opacity: 0.4; transition: all 220ms; flex: none; margin-top: 22px; }
.scn-tab.active .arrow, .scn-tab:hover .arrow { opacity: 1; transform: translateX(2px); }

.scn-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink) 100%);
  padding: 48px 52px 52px;
  position: relative;
  overflow: hidden;
}
.scn-stage::before {
  content: ''; position: absolute; top: 0; right: 0; width: 480px; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(255,0,122,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.scn-stage-head {
  position: relative; margin-bottom: 36px;
}
.scn-stage-head h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12; max-width: 820px;
}

.scn-stats {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
  position: relative;
}
.scn-stat {
  flex: 1 1 220px; min-width: 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(255,0,122,0.10) 0%, rgba(192,0,60,0.02) 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  border-radius: 6px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms ease, transform 580ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.scn-stat.in { opacity: 1; transform: translateY(0); }
.scn-stat .value {
  font-size: clamp(28px, 3vw, 40px); line-height: 1; color: #fff;
  margin-bottom: 8px;
}
.scn-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.4; }

.scn-steps { list-style: none; position: relative; padding-left: 26px; }
.scn-steps::before {
  content: ''; position: absolute; left: 13px; top: 12px; bottom: 12px;
  width: 1px; background: linear-gradient(180deg, var(--pink) 0%, rgba(255,0,122,0.05) 100%);
}
.scn-step {
  position: relative; display: flex; align-items: flex-start; gap: 22px;
  padding: 14px 0 14px 12px;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 480ms ease, transform 520ms cubic-bezier(.2,.7,.2,1);
}
.scn-step.in { opacity: 1; transform: translateX(0); }
.scn-step .bullet {
  position: absolute; left: -26px; top: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.scn-step .bullet-n {
  font-family: 'Gotico'; font-size: 11px; color: #fff;
  z-index: 2; position: relative;
  background: var(--ink-3);
  border: 1px solid var(--pink);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  transition: background 320ms, transform 320ms;
}
.scn-step.in .bullet-n {
  background: var(--grad-diag);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(255,0,122,0.18), 0 0 18px rgba(255,0,122,0.55);
}
.scn-step .text {
  font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.88);
  max-width: 880px; padding-top: 4px;
}

.scn-cta {
  margin-top: 72px;
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(255,0,122,0.25) 0%, transparent 60%),
    rgba(255,255,255,0.02);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.scn-cta h3 {
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; max-width: 620px;
}
.scn-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* =================  ADVANTAGES (block 4)  ================= */
.advantages {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 32%);
  padding-bottom: 160px;
}

.adv-hero {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 40px;
  padding: 56px 56px;
  margin-bottom: 56px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 60% 100% at 30% 50%, rgba(255,0,122,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 80% 100% at 70% 50%, rgba(160,0,48,0.35) 0%, transparent 65%),
    var(--ink-3);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.adv-hero.in { opacity: 1; transform: translateY(0); }
.adv-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.adv-hero-main { position: relative; max-width: 600px; }
.adv-hero-main p { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.92); margin-top: 12px; }
.adv-hero-divider { width: 1px; height: 90px; background: rgba(255,255,255,0.25); }
.adv-hero-sub p { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 8px; max-width: 220px; }
.adv-hero-stat {
  font-family: 'Gotico';
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9; color: #fff;
  letter-spacing: -0.02em;
}
.adv-hero-stat.small { font-size: clamp(40px, 5vw, 64px); }

.adv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.adv-card {
  background: var(--ink);
  padding: 48px 36px 56px;
  position: relative;
  transition: background 300ms cubic-bezier(.2,.7,.2,1);
  cursor: default;
  overflow: hidden;
  opacity: 0; transform: translateY(28px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1), background 300ms;
  transition-delay: var(--delay, 0ms);
}
.adv-card.in { opacity: 1; transform: translateY(0); }
.adv-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255,0,122,0.20) 0%, transparent 70%);
  opacity: 0; transition: opacity 320ms;
}
.adv-card:hover { background: var(--ink-3); }
.adv-card:hover::before { opacity: 1; }
.adv-card .num {
  font-family: 'Gotico'; font-size: 12px; color: var(--mute);
  position: absolute; top: 24px; right: 28px;
  letter-spacing: 0.1em;
}
.adv-card .stat {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 0.95;
  margin-bottom: 16px;
  position: relative; z-index: 1;
  color: #ff006c;
}
.adv-card h3 {
  font-size: 20px; line-height: 1.18;
  margin-bottom: 14px; padding-top: 4px;
  position: relative; z-index: 1;
}
.adv-card p {
  font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.75);
  position: relative; z-index: 1;
}
.adv-card .accent {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}
.adv-card:hover .accent { transform: scaleX(1); }

/* =================  CONTACT (block 5)  ================= */
.contact {
  background:
    /* верхняя маска: 100px чистого ink + плавный фейд до 480px, прячет розовые радиалы у самой границы */
    linear-gradient(180deg, var(--ink) 0%, var(--ink) 100px, transparent 480px),
    /* верхний розовый радиал сдвинут вниз с 20% на 45% */
    radial-gradient(ellipse 60% 70% at 10% 45%, rgba(255,0,122,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 70% at 90% 80%, rgba(160,0,48,0.20) 0%, transparent 60%),
    var(--ink);
  overflow: hidden;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: stretch;
}
.contact-copy {
  display: flex; flex-direction: column;
}
.contact-copy-top { margin-bottom: auto; }
.contact-copy .eyebrow { margin-bottom: 18px; }
.contact-copy h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.12; margin-bottom: 20px;
}
.contact-copy h2 em { font-style: normal; color: #ff006c; }
.contact-lede {
  font-size: 15px; line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
}
.contact-info {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.ci-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 200ms;
}
.ci-row.link:hover { color: var(--pink); }
.ci-row .ci-l { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.ci-row .ci-v { font-family: 'Gotico'; font-size: 18px; color: #fff; }
.ci-row.link:hover .ci-v { color: var(--pink); }

/* Contact form */
.contact-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  display: flex; flex-direction: column;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.field {
  position: relative; margin-bottom: 18px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  padding: 22px 0 8px;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 72px; line-height: 1.5; }
.field label {
  position: absolute; left: 0; top: 24px;
  font-size: 14px; color: var(--mute);
  pointer-events: none;
  transition: all 200ms cubic-bezier(.2,.7,.2,1);
}
.field input:focus + label,
.field textarea:focus + label,
.field.filled label {
  top: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}
.field .line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line-2);
}
.field .line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.field input:focus ~ .line::after,
.field textarea:focus ~ .line::after { transform: scaleX(1); }
.field.err .line { background: #ff3060; }
.field.err label { color: #ff3060; }

.check-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 12px; cursor: pointer;
  font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.78);
}
.check-row input { display: none; }
.check-row .cb {
  flex: none; width: 18px; height: 18px; border-radius: 3px;
  border: 1px solid var(--line-2); background: transparent;
  position: relative; transition: all 200ms; margin-top: 1px;
}
.check-row input:checked + .cb {
  background: var(--grad-diag); border-color: transparent;
}
.check-row input:checked + .cb::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}
.check-row .lbl a { color: var(--pink); border-bottom: 1px solid currentColor; }
.check-row.err .cb { border-color: #ff3060; }
.check-row.err .lbl { color: #ff3060; }

.submit {
  margin-top: 22px;
  padding: 14px 26px;
  font-size: 13px;
  align-self: flex-start;
}

/* Thanks */
.thanks-section { padding: 160px 0; }
.thanks {
  text-align: center; max-width: 720px; margin: 0 auto;
  position: relative;
}
.thanks .kanji-bg {
  font-family: 'Gotico'; font-size: 220px; color: rgba(255,0,122,0.10);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; line-height: 1;
}
.thanks .check {
  position: relative;
  display: inline-flex; margin-bottom: 28px;
  filter: drop-shadow(0 12px 32px rgba(255,0,122,0.45));
}
.thanks h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 20px; position: relative;
}
.thanks p { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.85); position: relative; }
.thanks p.sign {
  margin-top: 32px; font-style: italic; color: var(--mute);
}

/* =================  Footer  ================= */
.footer {
  background: #000;
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 80px; padding-bottom: 60px; border-bottom: 1px solid var(--line);
}
.foot-grid .col h5 { font-family: 'Gotico'; font-size: 13px; letter-spacing: 0.1em; color: #fff; margin-bottom: 20px; text-transform: uppercase; }
.foot-grid .col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-grid .col a, .foot-grid .col .mute {
  font-size: 14px; color: var(--mute); transition: color 180ms;
}
.foot-grid .col a:hover { color: #fff; }
.foot-brand img { height: 28px; margin-bottom: 24px; }
.foot-brand p { font-size: 13px; color: var(--mute); line-height: 1.6; max-width: 460px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; color: var(--mute); font-size: 12px; gap: 16px;
}
.foot-bottom .right { display: flex; gap: 24px; }
.foot-bottom a:hover { color: #fff; }

/* =================  POPUP  ================= */
.popup {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  width: 360px;
  background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink) 100%);
  border: 1px solid rgba(255,0,122,0.45);
  border-radius: 10px;
  padding: 24px 26px 26px;
  box-shadow: 0 30px 80px -20px rgba(255,0,122,0.45), 0 12px 40px -8px rgba(0,0,0,0.6);
  animation: popupIn 520ms cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.popup::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,0,122,0.30) 0%, transparent 60%);
  pointer-events: none;
}
.popup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; position: relative; }
.popup-kanji {
  font-family: 'Gotico'; font-size: 22px; color: var(--pink);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--pink); border-radius: 50%;
  background: rgba(255,0,122,0.08);
}
.popup-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); flex: 1;
}
.popup-collapse {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mute);
  border: 1px solid var(--line-2);
  transition: all 200ms;
}
.popup-collapse:hover { color: #fff; border-color: var(--pink); background: rgba(255,0,122,0.1); }
.popup h4 {
  font-family: 'Gotico'; font-size: 20px;
  line-height: 1.15; color: #fff; margin-bottom: 16px;
  position: relative;
}
.popup ul {
  list-style: none; margin-bottom: 20px; position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.popup ul li {
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85);
  padding-left: 18px; position: relative;
}
.popup ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 8px var(--pink);
}
.popup-cta {
  width: 100%; justify-content: center;
  padding: 14px 18px; font-size: 13px;
  position: relative;
}

.popup-mini {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--ink-3) 0%, var(--ink) 100%);
  border: 1px solid rgba(255,0,122,0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 20px 50px -12px rgba(255,0,122,0.45);
  transition: all 220ms;
  animation: popupIn 380ms cubic-bezier(.2,.7,.2,1);
}
.popup-mini:hover { transform: translateY(-2px); border-color: var(--pink); }
.popup-mini-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 2.2s infinite;
}

/* =================  RESPONSIVE  ================= */
@media (max-width: 1100px) {
  :root { --wrap-pad: 32px; }
  .section { padding: 100px 0; }
  .platform { min-height: 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .scn-tabs { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-hero { grid-template-columns: 1fr; padding: 36px; }
  .adv-hero-divider { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-info { margin-top: 24px; }
  .nav-links { display: none; }
}

@media (max-width: 700px) {
  :root { --wrap-pad: 22px; }
  .section { padding: 80px 0; }
  .nav { padding: 14px 0; }
  .nav-brand .product { font-size: 16px; }
  .hero-h1 { font-size: 40px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-reestr { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scn-tabs { grid-template-columns: 1fr; }
  .scn-stage { padding: 28px 24px 32px; }
  .scn-stage-head { flex-direction: column; }
  .scn-cta { padding: 28px; }
  .adv-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .popup, .popup-mini { right: 16px; bottom: 16px; left: 16px; }
  .popup { width: auto; }
  .popup-mini { left: auto; }
  .contact-form { padding: 28px 24px; }
}
